계정 패스워드 만기 정보 확인
$ sudo chage -l <username>
예시)
$ sudo chage -l sampleid
Last password change : May 20, 2024
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 메뉴얼
Usage: chage [options] LOGIN
Options:
-d, --lastday LAST_DAY set date of last password change to LAST_DAY
-E, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE
-h, --help display this help message and exit
-I, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-l, --list show account aging information
-m, --mindays MIN_DAYS set minimum number of days before password
change to MIN_DAYS
-M, --maxdays MAX_DAYS set maximum number of days before password
change to MAX_DAYS
-R, --root CHROOT_DIR directory to chroot into
-W, --warndays WARN_DAYS set expiration warning days to WARN_DAYS
참고
'OS > Centos(redhat)' 카테고리의 다른 글
[CentOS] linux xargs (0) | 2024.02.20 |
---|---|
[CentOS] vim 세팅 (options) (0) | 2024.02.19 |
[CentOS] systemd 서비스 등록 (0) | 2024.02.17 |
[CentOS] CentOS8 yum Cannot preprare internal mirrorlist (0) | 2024.02.16 |
[CentOS] 실행 중인 서비스 확인 방법 (0) | 2024.02.14 |