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

link|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
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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