Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

It will mean that if I am connected another user that will try to authenticate as root will get an error.

share|improve this question
    
So, these will be two different accounts or the same one root? –  Khaled Dec 29 '10 at 10:16
    
Lets say user Tom does su and connects as root, I want that user Bob when tries to do su and log as root to get an error. –  Elzo Valugi Dec 29 '10 at 10:18

1 Answer 1

up vote 1 down vote accepted

The PAM module pam_limts can be used. Edit the /etc/security/limits.conf configuration file (maxlogins), and add the pam_limits module to the su service config.

share|improve this answer
    
erk, blocking root access does not sound like a good recipe for an emergency / system problems. And allowing remote access as root is just plain silly. –  symcbean Dec 29 '10 at 13:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.