- userldel – delete user, delete user home directory (user -r)
- chage / passwd – managing password aging
- chage -l user10 – lists password aging attributes for user
- # chage -l user10
Last password change : May 24, 2021
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
- # chage -l user10
- chage -E 2024-12-31 user10 – deactivate user user10 at 2024-12-31
- chage -d 0 user60 – force to change the password at next login (аналог sudo passwd -e weril)
- passwd -n 7 -x 15 -w 3 user5 – configures password aging for user5 with mindays (–n) set to 7, maxdays (–x) to 16, and warndays (–w) to 3 using the passwd
- The chage command changes the number of days between password changes and the date of the last password change.
- chage -l user10 – lists password aging attributes for user
Читать дальше