version 1.8, 1999/06/05 01:21:36 |
version 1.9, 2000/03/10 20:17:49 |
|
|
.\" $OpenBSD$ |
.\" $OpenBSD$ |
|
.\" |
.\" Copyright (c) 1990 The Regents of the University of California. |
.\" Copyright (c) 1990 The Regents of the University of California. |
.\" All rights reserved. |
.\" All rights reserved. |
.\" |
.\" |
|
|
.\" This should really be: passwd [-l] [-y] [-k [-n name] [-i instance] [-r realm] [-u username[.instance][@realm]]] [user] |
.\" This should really be: passwd [-l] [-y] [-k [-n name] [-i instance] [-r realm] [-u username[.instance][@realm]]] [user] |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm passwd |
.Nm passwd |
changes the user's local, Kerberos, or YP password. First, the user is prompted |
changes the user's local, Kerberos, or YP password. |
for their current password. |
First, the user is prompted for their current password. |
If the current password is correctly typed, a new password is |
If the current password is correctly typed, a new password is |
requested. |
requested. |
The new password must be entered twice to avoid typing errors. |
The new password must be entered twice to avoid typing errors. |
|
|
(currently 128 characters). |
(currently 128 characters). |
Numbers, upper case letters and meta-characters |
Numbers, upper case letters and meta-characters |
are encouraged. |
are encouraged. |
|
.Pp |
|
The options are as follows: |
.Bl -tag -width flag |
.Bl -tag -width flag |
.It Fl l |
.It Fl l |
Causes the password to be updated only in the local |
Causes the password to be updated only in the local |
password file. When changing only the local password, |
password file. |
.Xr pwd_mkdb 8 |
When changing only the local password, |
|
.Xr pwd_mkdb 8 |
is used to update the password databases. |
is used to update the password databases. |
.It Fl y |
.It Fl y |
Forces the YP password database entry to be changed, even if |
Forces the YP password database entry to be changed, even if |
the user has an entry in the local database. The |
the user has an entry in the local database. |
|
The |
.Xr rpc.yppasswdd 8 |
.Xr rpc.yppasswdd 8 |
daemon should be running on the YP master server. |
daemon should be running on the YP master server. |
.It Fl k |
.It Fl k |
|
|
.It Fl n Ar name |
.It Fl n Ar name |
Specifies a |
Specifies a |
.Ar name |
.Ar name |
that will be used as the principal name rather than the username |
that will be used as the principal name rather than the username |
of the user running |
of the user running |
.Nm passwd . |
.Nm passwd . |
(This is determined from the ticket file if it exists; otherwise, |
(This is determined from the ticket file if it exists; otherwise, |
it is determined from the Unix user ID.) |
it is determined from the Unix user ID.) |
.It Fl i Ar instance |
.It Fl i Ar instance |
Specifies an |
Specifies an |
|
|
.Ar realm |
.Ar realm |
instead of the local realm. |
instead of the local realm. |
.It Fl u Ar username[.instance][@realm] |
.It Fl u Ar username[.instance][@realm] |
Specifies a fully qualified kerberos principal. |
Specifies a fully qualified Kerberos principal. |
.El |
.El |
.Pp |
.Pp |
This is the behavior if no flags are specified: |
This is the behavior if no flags are specified: |