Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Tuesday, December 2, 2014

Command to check when root password was changed - HPUX

Command to check when root password was changed:

myserver:/> /usr/lbin/getprpw -m spwchg root
spwchg=Fri Nov  7 09:06:37 2014


orgetprpw -m spwchg {username}

where:

-m  Displays the value for the argument passed

spwchg - last sucessful password change time


We can use following parameters  with -m option.

      uid        - get the users uid

      mintm      - get the minimum time between password changes

      maxpwln    - get the maximum password length for this user

      exptm      - get password expiration time

      lftm       - get password lifetime

      upwchg     - last unsucessful password change time

      acctexp    - get account expiration time

      llog       - last login time interval


      expwarn    - password expiration warning time


Thanks for reading!

Kiran Jaddhav

No comments:

Post a Comment