How do I notify users that their password is due to expire in Linux?



  • To warn user testuser that his/her password will expire in two days' time:

    # /usr/bin/passwd -w 2 testuser
    Adjusting aging data for user testuser.
    passwd: Success
    

Log in to reply
 

© Lightnetics 2024