Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am a bit confused. I need to allow telnet access to root from one of my RH 7.1 boxes. Now I have removed /etc/securetty, I have flushed ipchains. I can telnet as another user and then su - root but telnet directly as root always fails. Am I missing anything.
sounds like a 'feature'. probably not a good idea to have a box open to root telnet for security reasons. im sure there is a way to allow it, but i am not the one to ask.
Distribution: all.. but mainly SuSe--- looks like it changing to Red Hat
Posts: 119
Rep:
I would sugest that you NOT add root to the telnet access.. i dont know how to.. I dont even want to know how to..
but to solve your problem youcan probobly just login as USER1 and then su to root..
this should give you the same env as if you just logged in as root.
Another suggestion would be to start to use ssh instead of telnet... (if your going from a Linux box that is) Same thing applies.. you cant login as root directly.. you still have to su to root....
yes, for the sake of getting used to it, DO NOT use telnet, use SSH. Even if it's on your isolated internal network, use SSH.
The part that may have your root access blocked it a PAM module. All logins are compared to configs in PAM before login is granted, and I think that's a PAM related policy in effect for you. But never you mind telnet boy, get on wit SSH!
I didn't think that you could telnet in as root. If you INSIST on using telnet I believe that you must login in as username the $su - . To give you root access.
But forget all that USE ssh. With ssh you can login directly as root. I recomend that you turn off root access and still login in as username then $su - .
Check out the file /etc/login.defs and also the various files under the directory /etc/pam.d ..... this files control various things such as those associated with PAM , LOGIN, etc.
Though i have never tried it myself, but u can check out the file
/etc/pam.d/login ( take BackUp of your files before making any changes!!!!) .
You might see something like :
auth requisite pam_securetty.so
Comment out the line and restart network services and check if u are able to telnet as root .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.