Operating System - HP-UX
1833588 Members
4060 Online
110061 Solutions
New Discussion

Re: Password Expiry check

 
Andy Cole_1
Frequent Advisor

Password Expiry check

Hi all,

I implement trusted system and password aging on all the accounts.
But can the user itself check the expiry date of the password? any command? I know that /etc/shadow can check the password expiry for the users but that can only be accessed by root. Thanks
2 REPLIES 2
steven Burgess_2
Honored Contributor

Re: Password Expiry check

Hello

passwd -s

Regards

Steve
take your time and think things through
Tor-Arne Nostdal
Trusted Contributor

Re: Password Expiry check

"passwd -s" will show the users own status.
According to man page on HP-UX 11.11 the output is:
name status mm/dd/yy min max warn

If you, as root, want to check all users you could f.ex. run:

ls -1 /home|grep -v "lost+found"|while read UNM;do passwd -s $UNM ;done

example output:
johndoe PS 03/18/04 7 175

or something similare (xargs will not work).
I'm trying to become President of the state I'm in...