Forcing users to change password.

2007-12-25 9:46:00

My Original Question:

I want all the users to be prompted for 'Choose a new password' the next time

they log in. Could any body please tell me that how I can do this under

solaris 2.5. I have defined the max password change limit in etc/default as 4

weeks but now I am looking for a way to force users to change there passwords

at the earliest possible, regardless the limit of 4 weeks.

I know I can do this from admintool for individual users but I am ooking for a

global command which affects all users.

============================================

Thanks to all those who replied:(Forgive me, if I have missed your name)

"Dennis Martens" <MARTENSD@health.qld.gov.au>

john.coleman@yale.edu

Jonathan.Loh@BankAmerica.com

jafar@elmer.jdcny.com (Jafar Shameem

Rajeev Kumar <rxk@fluent.com

Leif Ericksen <leif@imho.net>

Tim Pointing <tim@dciem.dnd.ca>

Stephen P Richardson <spr@myxa.com>

Sean Quaint <squaint@provide.net>

Ilhan Narli <ilhan@apollo.nepean.uws.edu.au>

mwang@tech.cicg.ml.com (Michael Wang

Jon LaBadie <jon@jgcomp.com>

The majority responded to use:

# passwd -f user_name

as a super user. I will write a small shell script using awk to execute this

command for each and every user in the passwd file.

Special Thanks to:

Amjad Zamil <amjadz@sts.com.jo>

N Chandrasekhar <nchandra@wipinfo.soft.net

Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>

who also provided me with similar scripts.

I apologize for not consulting the man pages before posting to this list. But

the feeling of password/shadow file being stolen was so much shaking that I

really forgot to do that.

Best Regards

John Black

____________________________________________________________________

Get free e-mail and a permanent address at http://www.netaddress.com/?N=1

Comments

Got something to say?

You must be logged in to post a comment.