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 to configure system RHEL5 to ensure the security. One requirement is:

When a password is first created or reset by an administrator authorized to do so, system(RHEL 5) shall require the owner of the account to change the password the next time he logs on.

I don't know how to configure to meet this requirement. Could anyone help me with this? Thanks a lot!

share|improve this question
up vote 0 down vote accepted
chage -d 0 USERNAME

where USERNAME is replaced with the real username. I find that the order of these commands is important (ie, don't set the password after the chage).

share|improve this answer
MadHatter, thanks to your quick answers :-) – zhaojing Oct 7 '10 at 8:30

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.