Root can not telnet on Linux 6.1 RedHat. - TechRepublic
General discussion
January 12, 2001 at 03:29 AM
lintadsl

Root can not telnet on Linux 6.1 RedHat.

by lintadsl . Updated 25 years, 4 months ago

Hi all,

As you guys know root can not telnet but we can do “su” and become as root after login with normal user account. How can it work like that?

My question is I have a user called foo and I don’t want give him a telnet function to the boxbut I would like to do “su” to foo after I login(telnet) with my account. Any way or idea to try?

What I did is in /etc/passwd file, I changed foo user’s /bin/bash to /etc/ftponly. The reason why I did this was it will give him a FTP function but not Telnet. After test, I couldn’t login with foo but I could not do “su” to foo either. This is not what I want. I want to login with user account and do “su” to foo but becouse of /etc/ftponly in /etc/passwd file, I could become “foo”.

Please let me know what else can I try.
Again, I have Linux 6.1 Redhat
Thank you in advance.

Sunny.

This discussion is locked

All Comments