chage Introduction to Commands:
This command is used to change the password expiration information for a user.
1 . Command format:
chage [OPTION] USERNAME
2 . Command function:
The user password expiration information is related to the operation.
3 . Command parameters:
- D: Last modification Time
- E: Expiry Time
- I. : Non-active time
- m: minimum period of use
-M: Maximum usage period
-W: Warning Time
4 . Command instance:
1, chage-d 201610101200.30 donggen Specify user donggen last password modification time
[Email protected] ~]# chage-d 201610101200.30 Donggen
[Email protected] ~]#
2, chage-w 5 donggen specified user donggen password expiration warning time is 5 days
[Email protected] ~]# chage-w 5 Donggen
[Email protected] ~]# tail-5/etc/shadow
Sshd:!! : 17032::::::
tcpdump:!! : 17032::::::
oprofile:!! : 17032::::::
donggen:$6$aesnjkov$4t5dflbop86wrfvzjha0wstumoakuyveqqudbe8bgqm3k/1clgowygfmkytsecxbc2o2nv7zrgphfrybp6jvd.::0 : 99,999:5::: The warning time has been set for 5 days
Jack:$6$ab6bhots$bllzeyegi2snkobznoiolw3vdafg7koyokqyzrylwbmiqbpsvedwmitn3c2ipkx.sfgf8u2rmg/b/oev50abr1 : 17086:0:99999:7:::
This article is from the "Learn Linux history" blog, please be sure to keep this source http://woyaoxuelinux.blog.51cto.com/5663865/1861473
Linux command: Chage