2 .\" David L. Nugent. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY DAVID L. NUGENT AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL DAVID L. NUGENT OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $Id: pw.conf.5,v 1.1.1.3 1996/12/10 23:58:59 joerg Exp $
32 .Nd format of the pw.conf configuration file
36 contains configuration data for the
41 program is used for maintenance of the system password and group
42 files, allowing users and groups to be added, deleted and changed.
43 This file may be modified via the
49 option, or by editing it directly with a text editor.
53 is treated either a comment or as configuration data;
54 blank lines and lines commencing with a
56 character are considered comments, and any remaining lines are
57 examined for a leading keyword, followed by corresponding data.
59 Keywords recognised by
62 .Bl -tag -width password_days -offset indent -compact
64 affects passwords generated for new users
66 reuse gaps in uid sequences
68 reuse gaps in gid sequences
70 where to obtain default home contents
72 mail to send to new users
74 log user/group modifications to this file
76 root directory for home directories
78 paths in which to locate shell programs
80 list of valid shells (without path)
82 default shell (without path)
86 add new users to this groups
88 place new users in this login class
91 range of valid default user ids
94 range of valid default group ids
96 days after which account expires
98 days after which password expires
104 .Bl -tag -width password_days -offset indent -compact
106 disables login on newly created accounts
108 forces the password to be the account name
110 forces a blank password
112 Generates a random password
115 The second and third options are insecure and should be avoided if
116 possible on a publicly accessible system.
117 The first option requires that the superuser run
119 to set a password before the account may be used.
120 This may also be useful for creating administrative accounts.
121 The final option causes
123 to respond by printing a randomly generated password on stdout.
124 This is the preferred and most secure option.
126 also provides a method of setting a specific password for the new
127 user via a filehandle (command lines are not secure).
133 determine the method by which new user and group id numbers are
137 in this field will cause
139 to search for the first unused user or group id within the allowed
142 will ensure that no other existing user or group id within the range
143 is numerically lower than the new one generated, and therefore avoids
144 reusing gaps in the user or group id sequence that are caused by
145 previous user or group deletions.
146 Note that if the default group is not specified using the
150 will create a new group for the user and attempt to keep the new
151 user's uid and gid the same.
152 If the new user's uid is currently in use as a group id, then the next
153 available group id is chosen instead.
157 keyword nominates a directory from which the contents of a user's
158 new home directory is constructed.
164 option causes the user's home directory to be created and populated
165 using the files contained in the
169 To send an initial email to new users, the
171 keyword may be used to specify a path name to a file containing
172 the message body of the message to be sent.
173 To avoid sending mail when accounts are created, leave this entry
179 option allows logging of password file modifications into the
181 To avoid creating or adding to such a logfile, then leave this
182 field blank or specify
187 keyword is mandatory.
188 This specifies the location of the directory in which all new user
189 home directories are created.
192 specifies a list of directories - separated by colons
194 - which contain the programs used by the login shells.
198 keyword specifies a list of programs available for use as login
200 This list is a comma-separated list of shell names which should
202 These shells must exist in one of the directories nominated by
207 keyword nominates which shell program to use for new users when
208 none is specified on the
214 keyword defines the primary group (the group id number in the
215 password file) used for new accounts.
216 If left blank, or the word
218 is used, then each new user will have a corresponding group of
219 their own created automatically.
220 This is the recommended procedure for new users as it best secures each
221 user's files against interference by other users of the system
224 normally used by the user.
227 provides an automatic means of placing new users into groups within
231 This is useful where all users share some resources, and is preferable
232 to placing users into the same primary group.
233 The effect of this keyword can be overridden using the
241 field determines the login class (See
243 that new users will be allocated unless overwritten by
251 keywords determines the allowed ranges of automatically allocated user
252 and group id numbers.
253 The default values for both user and group ids are 1000 and 32000 as
254 minimum and maximum respectively.
255 The user and group id's actually used when creating an account with
257 may be overridden using the
261 command line options.
267 are used to automatically calculate the number of days from the date
268 on which an account is created when the account will expire or the
269 user will be forced to change the account's password.
272 in either field will disable the corresponding (account or password)
276 The maximum line length of
278 is 1024 characters. Longer lines will be skipped and treated
281 .Bl -tag -width /etc/master.passwd -compact
284 .It Pa /etc/master.passwd