1248aee62SJacques Vidrine.\" $NetBSD: passwd.5,v 1.12.2.2 1999/12/17 23:14:50 he Exp $ 2248aee62SJacques Vidrine.\" 3afe61c15SRodney W. Grimes.\" Copyright (c) 1988, 1991, 1993 4afe61c15SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 5248aee62SJacques Vidrine.\" Portions Copyright (c) 1994, Jason Downs. All rights reserved. 6afe61c15SRodney W. Grimes.\" 7afe61c15SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 8afe61c15SRodney W. Grimes.\" modification, are permitted provided that the following conditions 9afe61c15SRodney W. Grimes.\" are met: 10afe61c15SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 11afe61c15SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 12afe61c15SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 13afe61c15SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 14afe61c15SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 15afe61c15SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 16afe61c15SRodney W. Grimes.\" must display the following acknowledgement: 17afe61c15SRodney W. Grimes.\" This product includes software developed by the University of 18afe61c15SRodney W. Grimes.\" California, Berkeley and its contributors. 19afe61c15SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 20afe61c15SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 21afe61c15SRodney W. Grimes.\" without specific prior written permission. 22afe61c15SRodney W. Grimes.\" 23afe61c15SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24afe61c15SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25afe61c15SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26afe61c15SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27afe61c15SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28afe61c15SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29afe61c15SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30afe61c15SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31afe61c15SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32afe61c15SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33afe61c15SRodney W. Grimes.\" SUCH DAMAGE. 34afe61c15SRodney W. Grimes.\" 35f274239bSGarrett Wollman.\" From: @(#)passwd.5 8.1 (Berkeley) 6/5/93 367f3dea24SPeter Wemm.\" $FreeBSD$ 37afe61c15SRodney W. Grimes.\" 38f5510010SYaroslav Tykhiy.Dd May 8, 2007 39afe61c15SRodney W. Grimes.Dt PASSWD 5 40afe61c15SRodney W. Grimes.Os 41afe61c15SRodney W. Grimes.Sh NAME 42248aee62SJacques Vidrine.Nm passwd , 43248aee62SJacques Vidrine.Nm master.passwd 44afe61c15SRodney W. Grimes.Nd format of the password file 45afe61c15SRodney W. Grimes.Sh DESCRIPTION 46afe61c15SRodney W. GrimesThe 474b66483fSRuslan Ermilov.Nm 48248aee62SJacques Vidrinefiles are the local source of password information. 49248aee62SJacques VidrineThey can be used in conjunction with the Hesiod domains 50248aee62SJacques Vidrine.Sq passwd 51248aee62SJacques Vidrineand 52248aee62SJacques Vidrine.Sq uid , 53248aee62SJacques Vidrineand the 54248aee62SJacques Vidrine.Tn NIS 55248aee62SJacques Vidrinemaps 56248aee62SJacques Vidrine.Sq passwd.byname , 57248aee62SJacques Vidrine.Sq passwd.byuid , 58248aee62SJacques Vidrine.Sq master.passwd.byname , 59248aee62SJacques Vidrineand 60248aee62SJacques Vidrine.Sq master.passwd.byuid , 61248aee62SJacques Vidrineas controlled by 62248aee62SJacques Vidrine.Xr nsswitch.conf 5 . 63248aee62SJacques Vidrine.Pp 6426605dc1STom RhodesFor consistency, none of these files should ever be modified 6526605dc1STom Rhodesmanually. 6626605dc1STom Rhodes.Pp 67248aee62SJacques VidrineThe 68248aee62SJacques Vidrine.Nm master.passwd 69248aee62SJacques Vidrinefile is readable only by root, and consists of newline separated 70a023c1a6SYaroslav Tykhiyrecords, one per user, containing ten colon 71a023c1a6SYaroslav Tykhiy.Pq Ql \&: 72a023c1a6SYaroslav Tykhiyseparated 735203edcdSRuslan Ermilovfields. 745203edcdSRuslan ErmilovThese fields are as follows: 75afe61c15SRodney W. Grimes.Pp 76a023c1a6SYaroslav Tykhiy.Bl -tag -width ".Ar password" -offset indent 77a023c1a6SYaroslav Tykhiy.It Ar name 78afe61c15SRodney W. GrimesUser's login name. 79a023c1a6SYaroslav Tykhiy.It Ar password 80afe61c15SRodney W. GrimesUser's 81afe61c15SRodney W. Grimes.Em encrypted 82afe61c15SRodney W. Grimespassword. 83a023c1a6SYaroslav Tykhiy.It Ar uid 84afe61c15SRodney W. GrimesUser's id. 85a023c1a6SYaroslav Tykhiy.It Ar gid 86afe61c15SRodney W. GrimesUser's login group id. 87a023c1a6SYaroslav Tykhiy.It Ar class 88aba0edf2SDaniel HarrisUser's login class. 89a023c1a6SYaroslav Tykhiy.It Ar change 90afe61c15SRodney W. GrimesPassword change time. 91a023c1a6SYaroslav Tykhiy.It Ar expire 92afe61c15SRodney W. GrimesAccount expiration time. 93a023c1a6SYaroslav Tykhiy.It Ar gecos 94afe61c15SRodney W. GrimesGeneral information about the user. 95a023c1a6SYaroslav Tykhiy.It Ar home_dir 96afe61c15SRodney W. GrimesUser's home directory. 97a023c1a6SYaroslav Tykhiy.It Ar shell 98afe61c15SRodney W. GrimesUser's login shell. 99afe61c15SRodney W. Grimes.El 100afe61c15SRodney W. Grimes.Pp 101248aee62SJacques VidrineThe 102248aee62SJacques Vidrine.Nm 103248aee62SJacques Vidrinefile is generated from the 104d722865aSDima Dorfman.Nm master.passwd 105248aee62SJacques Vidrinefile by 106248aee62SJacques Vidrine.Xr pwd_mkdb 8 , 107a023c1a6SYaroslav Tykhiyhas the 108a023c1a6SYaroslav Tykhiy.Ar class , 109a023c1a6SYaroslav Tykhiy.Ar change , 110a023c1a6SYaroslav Tykhiyand 111a023c1a6SYaroslav Tykhiy.Ar expire 112a023c1a6SYaroslav Tykhiyfields removed, and the 113a023c1a6SYaroslav Tykhiy.Ar password 11436cc06ffSGiorgos Keramidasfield replaced by a 11536cc06ffSGiorgos Keramidas.Ql * 11636cc06ffSGiorgos Keramidascharacter. 11722bf9812SWolfram Schneider.Pp 118afe61c15SRodney W. GrimesThe 119afe61c15SRodney W. Grimes.Ar name 120afe61c15SRodney W. Grimesfield is the login used to access the computer account, and the 121afe61c15SRodney W. Grimes.Ar uid 1225203edcdSRuslan Ermilovfield is the number associated with it. 1235203edcdSRuslan ErmilovThey should both be unique 124afe61c15SRodney W. Grimesacross the system (and often across a group of systems) since they 125afe61c15SRodney W. Grimescontrol file access. 126afe61c15SRodney W. Grimes.Pp 127afe61c15SRodney W. GrimesWhile it is possible to have multiple entries with identical login names 1285203edcdSRuslan Ermilovand/or identical user id's, it is usually a mistake to do so. 1295203edcdSRuslan ErmilovRoutines 130afe61c15SRodney W. Grimesthat manipulate these files will often return only one of the multiple 131afe61c15SRodney W. Grimesentries, and that one by random selection. 132afe61c15SRodney W. Grimes.Pp 133a023c1a6SYaroslav TykhiyThe login name must never begin with a hyphen 134a023c1a6SYaroslav Tykhiy.Pq Ql - ; 135a023c1a6SYaroslav Tykhiyalso, it is strongly 136a023c1a6SYaroslav Tykhiysuggested that neither upper-case characters or dots 137a023c1a6SYaroslav Tykhiy.Pq Ql \&. 138a023c1a6SYaroslav Tykhiybe part 1395203edcdSRuslan Ermilovof the name, as this tends to confuse mailers. 1405203edcdSRuslan ErmilovNo field may contain a 141a023c1a6SYaroslav Tykhiycolon 142a023c1a6SYaroslav Tykhiy.Pq Ql \&: 143a023c1a6SYaroslav Tykhiyas this has been used historically to separate the fields 144248aee62SJacques Vidrinein the user database. 145afe61c15SRodney W. Grimes.Pp 146f5510010SYaroslav TykhiyIn the 147f5510010SYaroslav Tykhiy.Nm master.passwd 148f5510010SYaroslav Tykhiyfile, 149a023c1a6SYaroslav Tykhiythe 150a023c1a6SYaroslav Tykhiy.Ar password 151a023c1a6SYaroslav Tykhiyfield is the 152afe61c15SRodney W. Grimes.Em encrypted 15326605dc1STom Rhodesform of the password, see 15426605dc1STom Rhodes.Xr crypt 3 . 155afe61c15SRodney W. GrimesIf the 156afe61c15SRodney W. Grimes.Ar password 157afe61c15SRodney W. Grimesfield is empty, no password will be required to gain access to the 1585203edcdSRuslan Ermilovmachine. 159f5510010SYaroslav TykhiyThis is almost invariably a mistake, so authentication components 160f5510010SYaroslav Tykhiysuch as PAM can forcibly disallow remote access to passwordless accounts. 161f5510010SYaroslav TykhiyBecause this file contains the encrypted user passwords, it should 162afe61c15SRodney W. Grimesnot be readable by anyone without appropriate privileges. 163afe61c15SRodney W. Grimes.Pp 164f5510010SYaroslav TykhiyA password of 165f5510010SYaroslav Tykhiy.Ql * 166f5510010SYaroslav Tykhiyindicates that 167f5510010SYaroslav Tykhiypassword authentication is disabled for that account 168f5510010SYaroslav Tykhiy(logins through other forms of 169f5510010SYaroslav Tykhiyauthentication, e.g., using 170f5510010SYaroslav Tykhiy.Xr ssh 1 171f5510010SYaroslav Tykhiykeys, will still work). 172f5510010SYaroslav TykhiyThe field only contains encrypted passwords, and 173f5510010SYaroslav Tykhiy.Ql * 174f5510010SYaroslav Tykhiycan never be the result of encrypting a password. 175f5510010SYaroslav Tykhiy.Pp 176f5510010SYaroslav TykhiyAn encrypted password prefixed by 177f5510010SYaroslav Tykhiy.Ql *LOCKED* 178f5510010SYaroslav Tykhiymeans that the account is temporarily locked out 179f5510010SYaroslav Tykhiyand no one can log into it using any authentication. 180f5510010SYaroslav TykhiyFor a convenient command-line interface to account locking, see 181f5510010SYaroslav Tykhiy.Xr pw 8 . 182f5510010SYaroslav Tykhiy.Pp 183a023c1a6SYaroslav TykhiyThe 184a023c1a6SYaroslav Tykhiy.Ar group 185a023c1a6SYaroslav Tykhiyfield is the group that the user will be placed in upon login. 186248aee62SJacques VidrineSince this system supports multiple groups (see 187afe61c15SRodney W. Grimes.Xr groups 1 ) 188248aee62SJacques Vidrinethis field currently has little special meaning. 189afe61c15SRodney W. Grimes.Pp 190afe61c15SRodney W. GrimesThe 191afe61c15SRodney W. Grimes.Ar class 1925203edcdSRuslan Ermilovfield is a key for a user's login class. 1935203edcdSRuslan ErmilovLogin classes 194248aee62SJacques Vidrineare defined in 195408bc30dSDavid Nugent.Xr login.conf 5 , 196408bc30dSDavid Nugentwhich is a 197afe61c15SRodney W. Grimes.Xr termcap 5 198248aee62SJacques Vidrinestyle database of user attributes, accounting, resource, 199248aee62SJacques Vidrineand environment settings. 200afe61c15SRodney W. Grimes.Pp 201afe61c15SRodney W. GrimesThe 202afe61c15SRodney W. Grimes.Ar change 203248aee62SJacques Vidrinefield is the number of seconds from the epoch, 204248aee62SJacques Vidrine.Dv UTC , 205248aee62SJacques Vidrineuntil the 206afe61c15SRodney W. Grimespassword for the account must be changed. 207248aee62SJacques VidrineThis field may be left empty to turn off the password aging feature. 208afe61c15SRodney W. Grimes.Pp 209afe61c15SRodney W. GrimesThe 210afe61c15SRodney W. Grimes.Ar expire 211248aee62SJacques Vidrinefield is the number of seconds from the epoch, 212248aee62SJacques Vidrine.Dv UTC , 213248aee62SJacques Vidrineuntil the 214afe61c15SRodney W. Grimesaccount expires. 215248aee62SJacques VidrineThis field may be left empty to turn off the account aging feature. 216afe61c15SRodney W. Grimes.Pp 217afe61c15SRodney W. GrimesThe 218afe61c15SRodney W. Grimes.Ar gecos 219a023c1a6SYaroslav Tykhiyfield normally contains comma 220a023c1a6SYaroslav Tykhiy.Pq Ql \&, 221a023c1a6SYaroslav Tykhiyseparated subfields as follows: 222afe61c15SRodney W. Grimes.Pp 223a023c1a6SYaroslav Tykhiy.Bl -tag -width ".Ar office" -offset indent -compact 224a023c1a6SYaroslav Tykhiy.It Ar name 2259ec4c09aSGarrett Wollmanuser's full name 226a023c1a6SYaroslav Tykhiy.It Ar office 227248aee62SJacques Vidrineuser's office number 228a023c1a6SYaroslav Tykhiy.It Ar wphone 2299ec4c09aSGarrett Wollmanuser's work phone number 230a023c1a6SYaroslav Tykhiy.It Ar hphone 2319ec4c09aSGarrett Wollmanuser's home phone number 2329ec4c09aSGarrett Wollman.El 233afe61c15SRodney W. Grimes.Pp 234a023c1a6SYaroslav TykhiyThe full 235a023c1a6SYaroslav Tykhiy.Ar name 236a023c1a6SYaroslav Tykhiymay contain a ampersand 237a023c1a6SYaroslav Tykhiy.Pq Ql & 238a023c1a6SYaroslav Tykhiywhich will be replaced by 239a023c1a6SYaroslav Tykhiythe capitalized login 240a023c1a6SYaroslav Tykhiy.Ar name 241a023c1a6SYaroslav Tykhiywhen the 242a023c1a6SYaroslav Tykhiy.Ar gecos 243a023c1a6SYaroslav Tykhiyfield is displayed or used 244248aee62SJacques Vidrineby various programs such as 245248aee62SJacques Vidrine.Xr finger 1 , 246248aee62SJacques Vidrine.Xr sendmail 8 , 247248aee62SJacques Vidrineetc. 248248aee62SJacques Vidrine.Pp 249a023c1a6SYaroslav TykhiyThe 250a023c1a6SYaroslav Tykhiy.Ar office 251a023c1a6SYaroslav Tykhiyand phone number subfields are used by the 252afe61c15SRodney W. Grimes.Xr finger 1 253248aee62SJacques Vidrineprogram, and possibly other applications. 254afe61c15SRodney W. Grimes.Pp 255a023c1a6SYaroslav TykhiyThe user's home directory, 256a023c1a6SYaroslav Tykhiy.Ar home_dir , 257a023c1a6SYaroslav Tykhiyis the full 258248aee62SJacques Vidrine.Ux 259afe61c15SRodney W. Grimespath name where the user 260afe61c15SRodney W. Grimeswill be placed on login. 261afe61c15SRodney W. Grimes.Pp 262a023c1a6SYaroslav TykhiyThe 263a023c1a6SYaroslav Tykhiy.Ar shell 264a023c1a6SYaroslav Tykhiyfield is the command interpreter the user prefers. 265afe61c15SRodney W. GrimesIf there is nothing in the 266afe61c15SRodney W. Grimes.Ar shell 267afe61c15SRodney W. Grimesfield, the Bourne shell 268afe61c15SRodney W. Grimes.Pq Pa /bin/sh 269afe61c15SRodney W. Grimesis assumed. 270f5510010SYaroslav TykhiyThe conventional way to disable logging into an account once and for all, 271f5510010SYaroslav Tykhiyas it is done for system accounts, 272a023c1a6SYaroslav Tykhiyis to set its 273a023c1a6SYaroslav Tykhiy.Ar shell 274a023c1a6SYaroslav Tykhiyto 275f5510010SYaroslav Tykhiy.Xr nologin 8 . 276248aee62SJacques Vidrine.Sh HESIOD SUPPORT 277248aee62SJacques VidrineIf 278248aee62SJacques Vidrine.Sq dns 279248aee62SJacques Vidrineis specified for the 280248aee62SJacques Vidrine.Sq passwd 281248aee62SJacques Vidrinedatabase in 282248aee62SJacques Vidrine.Xr nsswitch.conf 5 , 283248aee62SJacques Vidrinethen 284248aee62SJacques Vidrine.Nm 285248aee62SJacques Vidrinelookups occur from the 286248aee62SJacques Vidrine.Sq passwd 287248aee62SJacques VidrineHesiod domain. 288248aee62SJacques Vidrine.Sh NIS SUPPORT 289248aee62SJacques VidrineIf 290248aee62SJacques Vidrine.Sq nis 291248aee62SJacques Vidrineis specified for the 292248aee62SJacques Vidrine.Sq passwd 293248aee62SJacques Vidrinedatabase in 294248aee62SJacques Vidrine.Xr nsswitch.conf 5 , 295248aee62SJacques Vidrinethen 296248aee62SJacques Vidrine.Nm 297248aee62SJacques Vidrinelookups occur from the 298248aee62SJacques Vidrine.Sq passwd.byname , 299248aee62SJacques Vidrine.Sq passwd.byuid , 300248aee62SJacques Vidrine.Sq master.passwd.byname , 3019ec4c09aSGarrett Wollmanand 302248aee62SJacques Vidrine.Sq master.passwd.byuid 303248aee62SJacques Vidrine.Tn NIS 304dd5527c6SMike Pritchardmaps. 305248aee62SJacques Vidrine.Sh COMPAT SUPPORT 306248aee62SJacques VidrineIf 307248aee62SJacques Vidrine.Sq compat 308248aee62SJacques Vidrineis specified for the 309248aee62SJacques Vidrine.Sq passwd 310248aee62SJacques Vidrinedatabase, and either 311248aee62SJacques Vidrine.Sq dns 312248aee62SJacques Vidrineor 313248aee62SJacques Vidrine.Sq nis 314248aee62SJacques Vidrineis specified for the 315248aee62SJacques Vidrine.Sq passwd_compat 316248aee62SJacques Vidrinedatabase in 317248aee62SJacques Vidrine.Xr nsswitch.conf 5 , 318248aee62SJacques Vidrinethen the 319248aee62SJacques Vidrine.Nm 320248aee62SJacques Vidrinefile also supports standard 321248aee62SJacques Vidrine.Sq +/- 322248aee62SJacques Vidrineexclusions and inclusions, based on user names and netgroups. 323a755ea5bSBill Paul.Pp 324a023c1a6SYaroslav TykhiyLines beginning with a 325a023c1a6SYaroslav Tykhiy.Ql - 326a023c1a6SYaroslav Tykhiy(minus sign) are entries marked as being excluded 327a023c1a6SYaroslav Tykhiyfrom any following inclusions, which are marked with a 328a023c1a6SYaroslav Tykhiy.Ql + 329a023c1a6SYaroslav Tykhiy(plus sign). 330a755ea5bSBill Paul.Pp 331a023c1a6SYaroslav TykhiyIf the second character of the line is a 332a023c1a6SYaroslav Tykhiy.Ql @ 333a023c1a6SYaroslav Tykhiy(at sign), the operation 334248aee62SJacques Vidrineinvolves the user fields of all entries in the netgroup specified by the 335248aee62SJacques Vidrineremaining characters of the 336248aee62SJacques Vidrine.Ar name 337248aee62SJacques Vidrinefield. 338248aee62SJacques VidrineOtherwise, the remainder of the 339248aee62SJacques Vidrine.Ar name 340248aee62SJacques Vidrinefield is assumed to be a specific user name. 341a755ea5bSBill Paul.Pp 342a023c1a6SYaroslav TykhiyThe 343a023c1a6SYaroslav Tykhiy.Ql + 344a023c1a6SYaroslav Tykhiytoken may also be alone in the 345248aee62SJacques Vidrine.Ar name 346248aee62SJacques Vidrinefield, which causes all users from either the Hesiod domain 347248aee62SJacques Vidrine.Nm 348248aee62SJacques Vidrine(with 349248aee62SJacques Vidrine.Sq passwd_compat: dns ) 350248aee62SJacques Vidrineor 351248aee62SJacques Vidrine.Sq passwd.byname 352a755ea5bSBill Pauland 353248aee62SJacques Vidrine.Sq passwd.byuid 354248aee62SJacques Vidrine.Tn NIS 355248aee62SJacques Vidrinemaps (with 356248aee62SJacques Vidrine.Sq passwd_compat: nis ) 357248aee62SJacques Vidrineto be included. 358a755ea5bSBill Paul.Pp 359248aee62SJacques VidrineIf the entry contains non-empty 360248aee62SJacques Vidrine.Ar uid 361248aee62SJacques Vidrineor 362248aee62SJacques Vidrine.Ar gid 363248aee62SJacques Vidrinefields, the specified numbers will override the information retrieved 364248aee62SJacques Vidrinefrom the Hesiod domain or the 365248aee62SJacques Vidrine.Tn NIS 3665203edcdSRuslan Ermilovmaps. 3675203edcdSRuslan ErmilovAs well, if the 368248aee62SJacques Vidrine.Ar gecos , 369248aee62SJacques Vidrine.Ar dir 370248aee62SJacques Vidrineor 371248aee62SJacques Vidrine.Ar shell 372248aee62SJacques Vidrineentries contain text, it will override the information included via 373248aee62SJacques VidrineHesiod or 374248aee62SJacques Vidrine.Tn NIS . 375248aee62SJacques VidrineOn some systems, the 376248aee62SJacques Vidrine.Ar passwd 377248aee62SJacques Vidrinefield may also be overridden. 378489587c5SDima Dorfman.Sh FILES 379d962d52aSRuslan Ermilov.Bl -tag -width ".Pa /etc/master.passwd" -compact 380489587c5SDima Dorfman.It Pa /etc/passwd 381489587c5SDima Dorfman.Tn ASCII 382489587c5SDima Dorfmanpassword file, with passwords removed 383489587c5SDima Dorfman.It Pa /etc/pwd.db 384c00809fcSDima Dorfman.Xr db 3 Ns -format 385489587c5SDima Dorfmanpassword database, with passwords removed 386489587c5SDima Dorfman.It Pa /etc/master.passwd 387489587c5SDima Dorfman.Tn ASCII 388489587c5SDima Dorfmanpassword file, with passwords intact 389489587c5SDima Dorfman.It Pa /etc/spwd.db 390c00809fcSDima Dorfman.Xr db 3 Ns -format 391489587c5SDima Dorfmanpassword database, with passwords intact 392489587c5SDima Dorfman.El 393afe61c15SRodney W. Grimes.Sh COMPATIBILITY 39421421932SMike PritchardThe password file format has changed since 39521421932SMike Pritchard.Bx 4.3 . 396afe61c15SRodney W. GrimesThe following awk script can be used to convert your old-style password 397afe61c15SRodney W. Grimesfile into a new style password file. 398afe61c15SRodney W. GrimesThe additional fields 399a023c1a6SYaroslav Tykhiy.Ar class , 400a023c1a6SYaroslav Tykhiy.Ar change 401afe61c15SRodney W. Grimesand 402a023c1a6SYaroslav Tykhiy.Ar expire 403afe61c15SRodney W. Grimesare added, but are turned off by default. 404248aee62SJacques VidrineClass is currently not implemented, but change and expire are; to set them, 405248aee62SJacques Vidrineuse the current day in seconds from the epoch + whatever number of seconds 406248aee62SJacques Vidrineof offset you want. 407afe61c15SRodney W. Grimes.Bd -literal -offset indent 408afe61c15SRodney W. GrimesBEGIN { FS = ":"} 409afe61c15SRodney W. Grimes{ print $1 ":" $2 ":" $3 ":" $4 "::0:0:" $5 ":" $6 ":" $7 } 410afe61c15SRodney W. Grimes.Ed 4119cbda590SRuslan Ermilov.Sh SEE ALSO 4129cbda590SRuslan Ermilov.Xr chpass 1 , 4139cbda590SRuslan Ermilov.Xr login 1 , 4149cbda590SRuslan Ermilov.Xr passwd 1 , 41526605dc1STom Rhodes.Xr crypt 3 , 4169cbda590SRuslan Ermilov.Xr getpwent 3 , 4179cbda590SRuslan Ermilov.Xr login.conf 5 , 4189cbda590SRuslan Ermilov.Xr netgroup 5 , 41934815be1SYaroslav Tykhiy.Xr nsswitch.conf 5 , 4209cbda590SRuslan Ermilov.Xr adduser 8 , 421f5510010SYaroslav Tykhiy.Xr nologin 8 , 42226605dc1STom Rhodes.Xr pw 8 , 4239cbda590SRuslan Ermilov.Xr pwd_mkdb 8 , 4249cbda590SRuslan Ermilov.Xr vipw 8 , 4259cbda590SRuslan Ermilov.Xr yp 8 4269cbda590SRuslan Ermilov.Pp 4279cbda590SRuslan Ermilov.%T "Managing NFS and NIS" 4289cbda590SRuslan Ermilov(O'Reilly & Associates) 429afe61c15SRodney W. Grimes.Sh HISTORY 430afe61c15SRodney W. GrimesA 431afe61c15SRodney W. Grimes.Nm 432afe61c15SRodney W. Grimesfile format appeared in 433afe61c15SRodney W. Grimes.At v6 . 434248aee62SJacques Vidrine.Pp 435248aee62SJacques VidrineThe 436248aee62SJacques Vidrine.Tn NIS 437248aee62SJacques Vidrine.Nm 438248aee62SJacques Vidrinefile format first appeared in SunOS. 439248aee62SJacques Vidrine.Pp 440248aee62SJacques VidrineThe Hesiod support first appeared in 441248aee62SJacques Vidrine.Fx 4.1 . 442248aee62SJacques VidrineIt was imported from the 443248aee62SJacques Vidrine.Nx 444248aee62SJacques VidrineProject, where it first appeared in 445248aee62SJacques Vidrine.Nx 1.4 . 4469cbda590SRuslan Ermilov.Sh BUGS 4479cbda590SRuslan ErmilovUser information should (and eventually will) be stored elsewhere. 4489cbda590SRuslan Ermilov.Pp 4499cbda590SRuslan ErmilovPlacing 4509cbda590SRuslan Ermilov.Sq compat 4519cbda590SRuslan Ermilovexclusions in the file after any inclusions will have 4529cbda590SRuslan Ermilovunexpected results. 453