Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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.