1lchage(1) General Commands Manual lchage(1)
2
3
4
6 lchage - Display or change user password policy
7
8
10 lchage [OPTION]... user
11
12
14 Displays or allows changing password policy of user.
15
16
18 -d, --date=days
19 Set the date of last password change to days after Jan 1 1970.
20
21 Set days to -1 to disable password expiration (i.e. to ignore
22 --mindays, and --maxdays and related settings).
23
24 Set days to 0 to enforce password change on next login. (This
25 also disables password expiration until the password is
26 changed.)
27
28
29 -E, --expire=days
30 Set the account expiration date to days after Jan 1 1970. Set
31 days to -1 to disable account expiration.
32
33
34 -i, --interactive
35 Ask all questions when connecting to the user database, even if
36 default answers are set up in libuser configuration.
37
38
39 -I, --inactive=days
40 Disable the account after days after password expires (after the
41 user is required to change the password). Set days to -1 to
42 keep the account enabled indefinitely after password expiration.
43
44
45 -l, --list
46 Only list current user's policy and make no changes.
47
48
49 -m, --mindays=days
50 Require at least days days between password changes. Set days
51 to 0 or -1 to disable this requirement.
52
53 If this value is larger than the value set by --maxdays, the
54 user cannot change the pasword.
55
56
57 -M, --maxdays=days
58 Require changing the password after days since last password
59 change. Set days to -1 to disable password expiration.
60
61
62 -W, --warndays=days
63 Start warning the user days before password expires (before the
64 user is required to change the password). Set days to 0 or -1
65 to disable the warning.
66
67
69 The exit status is 0 on success, nonzero on error.
70
71
73 Note that “account expiration” (set by --expire) is distinct from
74 “password expiration” (set by --maxdays). Account expiration happens
75 on a fixed date regardless of password changes. Password expiration is
76 relative to the date of last password change.
77
78
79
80libuser Nov 8 2012 lchage(1)