Linux–passwd修改密码

养成一个定期修改密码,同时密码可为目前最想做的事情是一个不错的习惯。passwd这个命令就起作用了。

qqin@lizard:[primer_probe_check]$passwd --help
 Usage: passwd [OPTION...] 
 -k, --keep-tokens keep non-expired authentication tokens
 -d, --delete delete the password for the named account (root only)
 -l, --lock lock the password for the named account (root only)
 -u, --unlock unlock the password for the named account (root only)
 -e, --expire expire the password for the named account (root only)
 -f, --force force operation
 -x, --maximum=DAYS maximum password lifetime (root only)
 -n, --minimum=DAYS minimum password lifetime (root only)
 -w, --warning=DAYS number of days warning users receives before password expiration (root only)
 -i, --inactive=DAYS number of days after password expiration when an account becomes disabled (root only)
 -S, --status report password status on the named account (root only)
 --stdin read new tokens from stdin (root only)

Read More …