Telnet problems.

This is a discussion on Telnet problems. within the Linux Administration forums, part of the Linux Forums category; Hello, I get the following error. It worked fine for many weeks. It just stopped working a few days ago. ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-27-2004
buster
 
Posts: n/a
Default Telnet problems.

Hello,

I get the following error. It worked fine for many weeks.
It just stopped working a few days ago.

Red Hat Linux release 8.0 (Psyche)
Kernel 2.4.18-14 on an i686
telnetd: /bin/login: Permission denied Connection closed by foreign host.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-27-2004
Noi
 
Posts: n/a
Default Re: Telnet problems.

On Tue, 27 Jan 2004 06:55:41 -0800, buster thoughtfully wrote:

> Hello,
>
> I get the following error. It worked fine for many weeks.
> It just stopped working a few days ago.
>
> Red Hat Linux release 8.0 (Psyche)
> Kernel 2.4.18-14 on an i686
> telnetd: /bin/login: Permission denied Connection closed by foreign host.
>
> Thanks.


Not sure what were commands did you try? On which machine?

For the rpm did you "$ rpm -q telnet" to check the install?

--
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2149.nptl
------------------------------------------------------

Reply With Quote
  #3 (permalink)  
Old 01-27-2004
Stuart Fuller
 
Posts: n/a
Default Re: Telnet problems.

buster wrote:

> Hello,
>
> I get the following error. It worked fine for many weeks.
> It just stopped working a few days ago.
>
> Red Hat Linux release 8.0 (Psyche)
> Kernel 2.4.18-14 on an i686
> telnetd: /bin/login: Permission denied Connection closed by foreign host.
>


Check this out.

First, look at the permissions of the /bin/login program. It's currently
755.
[root@mysys2 root]# ls -l /bin/login
-rwxr-xr-x 1 root root 17976 Feb 26 2002 /bin/login

Now, change it to remove execute permissions:

[root@mysys2 root]# chmod 644 /bin/login
[root@mysys2 etc]# ls -l /bin/login
-rw-r--r-- 1 root root 17976 Feb 26 2002 /bin/login


Now, try to telnet:

[stu@mysys2 stu]$ telnet 0
Trying 0.0.0.0...
Connected to 0 (0.0.0.0).
Escape character is '^]'.
Telnet Server
telnetd: /usr/sbin/login.krb5: Permission denied
Reply With Quote
  #4 (permalink)  
Old 01-27-2004
Stuart Fuller
 
Posts: n/a
Default Re: Telnet problems.

Noi wrote:

> On Tue, 27 Jan 2004 06:55:41 -0800, buster thoughtfully wrote:
>
>> Hello,
>>
>> I get the following error. It worked fine for many weeks.
>> It just stopped working a few days ago.
>>
>> Red Hat Linux release 8.0 (Psyche)
>> Kernel 2.4.18-14 on an i686
>> telnetd: /bin/login: Permission denied Connection closed by foreign host.
>>
>> Thanks.

>
> Not sure what were commands did you try? On which machine?
>
> For the rpm did you "$ rpm -q telnet" to check the install?
>


That would verify that the package "telnet" is installed. However, that's
not likely to be where the problem lies. On some machine, somewhere, there
is a telnet client (that's where he's coming from), but the error message
is coming from the above mentioned machine running Redhat 8.0.
Specifically, the telnetd (telnet server daemon) is complaining that that
it can't run /bin/login due to some permissions problem. So, we now that
the telnet client on some machine somewhere is working, and it would appear
that the telnet server on the failing machine is at leastt installed.

Maybe you meant that buster (the original poster) should run the command:

rpm -V telnet-server

to verify that his telnet server was properly installed? But, then again,
that's not likely to be his problem. Instead, checking to see what package
contains the /bin/login program, and if that package is installed
correctly, would be useful.

--

Stu
Reply With Quote
  #5 (permalink)  
Old 01-28-2004
Noi
 
Posts: n/a
Default Re: Telnet problems.

On Tue, 27 Jan 2004 18:57:49 -0500, Stuart Fuller thoughtfully wrote:

> Noi wrote:
>
>> On Tue, 27 Jan 2004 06:55:41 -0800, buster thoughtfully wrote:
>>
>>> Hello,
>>>
>>> I get the following error. It worked fine for many weeks.
>>> It just stopped working a few days ago.
>>>
>>> Red Hat Linux release 8.0 (Psyche)
>>> Kernel 2.4.18-14 on an i686
>>> telnetd: /bin/login: Permission denied Connection closed by foreign host.
>>>
>>> Thanks.

>>
>> Not sure what were commands did you try? On which machine?
>>
>> For the rpm did you "$ rpm -q telnet" to check the install?
>>

>
> That would verify that the package "telnet" is installed. However, that's
> not likely to be where the problem lies. On some machine, somewhere, there
> is a telnet client (that's where he's coming from), but the error message
> is coming from the above mentioned machine running Redhat 8.0.
> Specifically, the telnetd (telnet server daemon) is complaining that that
> it can't run /bin/login due to some permissions problem. So, we now that
> the telnet client on some machine somewhere is working, and it would appear
> that the telnet server on the failing machine is at leastt installed.
>
> Maybe you meant that buster (the original poster) should run the command:
>
> rpm -V telnet-server
>
> to verify that his telnet server was properly installed? But, then again,
> that's not likely to be his problem. Instead, checking to see what package
> contains the /bin/login program, and if that package is installed
> correctly, would be useful.


Yes thank you rpm -V telnet-server. The OP posted 2 messages the first
concerned his problem installing telnet-server IIRC followed by
the above message.

--
------------------------------------------------------
Linux registered user #302812
using Fedora Core 1 kernel 2.4.22-1.2149.nptl
------------------------------------------------------

Reply With Quote
  #6 (permalink)  
Old 01-28-2004
buster
 
Posts: n/a
Default Re: Telnet problems.

Thanks for responding guys.
What do you mean by root'ed?
Reply With Quote
  #7 (permalink)  
Old 01-29-2004
Stuart Fuller
 
Posts: n/a
Default Re: Telnet problems.

buster wrote:

> Thanks for responding guys.
> What do you mean by root'ed?


Someone else has become root on your box without your permission or
knowledge.

--

Stu
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:15 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0