View Single Post

   
  #2 (permalink)  
Old 02-21-2008, 12:20 PM
The Natural Philosopher
 
Posts: n/a
Default Re: New telnetd installation produces error: login: Permission Denied

Mark Hobley wrote:
> 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


Mine says

telnet stream tcp nowait telnetd.telnetd /usr/sbin/tcpd
/usr/sbin/in.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 ']'
>


Thats the telnetd working then..at some level

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


Thats login crapping out. Permissions of some sort.

..

>
> 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.
>


So do I.

> 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.)
>


Never had a problem.


If you can get a root prompt do an:

su - telnetd

And then try :

/bin/login

Thats is close to the permissions it will be running at

Likewise, look in the log files.



> Thanks in advance to anyone who can help with this.
>
> Mark.
>

Reply With Quote