Monday, 6 November 2017

How to add user and update password never expire flag

How to Add User and Set password as never expire flag

[root@RAMASystem ~]# adduser rama  [new user rama added]
[root@RAMASystem ~]# passwd rama   [set password]  [provide password for user rama]
Changing password for user rama.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@RAMASystem ~]# chage -l rama  [checking password expire flag]
Last password change                                    : Nov 06, 2017
Password expires                                        : Dec 21, 2017
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 45
Number of days of warning before password expires       : 7

[root@RAMASystem ~]# chage -I -1 -m 0 -M 99999 -E -1 rama  [seting never expired password flag]
[root@RAMASystem ~]#
[root@RAMASystem ~]#
[root@RAMASystem ~]# chage -l rama  [checking password never expired flag]
Last password change                                    : Nov 06, 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          : 99999
Number of days of warning before password expires       : 7

No comments:

Post a Comment