1832936 Members
2806 Online
110048 Solutions
New Discussion

Root Login At Console

 
Andrew Kaplan
Super Advisor

Root Login At Console

The root login is currently unable to log into our server at the locally attached server console. I would like to change the configuration such that root will be able to login at the console but still NOT be able to do so from a telnet connection. What configuration change(s) must I do in order to accomplish this? Thanks.
A Journey In The Quest Of Knowledge
4 REPLIES 4
Rick Garland
Honored Contributor

Re: Root Login At Console

Setup the /etc/securetty file.

# echo CONSOLE > /etc/securetty

This will allow root at console but no root telnet logins.
Steven E. Protter
Exalted Contributor

Re: Root Login At Console

Its probably blocked in the configuration file:

/etc/securetty

Prior thread:
http://www1.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fsearch.hp.com%2Fredirect.html%3Furl%3Dhttp%253A%2F%2Fforums1.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%253FthreadId%253D753074%26qt%3D%2Bblock%2Broot%2Bconsole%2Blogin%26hit%3D6&aid=SEARCH_FORUMS&pil=6&serStr=block+root+console+login&pir=6

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
baiju_3
Esteemed Contributor

Re: Root Login At Console


Hi Andrew,


edit /etc/securetty file add the entry
console.

Now direct root login will be restricted to console .


Thanks,
BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Suraj Singh_1
Trusted Contributor

Re: Root Login At Console

Hi Andrew,

Apart from adding console in /etc/securetty file, you would also need to remove any possible entries from where you would not like "root" to login (such as tty/??).

Regards,
Suraj
What we cannot speak about we must pass over in silence.