Operating System - HP-UX
1826337 Members
4131 Online
109692 Solutions
New Discussion

root login permission only on console

 
SOLVED
Go to solution
Shah Gaurang B.
Frequent Advisor

root login permission only on console

Hi,

How to disable root login permission throgh remote login and only give console to login as a root ?


Thanks to all in advance

4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: root login permission only on console

Hi Shah:

Create '/etc/securetty' and put the word "console" on a line therein. In this fashion, root can only login via the console.

Non-root users can still 'su' to root.

Regards!

...JRF...
Jeff_Traigle
Honored Contributor

Re: root login permission only on console

Put the word "console" in /etc/securetty.

Also, for SSH, make sure PermitRootLogin is set to no.
--
Jeff Traigle
A. Clay Stephenson
Acclaimed Contributor

Re: root login permission only on console

Create a text file, /etc/securetty and add console as the only entry.
Obviously the file should not be writable by anyone except root or simply give it 640 or better still 440 mode and let it be owned by root.
If it ain't broke, I can fix that.
Shah Gaurang B.
Frequent Advisor

Re: root login permission only on console

Thanks