Operating System - HP-UX
1834478 Members
3033 Online
110067 Solutions
New Discussion

How to prevent root logins from anyplace else than console?

 
Tove Myhre_1
New Member

How to prevent root logins from anyplace else than console?

Hi

Does anybody know?
I want users to take an su to root from their own user, and disable direct root
login exept from the console. Is this possible (HPUX 10.20)?

Tove.
2 REPLIES 2
Melvyn Burnard_1
Regular Advisor

Re: How to prevent root logins from anyplace else than console?

You can do this by having a file called /etc/securetty
with the contents as follows:

console


the permissions should be 644, owner root group sys

this will allow direct login by root at the console only!
all others will have to use the su command
Tove Myhre_1
New Member

Re: How to prevent root logins from anyplace else than console?

Thank you!!

That's a quick answer! I'm impressed.