How do I list password information a user in solaris?



  • To list password information on a user account:

    # passwd -s root
    root PS 07/02/07 84 7
    
    • Login name (root)
    • Password status (PS) as follows: NP--No password for this login LK--Login is locked

    PS--Anything else

    • Date the password was last changed (07/02/07)
    • Minimum number of days after the last password change before the user can change the password (1)
    • Maximum number of days between password changes (90)
    • Number of warning days before the password must be changed (7)

    To list all user password information:

    # passwd -as
    root      PS    07/02/07          84     7
    daemon    LK
    bin       LK
    sys       NL
    adm       LK
    lp        LK
    uucp      LK
    smmsp     LK
    listen    LK
    nobody    LK
    noaccess  LK
    nobody4   LK
    unixbod1    PS    07/02/07          84     7
    unixbod2   NP    00/00/00     0  84000
    unixbod3   NP    00/00/00     0  84000
    ..
    ...
    ....
    

Log in to reply
 

© Lightnetics 2024