Friends,
Could someone let me know, how to check when was the last password change done for hscroot either from UI or from CLI?
Note: I've already google'd for this answer, but everywhere I see the process of changing hscroot's password being discussed.
Thanks,
-- Souvik
Not using a hmc, so I'm not sure if you need to break out of the restricted shell or anything. However, you want the "lastupdate" line from the /etc/security/password file.
So you could run:
grep -p hscroot /etc/security/passwd
That would give you the date in "epoch time format". So you can then plug that information into a script (assuming you already have one), or throw it into a website that will do the epoch time conversion for you. Such as:
Epoch Converter - Unix Timestamp Converter
you can only set, when the password must be changed.
> man chhmcusr