Linux command: Chage

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.