Operating System - HP-UX
1833869 Members
1727 Online
110063 Solutions
New Discussion

Re: How to restrict root to login to the console only not via telnet or rlogin

 

How to restrict root to login to the console only not via telnet or rlogin

How to restrict root to login to the telnet or rlogin.

I wasnt to grant access only for console.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: How to restrict root to login to the console only not via telnet or rlogin

Create a file, /etc/securetty, with a line containing "console". The file should only be writable by root.
If it ain't broke, I can fix that.
Rick Garland
Honored Contributor

Re: How to restrict root to login to the console only not via telnet or rlogin

Put the word CONSOLE in the /etc/securetty file.

This says to only allow direct root logins on the console.

Other users who have the root passwd (hopefully they are your other sys admins) can login as themselves then do "su -" to become the root account.

Re: How to restrict root to login to the console only not via telnet or rlogin

Thanks a lot guy's its done.