linux_wiki:change_passwords_and_adjust_password_aging_for_local_user_accounts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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/how-to/script.  
- 
----- 
- 
-Contains Default password aging 
-  * /etc/login.defs 
- 
-Change user password manually 
-<code bash> 
-passwd rjones 
-</code> 
-  * Will be prompted to enter new password twice 
- 
-/etc/shadow fields 
-<code bash> 
-user:$6$O30OJMIu$EvINhwnNKNkuovMpHyyXpNmbBrlwqHCQguggwnAQhvkur01BhCZI/MwDY0z3kJqKwJoJgYEVVchEvsCIebN3o0:16475:0:99999:7::: 
-</code> 
- 
-  * 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, after max age, wait this long before user will not be given the opportunity to change password) 
-  * account expiration date (null/never expire) 
- 
-List account age information (Same age info from /etc/passwd) 
-<code bash> 
-chage -l rjones 
-</code> 
- 
-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 
-</code> 
- 
-Set account expiration 
-<code bash> 
-chage -E 2015-08-01 rjones 
-OR 
-usermod -e 2015-08-01 rjones 
-</code> 
-  * Account will lock on August 1st, 2015. 
-  * Passing an expire date of "-1" will remove an expiration date. 
- 
----- 
  
  • linux_wiki/change_passwords_and_adjust_password_aging_for_local_user_accounts.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)