Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Currently my organization has in it's linux configuration two accounts with a UID of 0 - Root and Root2. If we were to set a failed login attempts setting for the Root2 account, and the account were subsequently locked, would it also lock out the Root account?

My initial thought is that locking Root2 wouldn't affect Root, since while they share a UID (and there doesn't seem to be a limit to the number of users with a UID of 0) they can obviously have different passwords. Is that accurate? Or am I missing/overlooking some mechanism in the authentication process that would lock out users with a UID of 0 and not a specific username?

share|improve this question
the name used only for humans. Internally only numeric id is used. – kofemann Apr 24 '13 at 18:07
up vote 5 down vote accepted

The lock is effected by editing the root2 account's entry in /etc/shadow file. This will not affect the root account.

It's generally considered bad practice to have multiple accounts with the same UID, if for no other reason than you loose your ability to audit people's activity and hence hold them accountable. You really should consider configuring and using sudo to give other people privileged access.

share|improve this answer
Trust me - I've had that conversation with some of the "Old timers" many times. Unfortunately, they swear that this is the only way they can get their apps to work. It's a bit of a culture war - but thanks for the info! – tdk2fe Apr 24 '13 at 18:49

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.