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 a bunch of new users to deploy on our system, and as a part of the initial login I want to give them an opportunity to reset their password. How can I best do this so that we don't have to instruct them specifically to do so?

share|improve this question
up vote 4 down vote accepted

How many users? Where are the passwords stored? How are the passwords distributed?

If you're just creating them in /etc/passwd you can use passwd --expire.

   The options which apply to the passwd command...

   -e, --expire
       Immediately expire an account´s password. This in effect can force
       a user to change his/her password at the user´s next login.
share|improve this answer
We created them in /etc/passwd for 100 users. All users are given the same password, and the users are told their username and password orally. – lfaraone Sep 11 '09 at 17:51
In a for loop. – Dennis Williamson Sep 11 '09 at 19:24

You could use chage to set a users account so it will expire. I haven't tested but gdm is supposed to notify the user to change their password.

share|improve this answer

looking to man page of chage - change user password expiry information it has example!

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.