Set Password Not to Expire for a User
avatar

If you have your passwords set to expire automatically on your system for security reasons, there may be times when you want an account who’s password doesn’t expire (such as if you are using a cert or if you have a program or service connecting to a low access account).

You can set up just the one account not to expire by running the following command:

passwd -x -1 <user_name>

This entry was posted in Guides, Linux and tagged , , . Bookmark the permalink.

Leave a Reply