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

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

How can I request user to change his password upon login after I reset his account in Solaris 10?

share|improve this question
up vote 3 down vote accepted

In Solaris 10 you can use passwd -f <username> command to do this if you are using the files or nisplus repositories.

Manpage here

# passwd -f user2
passwd: password information changed for user2

At next login user2 will get this.

Connected to localhost.
Escape character is '^]'.
login: user2
Choose a new password.
New Password:
share|improve this answer

After you reset the password using passwd edit the /etc/shadow and set the date for the password to 0. The user has to change his password after typing in the current one which you set by using passwd.

An example for a password with 0 day durability:


The zero in the third column says that the password never has changed and with normal security policy settings the user will get something like this after login.

# ssh cw@someserver
Warning: Your password has expired, please change it now.

New Password:

Let me know if it worked for you.

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.