Operating System - HP-UX
1834299 Members
2298 Online
110066 Solutions
New Discussion

When was root password last changed??

 
SOLVED
Go to solution
KPS
Super Advisor

When was root password last changed??

Hi Trusted System Gurus....

Is there a way to find out when the root password was last changed?

I'm at a new company as a Unix Admin and they're running Trusted Systems here with password aging enabled. I don't have a whole lot of experience with this setup. If I go into SAM->Accounts for Users & Groups->Select Root User--> Modify Security Policies->
Password Aging Policies..

I don't see anything in here that tells me when root's password will expire. What's even worse is Password Expiration Warning Time is set to 0 so I guess I won't get any warning when it is about to? I'm trying to prevent root from being locked out here. Would anyone have any suggestions on what I could to for preventing root's password from expiring here?

Thanks very much,
-KPS
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: When was root password last changed??

passwd -sa

Should show even when the root password was last changed and when it expired.

The passwd command has many useful reporting features in it that systems administrators should explore.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
KPS
Super Advisor

Re: When was root password last changed??

Thanks that's what I needed. I appreciate your help.
Robert Bennett_3
Respected Contributor

Re: When was root password last changed??


we use:

/usr/lbin/getprpw -m spwchg root

passwd -sa does not work on our 10.20 machines (yes - we still have a few of them around)

The format is not the same as the passwd -sa command so you have to convert month name to numbers (Feb = 02)- but it works.

Just another way to achieve the same thing -

B
"All there is to thinking is seeing something noticeable which makes you see something you weren't noticing which makes you see something that isn't even visible." - Norman Maclean