2 .\" Copyright (c) 2004 Tom Rhodes
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $FreeBSD: src/usr.sbin/adduser/adduser.conf.5,v 1.6 2007/04/12 08:39:13 ceri Exp $
27 .\" $DragonFly: src/usr.sbin/adduser/adduser.conf.5,v 1.3 2007/12/29 18:18:00 swildner Exp $
40 file is automatically generated by the
42 utility when invoked with the
45 It is not meant to be edited by hand.
49 file is used to pre-set certain configuration options for
55 is invoked, it will check to see if this file exists, and
56 if so, the configuration will be used or offered as the
60 file offers three types of configuration:
63 Default settings offered by
65 These options are specified in the configuration file and offered
66 as the default during every invocation of the
70 Configuration options which can be set in
72 but overridden by passing a flag to
75 Configuration supported by
77 but not offered by a flag or during initial invocation.
80 In the first case, these options can be set in
82 but will still be offered when
87 will read the configuration data unless a flag
88 has been passed to override it.
92 In the third case, the configuration will be utilized, but the
93 user will never be prompted to modify the default setting by
101 The following configuration options can be set in
103 .Bl -tag -width ".Va defaultgroups" -offset indent
105 The default group new users will be added to.
107 The default class to place users in as described in
110 This option is used to specify what other groups the new account
114 .Cm no , none , random ,
119 As such, the text is not duplicated here and may be
123 The default home directory prefix, usually
126 The user's default shell which may be any of the shells listed in
129 Defines the location of the default shell and environment
132 Location of the default new user message file.
133 This message will be sent to all new users if specified
138 The default message enclosed in brackets for the
141 The default password expiration time.
142 Format of the date is either a
144 time in decimal, or a date in
146 .Ar dd No - Ar mmm No - Ar yy Op Ar yy
152 is the month in either numeric or
153 alphabetic format, and
155 is either a two or four digit year.
156 This option also accepts a relative date in the form of
158 .Ar n Op Ar m h d w o y
162 is a decimal, octal (leading 0) or hexadecimal (leading 0x) digit
163 followed by the number of Minutes, Hours, Days, Weeks, Months or
164 Years from the current date at
165 which the expiration time is to be set.
167 The default account expire time.
168 The format is similar to the
172 The default information to be held in the GECOS field of
173 .Pa /etc/master.passwd .
175 The default user ID setting.
176 This must be a number above 1000 and fewer than 65534.
179 The following is an example
181 file created with the
185 .Bd -literal -offset indent
186 # Configuration file for adduser(8).
187 # NOTE: only *some* variables are saved.
188 # Last Modified on Fri Mar 30 14:04:05 EST 2004.
195 defaultshell=/bin/csh
196 udotdir=/usr/share/skel
197 msgfile=/etc/adduser.msg
199 upwexpire=91d # Expire passwords 91 days after creation.
210 manual page first appeared in
213 The internal variables documented here may change without notice.
215 To modify this file invoke
221 This manual page was written by
222 .An Tom Rhodes Aq trhodes@FreeBSD.org .