Differences
This shows you the differences between two versions of the page.
linux_wiki:change_passwords_and_adjust_password_aging_for_local_user_accounts [2016/02/29 21:56] billdozor created |
linux_wiki:change_passwords_and_adjust_password_aging_for_local_user_accounts [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Change Passwords And Adjust Password Aging For Local User Accounts ====== | ||
- | |||
- | **General Information** | ||
- | |||
- | About this page/ | ||
- | |||
- | ---- | ||
- | |||
- | Contains Default password aging | ||
- | * / | ||
- | |||
- | Change user password manually | ||
- | <code bash> | ||
- | passwd rjones | ||
- | </ | ||
- | * Will be prompted to enter new password twice | ||
- | |||
- | /etc/shadow fields | ||
- | <code bash> | ||
- | user: | ||
- | </ | ||
- | |||
- | * login | ||
- | * encrypted password | ||
- | * date of last password change (# days since Jan 1, 1970) | ||
- | * minimum password age (0 days above) | ||
- | * max password age (99999 days) | ||
- | * password warning period (7 days before max pw age) | ||
- | * password inactivity period (null/no enforcement, | ||
- | * account expiration date (null/never expire) | ||
- | |||
- | List account age information (Same age info from / | ||
- | <code bash> | ||
- | chage -l rjones | ||
- | </ | ||
- | |||
- | Force user to change password on next login (change number of days since last pw change) | ||
- | <code bash> | ||
- | chage -d 0 rjones | ||
- | OR | ||
- | chage --lastday 0 rjones | ||
- | </ | ||
- | |||
- | Set account expiration | ||
- | <code bash> | ||
- | chage -E 2015-08-01 rjones | ||
- | OR | ||
- | usermod -e 2015-08-01 rjones | ||
- | </ | ||
- | * Account will lock on August 1st, 2015. | ||
- | * Passing an expire date of " | ||
- | |||
- | ---- | ||