Page 38 - RHEL8 BOOK
P. 38

13.    To set the minimum days password change to 30
                 [root@sun ~]# chage -m 30 username
          14.    To set the value of the last day since the password changed is 50
                 [root@sun ~]# chage -d 50 username

          15.    To set the Maximum days for password changed to 90
                 [root@sun ~]# chage -M 90 username

          16.     To set the number of days the password is inactive since the password's expiry and before
          locking it out.
                 [root@sun ~]# chage -I 20 username

          17.    To set the user account will expire on 2015-09-01
                 [root@sun ~]# chage -E 2015-09-01 username

          18. To set the number of days of warning before a prompt is sent for password change
                 [root@sun ~]# chage -W 10 username

          19. To see the password's detail of user (username)
             [root@sun ~]# chage -l username
             Last password change                                             : Feb 20, 1970
             Password expires                                                 : May 21, 1970
             Password inactive                                                : Jun 10, 1970
             Account expires                                                    : Sep 01, 2015
             Minimum number of days between password change                 : 30
             Maximum number of days between password change                 : 90
             Number of days of warning before password expires              : 10

                                                 User 1
                                                            Primary user


                                                 User 1
                                                            Primary group
          Primary group                                                           Primary group

                   SALES                                                ACC


                                      Secondary group



             S1               S2                              A1                A2

          Primary user         Secondary user                    Secondary user   Primary user
          Manage the users and groups with graphically (GUI mode)
          [root@sun ~]# system-config-users &



                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           38
   33   34   35   36   37   38   39   40   41   42   43