19 Ekim 2015 Pazartesi

Günün komutu - Linux sistemlerinde {2015.10.18} - chage

Sistemimizdeki bir kullanıcının, ömrünü, belli sürelerle zorunlu parola değiştirmeye zorlamaya yarayan, bilmediğimiz, kullanmadığımız bir komut.


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

-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 maximim 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


[root@zurbahan ~]# useradd remzi
 
[root@zurbahan ~]# chage -l remzi
Last password change                    : Eki 18, 2015
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
 
 [root@zurbahan ~]# chage -M 360 -W 30  -m 3 -I 7   remzi
 
[root@zurbahan ~]# chage -l remzi
Last password change                    : Eki 18, 2015
Password expires                    : Eki 12, 2016
Password inactive                    : Eki 19, 2016
Account expires                        : never
Minimum number of days between password change        : 3
Maximum number of days between password change        : 360
Number of days of warning before password expires    : 30






Hiç yorum yok:

Yorum Gönder

ansible ile yerel quay sunucusu üzerinden execution environment kullanımı

 Yerel quay veya registry sunucularımızdaki ee leri ansible ile kullanabiliyoruz. Bunun için kendi yaptığımız ee leri veya hazır ee leri yük...