Update users password change time

Hello - Is this possible on Unix machines? Can we update user password change time?

man usermod

HTH,
/Lew

I'm not sure what exactly you are about but if mean to expire the password in regular basis . Then yes you can do it easily.
What of UNIX flavor you are using?

Hello - It is not about updating password expiring time. It is about updating password change time.

It is one of dev requirement, which I think is not possible. The password change time is a like log entry maintained by OS and not possible to be updated by us. Right ?

What Do u mean by "updating password change time" exactly?

/Lew

There is no command to do it, but you could edit appropriate field in the /etc/shadow file by hand (in Solaris it is 3rd field). I don't know how safe it is to do it though ;).

OK, now I got it. bartus11 showed one way.

Of course, this assumes that you're using shadow identification method and that you're using proper locking to manage properly possible concurrent modifications of /etc/shadow.

/Lew