1CHAGE(1)                         User Commands                        CHAGE(1)
2
3
4

NAME

6       chage - change user password expiry information
7

SYNOPSIS

9       chage [options] LOGIN
10

DESCRIPTION

12       The chage command changes the number of days between password changes
13       and the date of the last password change. This information is used by
14       the system to determine when a user must change his/her password.
15

OPTIONS

17       The options which apply to the chage command are:
18
19       -d, --lastday LAST_DAY
20           Set the number of days since January 1st, 1970 when the password
21           was last changed. The date may also be expressed in the format
22           YYYY-MM-DD (or the format more commonly used in your area). If the
23           LAST_DAY is set to 0 the user is forced to change his password on
24           the next log on.
25
26       -E, --expiredate EXPIRE_DATE
27           Set the date or number of days since January 1, 1970 on which the
28           user´s account will no longer be accessible. The date may also be
29           expressed in the format YYYY-MM-DD (or the format more commonly
30           used in your area). A user whose account is locked must contact the
31           system administrator before being able to use the system again.
32
33           Passing the number -1 as the EXPIRE_DATE will remove an account
34           expiration date.
35
36       -h, --help
37           Display help message and exit.
38
39       -I, --inactive INACTIVE
40           Set the number of days of inactivity after a password has expired
41           before the account is locked. The INACTIVE option is the number of
42           days of inactivity. A user whose account is locked must contact the
43           system administrator before being able to use the system again.
44
45           Passing the number -1 as the INACTIVE will remove an account´s
46           inactivity.
47
48       -l, --list
49           Show account aging information.
50
51       -m, --mindays MIN_DAYS
52           Set the minimum number of days between password changes to
53           MIN_DAYS. A value of zero for this field indicates that the user
54           may change his/her password at any time.
55
56       -M, --maxdays MAX_DAYS
57           Set the maximum number of days during which a password is valid.
58           When MAX_DAYS plus LAST_DAY is less than the current day, the user
59           will be required to change his/her password before being able to
60           use his/her account. This occurrence can be planned for in advance
61           by use of the -W option, which provides the user with advance
62           warning.
63
64           Passing the number -1 as MAX_DAYS will remove checking a password´s
65           validity.
66
67       -R, --root CHROOT_DIR
68           Apply changes in the CHROOT_DIR directory and use the configuration
69           files from the CHROOT_DIR directory.
70
71       -W, --warndays WARN_DAYS
72           Set the number of days of warning before a password change is
73           required. The WARN_DAYS option is the number of days prior to the
74           password expiring that a user will be warned his/her password is
75           about to expire.
76
77       If none of the options are selected, chage operates in an interactive
78       fashion, prompting the user with the current values for all of the
79       fields. Enter the new value to change the field, or leave the line
80       blank to use the current value. The current value is displayed between
81       a pair of [ ] marks.
82

NOTE

84       The chage program requires a shadow password file to be available.
85
86       The chage command is restricted to the root user, except for the -l
87       option, which may be used by an unprivileged user to determine when
88       his/her password or account is due to expire.
89

CONFIGURATION

91       The following configuration variables in /etc/login.defs change the
92       behavior of this tool:
93

FILES

95       /etc/passwd
96           User account information.
97
98       /etc/shadow
99           Secure user account information.
100

EXIT VALUES

102       The chage command exits with the following values:
103
104       0
105           success
106
107       1
108           permission denied
109
110       2
111           invalid command syntax
112
113       15
114           can´t find the shadow password file
115

SEE ALSO

117       passwd(5), shadow(5).
118
119
120
121shadow-utils 4.1.5.1              05/10/2016                          CHAGE(1)
Impressum