반응형
1 개요[편집]
- 참고로 계정이 만료되면 해당 계정의 cron 작업이 수행되지 않는다.
2 명령어[편집]
- 명령어 (리눅스 공통) ★
chage -E -1 -M 99999 계정명
- 명령어 (레드햇계열만 가능)[1]
chage -E never -M 99999 계정명
3 실행예시[편집]
- 실행예시 (CentOS)
[root@zetawiki ~]# chage -l testuser
Last password change : Feb 07, 2013
Password expires : May 08, 2013
Password inactive : never
Account expires : never
Minimum number of days between password change : 1
Maximum number of days between password change : 90
Number of days of warning before password expires : 15
[root@zetawiki ~]# chage -E -1 -I 0 -m 0 -M 99999 testuser
[root@zetawiki ~]# chage -l testuser
Last password change : Feb 07, 2013
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 : 15
- 실행예시 (SUSE)
zetawiki:~ # chage -E -1 -I 0 -m 0 -M 99999 testuser
Aging information changed.
- 실행예시 (SUSE에서 never 입력시 오류)
zetawiki:~ # chage -E never -I 0 -m 0 -M 99999 testuser
Expiredate is no date and no integer value >= -1
Error while parsing options.
반응형