Apr 9

Along the same lines as Forcing a password change in Linux, here is how to force a user to change their password in Solaris. Using the passwd command (as root), through a -f flag on and the user will be stuck in change-me land until they can get that 8 character password together.

passwd -f $USER

It’s just that simple.

Mar 21

To force a user to change passwords at next login, use the chage command

chage -d 0 $USER

Only downside is that this doesn’t seem to work with older versions of ssh (pre 4.0 I believe) that are using privilege separation. You’ll have to edit the sshd_config file and turn privilege separation off or, a much better solution, upgrade openssh.