1.\" $NetBSD: passwd.1,v 1.12 1999/03/22 18:16:41 garbled Exp $ 2.\" 3.\" Copyright (c) 1990, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by the University of 17.\" California, Berkeley and its contributors. 18.\" 4. Neither the name of the University nor the names of its contributors 19.\" may be used to endorse or promote products derived from this software 20.\" without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" from: @(#)passwd.1 8.1 (Berkeley) 6/6/93 35.\" 36.Dd June 6, 1993 37.Dt PASSWD 1 38.Os 39.Sh NAME 40.Nm passwd , 41.Nm yppasswd 42.Nd modify a user's password 43.Sh SYNOPSIS 44.Nm 45.Op Fl l 46.Op Fl y 47.Op Ar user 48.Nm yppasswd 49.Op Ar user 50.Sh DESCRIPTION 51.Nm 52changes the user's local or YP password. First, the user is prompted 53for their current password. 54If the current password is correctly typed, a new password is 55requested. 56The new password must be entered twice to avoid typing errors. 57.Pp 58The new password should be at least six characters long and not 59purely alphabetic. 60Its total length must be less than 61.Dv _PASSWORD_LEN 62(currently 128 characters). 63Numbers, upper case letters and meta characters 64are encouraged. 65.Bl -tag -width flag 66.It Fl l 67This option causes the password to be updated only in the local 68password file. When changing only the local password, 69.Xr pwd_mkdb 8 70is used to update the password databases. 71.It Fl y 72This forces the YP password database entry to be changed, even if 73the user has an entry in the local database. The 74.Xr rpc.yppasswdd 8 75daemon should be running on the YP master server. 76.Nm yppasswd 77is the equivalent of 78.Nm 79with the 80.Fl y 81flag. 82.El 83.Pp 84This is the behavior if no flags are specified: 85If the password is not in the YP database, then 86an attempt is made to use the local password database. 87The super-user is not required to provide a user's current password 88if only the local password is modified. 89.Sh FILES 90.Bl -tag -width /etc/master.passwd -compact 91.It Pa /etc/master.passwd 92The user database 93.It Pa /etc/passwd 94A Version 7 format password file 95.It Pa /etc/passwd.XXXXXX 96Temporary copy of the password file 97.El 98.Sh SEE ALSO 99.Xr chpass 1 , 100.Xr login 1 , 101.Xr passwd 5 , 102.Xr pwd_mkdb 8 , 103.Xr vipw 8 104.Rs 105.%A Robert Morris 106.%A Ken Thompson 107.%T "UNIX password security" 108.Re 109.Sh HISTORY 110A 111.Nm 112command appeared in 113.At v6 . 114