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

I have the following value under /etc/passwd file:


Now, the correct value should be:


That is, client1 and not client2.

I know that it's not advisable to edit the passwd file directly using vi or other text editor. I learned that it should be edited using this command vipw -s. But when I run vipw -s, I cannot find this line /var/www/clients/client1/web3:/bin/false. What I can see is this web3:!:15869:0:99999:7:::.

So how can I change the value from client2 to client1?

share|improve this question
up vote 4 down vote accepted

Try: usermod -d /var/www/clients/client1/web3 web3 or just vipw without -s.

share|improve this answer
Explanatory hint: The -s option for vipw changes the shadow file. This doesn't contain the home dir informations. – Sven Jun 27 '13 at 10: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.