Password Expired time & complexity

前言

要登入的時候臨時發現密碼過期以及重設密碼的時候限制一堆很煩

參考資料

Expire Time Setting

1
2
3
4
5
6
7
# chage command
# list information
sudo chage -l <Username>
# Set Expire time(days, -1 is remove)
sudo chage -M <time> <Username>
# Erase Expire time(days, -1 is remove)
sudo chage -E <time> <Username>

Complexity

1
2
3
# /etc/security/pwquality.conf
# set minimal password length=n
minlen=n