passwd
时间:2006-07-28 来源:anima
passwdpasswd [options] [user] Create or change a password associated with a user name. Only the owner or a privileged user may change a password. Owners need not specify their user name. Users can change their own passwords. For any other operation, you must be root. Options-d, --deleteDelete the password for the user's account. -f, --forceForce the operation. Overrides -u. -?, --helpDisplay a help message describing the options. See also --usage. -i days, --inactive=daysSet the number of days after a password has expired before the account is disabled. -k, --keep-tokensKeep passwords (authentication tokens) that have not expired. -l, --lockLock the user's account. -n days, --minimum=daysSet the minimum number of days that the password is valid. -S, --statusPrint the status of the user's password. --stdinRead new passwords from standard input. -u, --unlockUnlock the user's account --usageDisplay a brief usage message. See also --help. -w days, --warning=daysSet the number of days of warning users will get before their password expires. -x days, --maximum=daysSet the maximum number of days that the password is valid. |