View Single Post

   
  #1 (permalink)  
Old 02-21-2008, 12:20 PM
Mark Hobley
 
Posts: n/a
Default New telnetd installation produces error: login: Permission Denied

I am trying to configure the telnetd service daemon on Gentoo.

I first installed the internet superserver daemon:

emerge netkit-base

I next installed the telnetd server daemon:

emerge netkit-telnetd

I next created a user and group for the telnetd server daemon:

groupadd -g 300 telnetd
useradd -u 300 -g 300 telnetd

I now modified the telnetd account in /etc/passwd as follows:

telnetd:x:300:300::/nonexistent:/bin/false

(This line is copied from a working telnet server)

Then I created the /etc/inetd.conf configuration file for the internet
superservice daemon with the following entry:

telnet stream tcp nowait telnetd /usr/sbin/telnetd

Next I start the internet superserver daemon as follows:

/etc/init.d/inetd start
* Starting inetd ...

Now I telnet the localhost:

telnet localhost
Trying 127.0.0.1 ...
Connected to localhost.localdomain.
Escape character is ']'

Linux 2.6.23.9 (despina.markhobley.yi.org) (1)
login: Permission Denied.
Connection closed by foreign host.


The error at the login prompt appears before I type in the username, so
I think the error is related somehow to the login program.

I presume that the login: prompt is being generated by the login
program, and then the program is exiting before user input can be
collected, so I suspect the login program was running, but I don't know
for sure. I guess that somehow I have to make a configuration
change to allow the login program to be used from the telnet virtual
terminal. (Then again, I might be wrong.)

Thanks in advance to anyone who can help with this.

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote