9070 Remove wanboot from gate
[unleashed.git] / usr / src / man / man1 / yppasswd.1
blob594e5098b46eb0fd45e333d716ab73184d432f50
1 '\" te
2 .\" Copyright (c) 2001, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH YPPASSWD 1 "Feb 25, 2017"
7 .SH NAME
8 yppasswd \- change your network password in the NIS database
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fByppasswd\fR [\fIusername\fR]
13 .fi
15 .SH DESCRIPTION
16 .LP
17 The \fByppasswd\fR utility changes the network password  associated with the
18 user \fIusername\fR in the Network Information Service (\fBNIS\fR) database. If
19 the user has done a \fBkeylogin\fR(1), and a publickey/secretkey pair exists
20 for the user in the \fBNIS\fR \fBpublickey.byname\fR map, \fByppasswd\fR also
21 re-encrypts the secretkey with the new password. The \fBNIS\fR password may be
22 different from the local one on your own machine.
23 .sp
24 .LP
25 \fByppasswd\fR prompts for the old  \fBNIS\fR password, and then for the new
26 one. You must type in the old password correctly for the change to take effect.
27 The new password must be typed twice, to forestall mistakes.
28 .sp
29 .LP
30 New passwords must be at least four characters long, if they use a sufficiently
31 rich alphabet, and at least six characters long if monocase. These rules are
32 relaxed if you are insistent enough. Only the owner of the name or the
33 super-user may change a password; superuser on the root master will not be
34 prompted for the old password, and does not need to follow password
35 construction requirements.
36 .sp
37 .LP
38 The \fBNIS\fR password daemon, \fBrpc.yppasswdd\fR must be running on your
39 \fBNIS\fR server in order for the new password to take effect.
40 .SH SEE ALSO
41 .LP
42 \fBkeylogin\fR(1), \fBlogin\fR(1),
43 \fBpasswd\fR(1), \fBgetpwnam\fR(3C), \fBgetspnam\fR(3C),
44 \fBsecure_rpc\fR(3NSL), \fBnsswitch.conf\fR(4), \fBattributes\fR(5)
45 .SH WARNINGS
46 .LP
47 Even after the user has successfully changed his or her password using this
48 command, the subsequent \fBlogin\fR(1) using the new password will be
49 successful only if the user's password and shadow information is obtained from
50 NIS. See \fBgetpwnam\fR(3C), \fBgetspnam\fR(3C), and \fBnsswitch.conf\fR(4).
51 .SH NOTES
52 .LP
53 The use of \fByppasswd\fR is discouraged, as it is now only a wrapper around
54 the \fBpasswd\fR(1) command, which should be used instead. Using
55 \fBpasswd\fR(1) with the \fB-r\fR \fBnis\fR option will
56 achieve the same results, and will be consistent across all the different name
57 services available.
58 .SH BUGS
59 .LP
60 The update protocol passes all the information to the server in one \fBRPC\fR
61 call, without ever looking at it. Thus, if you type your old password
62 incorrectly, you will not be notified until after you have entered your new
63 password.