table of contents
CHAGE(1) | Användarkommandon | CHAGE(1) |
NAMN¶
chage - ändra åldringsinformation för användarlösenord
SYNOPSIS¶
chage [flaggor] INLOGGNINGSNAMN
BESKRIVNING¶
The chage command changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his/her password.
FLAGGOR¶
Flaggorna som gäller för kommandot chage är:
-d, --lastdaySISTA_DAG
-E, --expiredateUTGÅNGSDATUM
Passing the number -1 as the EXPIRE_DATE will remove an account expiration date.
-h, --help
-I, --inactiveINAKTIV
Passing the number -1 as the INACTIVE will remove an account´s inactivity.
-l, --list
-m, --mindaysMIN_DAGAR
-M, --maxdaysMAX_DAGAR
Passing the number -1 as MAX_DAYS will remove checking a password´s validity.
-R, --root CHROOT_DIR
-W, --warndaysVARN_DAGAR
If none of the options are selected, chage operates in an interactive fashion, prompting the user with the current values for all of the fields. Enter the new value to change the field, or leave the line blank to use the current value. The current value is displayed between a pair of [ ] marks.
NOTERA¶
Programmet chage kräver att en skugglösenordsfil finns tillgänglig.
The chage command is restricted to the root user, except for the -l option, which may be used by an unprivileged user to determine when his/her password or account is due to expire.
CONFIGURATION¶
The following configuration variables in /etc/login.defs change the behavior of this tool:
FILER¶
/etc/passwd
/etc/shadow
AVSLUTNINGSVÄRDEN¶
Kommandot chage avslutas med följande värden:
0
1
2
15
SE OCKSŶ
11-05-2016 | shadow-utils 4.1.5.1 |