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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 ------------------------------------------------------ |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 ------------------------------------------------------ |