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'd like to change the password of another user, as root, but don't want the user to be prompted to change their password when the log in. As far as I can tell, any mechanism to change the password as root set the ADMCHG flag in /etc/security/passwd

share|improve this question
up vote 7 down vote accepted
man pwdadm
pwdadm -c
share|improve this answer
  1. Use passwd to change the user's password: passwd $user

  2. Use pwdadm command to cancel the password-change prompt: pwdadm -c $user

That's it! :)

share|improve this answer

echo "user:n3w_p466w0rd" | /bin/chpasswd -c

share|improve this answer

Do you need to do it in an automated way? If it's a one-off then change it to a temp password, then login as that user and change it to the desired password.

share|improve this answer

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.