1828584 Members
2258 Online
109982 Solutions
New Discussion

Re: limit root logins

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

limit root logins

Hi all:

Dealing with RedHat versions 7 and above.

I want to be able to limit which accts can su to the root user. On HP you can use the /etc/default/security file, in Solaris can be a member of the wheel group.

How can I specifiy that only a certain set of accounts can become the root user?

Many thanks!

3 REPLIES 3
Huc_1
Honored Contributor
Solution

Re: limit root logins

Apparently you can do this by tailoring the

/etc/pam.d/su file !

I have not done this but a type of the file say's you can put people allow in a specific group

man pam.d is very long !

I am reading this now.

Hope It help, always nice to start a new invetigation.. thanks,

J-P
Smile I will feel the difference
Steven E. Protter
Exalted Contributor

Re: limit root logins

This link documents the prior posted concept.

http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap5sec43.html

Blocking su to root.

http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap5sec44.html

tldp.org is a great Linux site.

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
Rick Garland
Honored Contributor

Re: limit root logins

Again, many thanks!

Found what I am looking for!