How to enforce all users to change their password

Hi All,

How to enforce all users to change their password when they try to login.

I am having Solaris 9 and 10.

Even it would be much better if anyone can say to enforce all users to change their password next morning they login.

Thanks in advance,
Deepak

The manpage explains this well (see -f option)

man passwd

Best is maybe to put the user names into a text file, and then you could try:

cat users.txt | xargs -I{} passwd -f {}

you can do this also with a gui. just call "smc" and you can do a lot of things with your users :wink:

Thanks everyone for their opinion.

thanks,
Deepak