Password Aging

Ãœ  One time using "chage" command
 
chage [-m mindays] [-M maxdays] [-d lastdays] [-I inactive] [-E expiredate] [-W warndays] user_name

-d Days since Jan 1, 1970 that password last changed
-m No. of days required a user is allowed to change password
-M Max no. of days password is valid
-W No. of days before password expire, user will warn
-I No. of days after password expire, account is disable
-E days since Jan 1, 1970 that password was last changed
 
[root@systemadmin ~]# chage -M 90 -W 10 paul

 
    
      [root@systemadmin ~]# chage -l paul

      Last password change                                                    : Sep 05, 2024
      Password expires                                                            : Dec 04, 2024
      Password inactive                                                           : Mar 04, 2025
      Account expires                                                              : never
      Minimum number of days between password change    : 0
      Maximum number of days between password change    : 90
      Number of days of warning before password expires     : 10

Ãœ  Making default for every new user by making change in "/etc/login.def" file
 
Vi /etc/login.def
 
PASS_MAX_DAYS 90
PASS_MIN_DAYS 10
PASS_MIN_LEN 8
PASS_WARN_AGE 10

Previous Post Next Post

نموذج الاتصال