How do I check the status of a user using passwd?



  • Also see:
    passwd - change user password

           -S, --status
               Display account status information. The status information consists
               of 7 fields. The first field is the user's login name. The second
               field indicates if the user account has a locked password (L), has
               no password (NP), or has a usable password (P). The third field
               gives the date of the last password change. The next four fields
               are the minimum age, maximum age, warning period, and inactivity
               period for the password. These ages are expressed in days.
    
    $ sudo passwd --status testuser
    testuser L 12/01/2020 0 99999 7 -1
    

Log in to reply
 

© Lightnetics 2024