1afe61c15SRodney W. Grimes.\" Copyright (c) 1988, 1991, 1993 2afe61c15SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 3afe61c15SRodney W. Grimes.\" 4afe61c15SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 5afe61c15SRodney W. Grimes.\" modification, are permitted provided that the following conditions 6afe61c15SRodney W. Grimes.\" are met: 7afe61c15SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 8afe61c15SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 9afe61c15SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 10afe61c15SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 11afe61c15SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12afe61c15SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 13afe61c15SRodney W. Grimes.\" must display the following acknowledgement: 14afe61c15SRodney W. Grimes.\" This product includes software developed by the University of 15afe61c15SRodney W. Grimes.\" California, Berkeley and its contributors. 16afe61c15SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 17afe61c15SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 18afe61c15SRodney W. Grimes.\" without specific prior written permission. 19afe61c15SRodney W. Grimes.\" 20afe61c15SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21afe61c15SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22afe61c15SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23afe61c15SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24afe61c15SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25afe61c15SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26afe61c15SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27afe61c15SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28afe61c15SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29afe61c15SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30afe61c15SRodney W. Grimes.\" SUCH DAMAGE. 31afe61c15SRodney W. Grimes.\" 32afe61c15SRodney W. Grimes.\" @(#)passwd.5 8.1 (Berkeley) 6/5/93 33afe61c15SRodney W. Grimes.\" 34afe61c15SRodney W. Grimes.Dd June 5, 1993 35afe61c15SRodney W. Grimes.Dt PASSWD 5 36afe61c15SRodney W. Grimes.Os 37afe61c15SRodney W. Grimes.Sh NAME 38afe61c15SRodney W. Grimes.Nm passwd 39afe61c15SRodney W. Grimes.Nd format of the password file 40afe61c15SRodney W. Grimes.Sh DESCRIPTION 41afe61c15SRodney W. GrimesThe 42afe61c15SRodney W. Grimes.Nm passwd 43afe61c15SRodney W. Grimesfiles are files consisting of newline separated records, one per user, 44afe61c15SRodney W. Grimescontaining ten colon (``:'') separated fields. These fields are as 45afe61c15SRodney W. Grimesfollows: 46afe61c15SRodney W. Grimes.Pp 47afe61c15SRodney W. Grimes.Bl -tag -width password -offset indent 48afe61c15SRodney W. Grimes.It name 49afe61c15SRodney W. GrimesUser's login name. 50afe61c15SRodney W. Grimes.It password 51afe61c15SRodney W. GrimesUser's 52afe61c15SRodney W. Grimes.Em encrypted 53afe61c15SRodney W. Grimespassword. 54afe61c15SRodney W. Grimes.It uid 55afe61c15SRodney W. GrimesUser's id. 56afe61c15SRodney W. Grimes.It gid 57afe61c15SRodney W. GrimesUser's login group id. 58afe61c15SRodney W. Grimes.It class 59afe61c15SRodney W. GrimesUser's general classification (unused). 60afe61c15SRodney W. Grimes.It change 61afe61c15SRodney W. GrimesPassword change time. 62afe61c15SRodney W. Grimes.It expire 63afe61c15SRodney W. GrimesAccount expiration time. 64afe61c15SRodney W. Grimes.It gecos 65afe61c15SRodney W. GrimesGeneral information about the user. 66afe61c15SRodney W. Grimes.It home_dir 67afe61c15SRodney W. GrimesUser's home directory. 68afe61c15SRodney W. Grimes.It shell 69afe61c15SRodney W. GrimesUser's login shell. 70afe61c15SRodney W. Grimes.El 71afe61c15SRodney W. Grimes.Pp 72afe61c15SRodney W. GrimesThe 73afe61c15SRodney W. Grimes.Ar name 74afe61c15SRodney W. Grimesfield is the login used to access the computer account, and the 75afe61c15SRodney W. Grimes.Ar uid 76afe61c15SRodney W. Grimesfield is the number associated with it. They should both be unique 77afe61c15SRodney W. Grimesacross the system (and often across a group of systems) since they 78afe61c15SRodney W. Grimescontrol file access. 79afe61c15SRodney W. Grimes.Pp 80afe61c15SRodney W. GrimesWhile it is possible to have multiple entries with identical login names 81afe61c15SRodney W. Grimesand/or identical user id's, it is usually a mistake to do so. Routines 82afe61c15SRodney W. Grimesthat manipulate these files will often return only one of the multiple 83afe61c15SRodney W. Grimesentries, and that one by random selection. 84afe61c15SRodney W. Grimes.Pp 85afe61c15SRodney W. GrimesThe login name must never begin with a hyphen (``-''); also, it is strongly 86afe61c15SRodney W. Grimessuggested that neither upper-case characters or dots (``.'') be part 87afe61c15SRodney W. Grimesof the name, as this tends to confuse mailers. No field may contain a 88afe61c15SRodney W. Grimescolon (``:'') as this has been used historically to separate the fields 89afe61c15SRodney W. Grimesin the user database. 90afe61c15SRodney W. Grimes.Pp 91afe61c15SRodney W. GrimesThe password field is the 92afe61c15SRodney W. Grimes.Em encrypted 93afe61c15SRodney W. Grimesform of the password. 94afe61c15SRodney W. GrimesIf the 95afe61c15SRodney W. Grimes.Ar password 96afe61c15SRodney W. Grimesfield is empty, no password will be required to gain access to the 97afe61c15SRodney W. Grimesmachine. This is almost invariably a mistake. 98afe61c15SRodney W. GrimesBecause these files contain the encrypted user passwords, they should 99afe61c15SRodney W. Grimesnot be readable by anyone without appropriate privileges. 100afe61c15SRodney W. Grimes.Pp 101afe61c15SRodney W. GrimesThe group field is the group that the user will be placed in upon login. 102afe61c15SRodney W. GrimesSince this system supports multiple groups (see 103afe61c15SRodney W. Grimes.Xr groups 1 ) 104afe61c15SRodney W. Grimesthis field currently has little special meaning. 105afe61c15SRodney W. Grimes.Pp 106afe61c15SRodney W. GrimesThe 107afe61c15SRodney W. Grimes.Ar class 108afe61c15SRodney W. Grimesfield is currently unused. In the near future it will be a key to 109afe61c15SRodney W. Grimesa 110afe61c15SRodney W. Grimes.Xr termcap 5 111afe61c15SRodney W. Grimesstyle database of user attributes. 112afe61c15SRodney W. Grimes.Pp 113afe61c15SRodney W. GrimesThe 114afe61c15SRodney W. Grimes.Ar change 115afe61c15SRodney W. Grimesfield is the number in seconds, 116afe61c15SRodney W. Grimes.Dv GMT , 117afe61c15SRodney W. Grimesfrom the epoch, until the 118afe61c15SRodney W. Grimespassword for the account must be changed. 119afe61c15SRodney W. GrimesThis field may be left empty to turn off the password aging feature. 120afe61c15SRodney W. Grimes.Pp 121afe61c15SRodney W. GrimesThe 122afe61c15SRodney W. Grimes.Ar expire 123afe61c15SRodney W. Grimesfield is the number in seconds, 124afe61c15SRodney W. Grimes.Dv GMT , 125afe61c15SRodney W. Grimesfrom the epoch, until the 126afe61c15SRodney W. Grimesaccount expires. 127afe61c15SRodney W. GrimesThis field may be left empty to turn off the account aging feature. 128afe61c15SRodney W. Grimes.Pp 129afe61c15SRodney W. GrimesThe 130afe61c15SRodney W. Grimes.Ar gecos 131afe61c15SRodney W. Grimesfield normally contains comma (``,'') separated subfields as follows: 132afe61c15SRodney W. Grimes.Pp 133afe61c15SRodney W. Grimes.Bd -unfilled -offset indent 134afe61c15SRodney W. Grimesname user's full name 135afe61c15SRodney W. Grimesoffice user's office number 136afe61c15SRodney W. Grimeswphone user's work phone number 137afe61c15SRodney W. Grimeshphone user's home phone number 138afe61c15SRodney W. Grimes.Ed 139afe61c15SRodney W. Grimes.Pp 140afe61c15SRodney W. GrimesThis information is used by the 141afe61c15SRodney W. Grimes.Xr finger 1 142afe61c15SRodney W. Grimesprogram. 143afe61c15SRodney W. Grimes.Pp 144afe61c15SRodney W. GrimesThe user's home directory is the full 145afe61c15SRodney W. Grimes.Tn UNIX 146afe61c15SRodney W. Grimespath name where the user 147afe61c15SRodney W. Grimeswill be placed on login. 148afe61c15SRodney W. Grimes.Pp 149afe61c15SRodney W. GrimesThe shell field is the command interpreter the user prefers. 150afe61c15SRodney W. GrimesIf there is nothing in the 151afe61c15SRodney W. Grimes.Ar shell 152afe61c15SRodney W. Grimesfield, the Bourne shell 153afe61c15SRodney W. Grimes.Pq Pa /bin/sh 154afe61c15SRodney W. Grimesis assumed. 155afe61c15SRodney W. Grimes.Sh SEE ALSO 156afe61c15SRodney W. Grimes.Xr chpass 1 , 157afe61c15SRodney W. Grimes.Xr login 1 , 158afe61c15SRodney W. Grimes.Xr passwd 1 , 159afe61c15SRodney W. Grimes.Xr getpwent 3 , 160afe61c15SRodney W. Grimes.Xr adduser 8 , 161afe61c15SRodney W. Grimes.Xr pwd_mkdb 8 , 162afe61c15SRodney W. Grimes.Xr vipw 8 163afe61c15SRodney W. Grimes.Sh BUGS 164afe61c15SRodney W. GrimesUser information should (and eventually will) be stored elsewhere. 165afe61c15SRodney W. Grimes.Sh COMPATIBILITY 166afe61c15SRodney W. GrimesThe password file format has changed since 4.3BSD. 167afe61c15SRodney W. GrimesThe following awk script can be used to convert your old-style password 168afe61c15SRodney W. Grimesfile into a new style password file. 169afe61c15SRodney W. GrimesThe additional fields 170afe61c15SRodney W. Grimes.Dq class , 171afe61c15SRodney W. Grimes.Dq change 172afe61c15SRodney W. Grimesand 173afe61c15SRodney W. Grimes.Dq expire 174afe61c15SRodney W. Grimesare added, but are turned off by default. 175afe61c15SRodney W. GrimesClass is currently not implemented, but change and expire are; to set them, 176afe61c15SRodney W. Grimesuse the current day in seconds from the epoch + whatever number of seconds 177afe61c15SRodney W. Grimesof offset you want. 178afe61c15SRodney W. Grimes.Bd -literal -offset indent 179afe61c15SRodney W. GrimesBEGIN { FS = ":"} 180afe61c15SRodney W. Grimes{ print $1 ":" $2 ":" $3 ":" $4 "::0:0:" $5 ":" $6 ":" $7 } 181afe61c15SRodney W. Grimes.Ed 182afe61c15SRodney W. Grimes.Sh HISTORY 183afe61c15SRodney W. GrimesA 184afe61c15SRodney W. Grimes.Nm 185afe61c15SRodney W. Grimesfile format appeared in 186afe61c15SRodney W. Grimes.At v6 . 187