LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Check if user has changed PW (https://www.linuxquestions.org/questions/linux-security-4/check-if-user-has-changed-pw-57315/)

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.

Rich

david_ross 04-29-2003 01:12 PM

You could create a script called:
changepw

or similar that calls:
passwd

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.