-   Linux - Security (
-   -   Check if user has changed PW (

fenriswolf 04-29-2003 12:36 PM

Check if user has changed PW
Is there any way I can do this? The pw is not set to expire, so I cant just look at the expiration date and trace it back.


david_ross 04-29-2003 01:12 PM

You could create a script called:

or similar that calls:

Then if it exits with "0" then you can:
echo -n user USERNAME changed their password >> /etc/passcheck
date >> /etc/passcheck

fenriswolf 04-29-2003 01:32 PM

thanks...but I need to check if someone ALREADY changed their PW...eeks..

stickman 04-29-2003 09:01 PM

Look at field 3 in /etc/shadow.

All times are GMT -5. The time now is 12:01 PM.