게시물 20건
   
[suse] faillog, chage User 잠김 해제 명령어 [ 계정정보 / expires / passwd]
글쓴이 : theko 날짜 : 2014-02-04 (화) 16:04 조회 : 2907


faillog –u <
사용자 계정> -r

잠긴 계정을 열기 위해서는 faillog 명령어를 사용해야 합니다.


chage -m 0 -M -1 -I -1

chage -m 0 -M -1 -I -1 jwlee

확인하기

 

a01:~ # chage -l jwlee

Minimum:        0

Maximum:        10

Warning:        15

Inactive:       -1

Last Change:            Apr 06, 2012

Password Expires:       Apr 16, 2012

Password Inactive:      Never

Account Expires:        Never

ha01:~ # chage -m 0 -M -1 -I -1 jwlee

Aging information changed.

ha01:~ # chage -l jwlee             

Minimum:        0

Maximum:        -1

Warning:        15

Inactive:       -1

Last Change:            Apr 06, 2012

Password Expires:       Never

Password Inactive:      Never

Account Expires:        Never


===================== 20171130 추가================

-E, --expiredate EXPIRE_DATE

Set the date or number of days since January 1, 1970 on which the user's account will no longer be accessible. The date may also be expressed in the format YYYY-MM-DD (or the format more commonly used in your area). A user whose account is locked must contact the system administrator before being able to use the system again.

Passing the number -1 as the EXPIRE_DATE will remove an account expiration date.


 -I, --inactive INACTIVE

Set the number of days of inactivity after a password has expired before the account is locked. The INACTIVE option is the number of days of inactivity. A user whose account is locked must contact the system administrator before being able to use the system again.

Passing the number -1 as the INACTIVE will remove an account's inactivity.


 -l, --list
Show account aging information.

    

 -m, --mindays MIN_DAYS

Set the minimum number of days between password changes to MIN_DAYS. A value of zero for this field indicates that the user may change his/her password at any time.

    

 -M, --maxdays MAX_DAYS
          

Set the maximum number of days during which a password is valid. When MAX_DAYS plus LAST_DAY is less than the current day, the user will be required to change his/her password before being able to use his/her account. This occurrence can be planned for in advance by use of the -W option, which provides the user with advance warning.


ex)

# chage -E 2019-04-23 -I 99  -m 99 -M 99 testuser
[root@theko ~]# chage -l testuser
Last password change                    : Nov 19, 2017
Password expires                    : Feb 26, 2018
Password inactive                    : Jun 05, 2018
Account expires                        : Apr 23, 2019
Minimum number of days between password change        : 99
Maximum number of days between password change        : 99
Number of days of warning before password expires    : 7
-------------------------------------------------------------------------------------------------------------

# chage -E -1 -I -1  -m 0 -M 999999999 testuser
# chage -l testuser
Last password change                    : Nov 19, 2017
Password expires                    : never
Password inactive                    : never
Account expires                        : never
Minimum number of days between password change        : 0
Maximum number of days between password change        : 999999999
Number of days of warning before password expires    : 7




이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com