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

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

1 Answer 1

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.