version 1.43, 2015/07/27 17:28:39 |
version 1.44, 2015/11/26 19:01:47 |
|
|
.Nd modify a user's password |
.Nd modify a user's password |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm passwd |
.Nm passwd |
.Op Fl l | y |
|
.Op Ar user |
.Op Ar user |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
changes the user's local or YP password. |
changes the user's password. |
If no |
If no |
.Ar user |
.Ar user |
is specified, the user's login name is used (see |
is specified, the user's login name is used (see |
|
|
.Dq passwordcheck |
.Dq passwordcheck |
variable in |
variable in |
.Xr login.conf 5 . |
.Xr login.conf 5 . |
.Pp |
|
The options are as follows: |
|
.Bl -tag -width Ds |
|
.It Fl l |
|
Causes the password to be updated only in the local password file. |
|
When changing only the local password, |
|
.Xr pwd_mkdb 8 |
|
is used to update the password databases. |
|
.It Fl y |
|
Forces the YP password database entry to be changed, even if |
|
the user has an entry in the local database. |
|
The |
|
.Xr rpc.yppasswdd 8 |
|
daemon should be running on the YP master server. |
|
.El |
|
.Pp |
|
If no flags are specified and the password is not in the local password |
|
database, then an attempt is made to use the YP database. |
|
.Pp |
.Pp |
The superuser is not required to provide a user's current password |
The superuser is not required to provide a user's current password |
if only the local password is modified. |
if only the local password is modified. |