=====Password Management===== ====Chage==== Use chage to change age etc of a password ^ option ^ what it does ^ ^ M | sets maximumum time for password | ^ m | sets minimum time for password before you can change it | ^ E | set a password expiration date | ^ W | how many warning days you get | ^ I | how many days after your password expired you will be allowed to login using old password | example chage -m 0 -M 90 -W 7 -I 14 sysadmin05 If you are trying to figurec out an epiration date use [root@host ~]# date +%F 2022-03-10 [root@host ~]# date -d "+30 days" +%F 2022-04-09 To force and account to change password use chage -d 0 cloudadmin10 ====usermod==== Usermod can also be used to affect a users login ^ option ^ what it does ^ ^ L | this will lock a users account | ^ -s /sbin/nologin | will not give a user a bash shell |