📄 passwd.1
字号:
.\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu).\" May be distributed under the GNU General Public License.TH PASSWD 1 "11 November 1996" "Util-linux 2.6" "Linux Programmer's Manual".SH NAMEpasswd \- change password.SH SYNOPSIS.BR "passwd".RB [ " \-o " ].RB [ " \-q " ].RB [ " \-v " ].RI [ " name " [ " password " ]].br.BR "passwd \-f ".RI [ " arguments to chfn " ].br.BR "passwd \-s ".RI [ " arguments to chsh " ].SH DESCRIPTIONWithout arguments.B passwdwill change the password for the current user. First the user is asked forthe old password, then prompted twice for the new password in order tocatch typing errors.The one and two argument forms may only be used by the superuser. Using theone argument form, the superuser may change the password for that.IR user .The superuser is not asked for the users old password, but the rules for proper passwords are also applied unless the.B "\-o"option is used. The superuser may have legitimatereasons to choose a non-conformant password.The two argument form gives the .IR user " the " passwordstated as the second argument. Note that this password willbe visible to people doing `ps' or so. Avoid this form.Giving an empty string as the second argument erases the password for theuser, but only in combination with the.B "\-o"option.Password changes may get logged using the .BR syslog (3)facility, depending on compile-time defines (on by default).If so, every change willbe logged at a low level as auth.notice, except for changing the rootpassword with will be logged with auth.warning..SH OPTIONS.TP.B "\-f, \-\-fullname"Change the user's full name (the GECOS field of the passwd entry).Invokes /usr/bin/chfn with the non-option command line arguments..TP.B "\-o, \-\-force"Turn off simplicity checks on the new password. This option may onlybe used by the super user. This is intend to allow simple initialpasswords given by the superuser..TP.B "\-s, \-\-shell"Change the user's shell by invoking /usr/bin/chsh with the non-optioncommand line arguments..TP.B "\-q, \-\-quiet, \-\-silent"In this mode passwd won't tell that the passwd get's changed..TP.B "\-v, \-V, \-\-version"Prints version information and exits..SH PASSWORD RULESThe new password must fulfill these rules:.TPobe at least six characters long;.TPomust not be equal to the old password;.TPomust contain characters out of at least two of the following classes:upper and lower case letters, digits and non alphanumeric characters;.TPomust not match neither the username nor any word of the realname,neither in normal nor in reverse order, neither at the beginning norat the end..SH BUGSIf you change your mind there is no escaping from this program.It will insist on a new password until killed from another terminal.(This is caused by a bug in getpass(3): it ignores signals.).SH FILES.TP.I /etc/passwdThe password file..SH "SEE ALSO".BR chsh (1),.BR chfn (1),.BR syslog (3),.BR syslog.conf (5),.BR passwd (8)..SH AUTHORPeter Orbaek (poe@daimi.aau.dk)..brMartin Schulze (joey@infodrom.north.de) with extensive rewriting andimproving done.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -