°Ô½Ã¹° 20°Ç
   
[suse] faillog, chage User Àá±è ÇØÁ¦ ¸í·É¾î [ °èÁ¤Á¤º¸ / expires / passwd]
±Û¾´ÀÌ : theko ³¯Â¥ : 2014-02-04 (È­) 16:04 Á¶È¸ : 5881


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