By default, user
accounts take aging details mentioned in /etc/login.def configuration file if
the password policy are already applied then we need to set user account and
password never expire using chage command.
The chage command
changes the number of days between password changes and the date of the last
password change.
[root@linuxcnf ~]# chage -m 0 -M 99999
-I -1 -E -1 linuxcnf
[root@linuxcnf ~]#
|
Verify the new
aging details of a user:
[root@linuxcnf ~]# chage -l linuxcnf
Last password change : Aug 12, 2018
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@linuxcnf ~]#
|
It’s done!!!
No comments:
Post a Comment