Operating System - HP-UX
1832495 Members
6386 Online
110043 Solutions
New Discussion

how do I know when was last time the root password being changed?

 
Hanry Zhou
Super Advisor

how do I know when was last time the root password being changed?

on trusted system.

Thanks,
none
2 REPLIES 2
Tingli
Esteemed Contributor

Re: how do I know when was last time the root password being changed?

/bin/passwd -s root
If there is an expiring date for root.
Patrick Wallek
Honored Contributor

Re: how do I know when was last time the root password being changed?

Use getprpw

# /usr/lbin/getprpw root


Look for the SPWCHG date. SPWCHG=Successful Password change.

Have a look at the 'getprpw' man page for information available via getprpw.

To get only the spwchg date do:

# /usr/lbin/getprpw -m spwchg root