Table of Contents

Change Passwords And Adjust Password Aging For Local User Accounts

General Information

Account password management.


Important Files

Contains Default password aging


/etc/shadow fields

user:$6$O30OJMIu$EvINhwnNKNkuovMpHyyXpNmbBrlwqHCQguggwnAQhvkur01BhCZI/MwDY0z3kJqKwJoJgYEVVchEvsCIebN3o0:16475:0:99999:7:::

Commands

Change user password manually

passwd rjones


List account age information (Same age info from /etc/passwd)

chage -l rjones


Force user to change password on next login (change number of days since last pw change)

chage -d 0 rjones
OR
chage --lastday 0 rjones


Set account expiration

chage -E 2015-08-01 rjones
OR
usermod -e 2015-08-01 rjones