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

A few days ago, we were connected to a xenserver through ssh (user root) from 2 different stations. And we tried passwd, and we changed the root password to 2 different passwords simultanously. And we were a little confused why it didn't ask the current password before accepting the new one. And as expected the last given password is working and the one who could kick the other out to change it is the winner...!

How can I manage a way that the current password have to be asked?

share|improve this question

closed as off-topic by Jenny D, Ward, mdpc, HBruijn, masegaloeh Jul 25 '15 at 7:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – Jenny D, Ward, HBruijn, masegaloeh
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 4 down vote accepted

What security problem? If you have 2 devices logged in as root and you're worried about one changing the password before the other you have bigger issues to worry about. Just so you know, the password and shadow files are owned by root, so if someone is logged in as root they can do whatever they want to the password. They don't even need to worry about using passwd to change anything.

share|improve this answer
First question was nothing.. I was looking for the second one actually... And what is this attitude with a newbie..? All of experts was once a newbie.. It's better help a newbie, instead of a downvote.. – SonOfSun Jul 20 '15 at 10:34
I didn't downvote. I'm just saying if you give someone root access to your box, they have ALL the permissions. If they want to wipe the system, they can. If they want to change the password, they can. – william Jul 20 '15 at 10:44
ok. suppose that there are 2 or more admins, as it actually happens sometimes. – SonOfSun Jul 20 '15 at 10:47
You'll either need to trust those admins with root access (full control), or setup low privilege accounts for them and make them use sudo for administrative tasks. If it's setup properly they won't be able to change passwords with sudo or delete logs, and sudo can provide command logs in case you need to make sure they're not running odd commands on the server. – william Jul 20 '15 at 11:02

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