xref: /freebsd/usr.sbin/adduser/adduser.conf.5 (revision 00de0ec33916784fac31293fee6bd3483f8674a6)
100de0ec3STom Rhodes.\"
200de0ec3STom Rhodes.\" Copyright (c) 2004 Tom Rhodes
300de0ec3STom Rhodes.\" All rights reserved.
400de0ec3STom Rhodes.\"
500de0ec3STom Rhodes.\" Redistribution and use in source and binary forms, with or without
600de0ec3STom Rhodes.\" modification, are permitted provided that the following conditions
700de0ec3STom Rhodes.\" are met:
800de0ec3STom Rhodes.\" 1. Redistributions of source code must retain the above copyright
900de0ec3STom Rhodes.\"    notice, this list of conditions and the following disclaimer.
1000de0ec3STom Rhodes.\" 2. Redistributions in binary form must reproduce the above copyright
1100de0ec3STom Rhodes.\"    notice, this list of conditions and the following disclaimer in the
1200de0ec3STom Rhodes.\"    documentation and/or other materials provided with the distribution.
1300de0ec3STom Rhodes.\"
1400de0ec3STom Rhodes.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1500de0ec3STom Rhodes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1600de0ec3STom Rhodes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1700de0ec3STom Rhodes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1800de0ec3STom Rhodes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1900de0ec3STom Rhodes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2000de0ec3STom Rhodes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2100de0ec3STom Rhodes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2200de0ec3STom Rhodes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2300de0ec3STom Rhodes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2400de0ec3STom Rhodes.\" SUCH DAMAGE.
2500de0ec3STom Rhodes.\"
2600de0ec3STom Rhodes.\" $FreeBSD$
2700de0ec3STom Rhodes.\"
2800de0ec3STom Rhodes.Dd March 30, 2004
2900de0ec3STom Rhodes.Dt ADDUSER.CONF 5
3000de0ec3STom Rhodes.Os
3100de0ec3STom Rhodes.Sh NAME
3200de0ec3STom Rhodes.Nm adduser.conf
3300de0ec3STom Rhodes.Nd configuration file for the adduser utility
3400de0ec3STom Rhodes.Sh DESCRIPTION
3500de0ec3STom RhodesThe
3600de0ec3STom Rhodes.Pa /etc/adduser.conf
3700de0ec3STom Rhodesfile is used to pre-set certain configuration options for
3800de0ec3STom Rhodesthe
3900de0ec3STom Rhodes.Xr adduser 8
4000de0ec3STom Rhodesutility.
4100de0ec3STom RhodesWhen
4200de0ec3STom Rhodes.Xr adduser 8
4300de0ec3STom Rhodesis invoked, it will check to see if this file exists and
4400de0ec3STom Rhodesif so the configuration will be used or offered as the
4500de0ec3STom Rhodesdefault settings.
4600de0ec3STom RhodesThe
4700de0ec3STom Rhodes.Nm
4800de0ec3STom Rhodesfile offers three types of configuration:
4900de0ec3STom Rhodes.Bl -bullet
5000de0ec3STom Rhodes.It
5100de0ec3STom RhodesDefault settings offered by
5200de0ec3STom Rhodes.Xr adduser 8 .
5300de0ec3STom RhodesThese options are specified in the configuration file and offered
5400de0ec3STom Rhodesas the default during every invocation of the
5500de0ec3STom Rhodes.Xr adduser 8
5600de0ec3STom Rhodesutility.
5700de0ec3STom Rhodes.It
5800de0ec3STom RhodesConfiguration options which can be set in
5900de0ec3STom Rhodes.Nm ,
6000de0ec3STom Rhodesbut overridden by passing a flag to
6100de0ec3STom Rhodes.Xr adduser 8 .
6200de0ec3STom Rhodes.It
6300de0ec3STom RhodesConfiguration supported by
6400de0ec3STom Rhodes.Xr adduser 8
6500de0ec3STom Rhodesbut not offered by a flag or during initial invocation.
6600de0ec3STom Rhodes.El
6700de0ec3STom Rhodes.Pp
6800de0ec3STom RhodesIn the first case, these options can be set in
6900de0ec3STom Rhodes.Nm
7000de0ec3STom Rhodesbut will still be offered when
7100de0ec3STom Rhodes.Xr adduser 8
7200de0ec3STom Rhodesis invoked.
7300de0ec3STom RhodesIn the second case,
7400de0ec3STom Rhodes.Xr adduser 8
7500de0ec3STom Rhodeswill read the configuration data unless a flag
7600de0ec3STom Rhodeshas been passed to override it.
7700de0ec3STom RhodesFor example, the
7800de0ec3STom Rhodes.Dq shell
7900de0ec3STom Rhodesoption.
8000de0ec3STom RhodesIn the third case, the configuration will be utilized, but the
8100de0ec3STom Rhodesuser will never be prompted to modify the default setting by
8200de0ec3STom Rhodeseither a flag or an
8300de0ec3STom Rhodes.Xr adduser 8
8400de0ec3STom Rhodesprompt.
8500de0ec3STom RhodesFor example, the
8600de0ec3STom Rhodes.Dq upwexpire
8700de0ec3STom Rhodessetting.
8800de0ec3STom Rhodes.Pp
8900de0ec3STom RhodesThe following configuration options can be set in
9000de0ec3STom Rhodes.Nm :
9100de0ec3STom Rhodes.Pp
9200de0ec3STom Rhodes.Bl -tag -width "defaultgroups" -offset indent -compact
9300de0ec3STom Rhodes.It defaultLgroup
9400de0ec3STom RhodesThe default group new users will be added to.
9500de0ec3STom Rhodes.Pp
9600de0ec3STom Rhodes.It defaultclass
9700de0ec3STom RhodesThe default class to place users in as described in
9800de0ec3STom Rhodes.Xr login.conf 5 .
9900de0ec3STom Rhodes.Pp
10000de0ec3STom Rhodes.It defaultgroups
10100de0ec3STom RhodesThis option is used to specify what other groups the new account
10200de0ec3STom Rhodesshould be added to.
10300de0ec3STom Rhodes.Pp
10400de0ec3STom Rhodes.It passwdtype
10500de0ec3STom RhodesMay be one of
10600de0ec3STom Rhodes.Cm no , Cm none , Cm random ,
10700de0ec3STom Rhodesor
10800de0ec3STom Rhodes.Cm yes
10900de0ec3STom Rhodesas described in
11000de0ec3STom Rhodes.Xr adduser 8 .
11100de0ec3STom RhodesAs such, the text is not duplicated here and may be
11200de0ec3STom Rhodesread in
11300de0ec3STom Rhodes.Xr adduser 8 .
11400de0ec3STom Rhodes.Pp
11500de0ec3STom Rhodes.It homeprefix
11600de0ec3STom RhodesThe default home directory prefix, usually
11700de0ec3STom Rhodes.Pa /home .
11800de0ec3STom Rhodes.Pp
11900de0ec3STom Rhodes.It defaultshell
12000de0ec3STom RhodesThe users default shell which may be any of the shells listed in
12100de0ec3STom Rhodes.Pa /etc/shells .
12200de0ec3STom Rhodes.Pp
12300de0ec3STom Rhodes.It udotdir
12400de0ec3STom RhodesDefines the location of the default shell and environment
12500de0ec3STom Rhodesconfiguration files.
12600de0ec3STom Rhodes.Pp
12700de0ec3STom Rhodes.It msgfile
12800de0ec3STom RhodesLocation of the default new user message file.
12900de0ec3STom RhodesThis message will be sent to all new users if specified
13000de0ec3STom Rhodeshere or at the
13100de0ec3STom Rhodes.Xr adduser 8
13200de0ec3STom Rhodesprompt.
13300de0ec3STom Rhodes.Pp
13400de0ec3STom Rhodes.It disableflag
13500de0ec3STom RhodesThe default message enclosed in brackets for the
13600de0ec3STom Rhodeslock account prompt.
13700de0ec3STom Rhodes.Pp
13800de0ec3STom Rhodes.It upwexpire
13900de0ec3STom RhodesThe default password expiration time.
14000de0ec3STom RhodesFormat of the date is either a
14100de0ec3STom Rhodes.Ux
14200de0ec3STom Rhodestime in decimal, or a date in
14300de0ec3STom Rhodes.Sm off
14400de0ec3STom Rhodes.Ql dd-mmm-yy Bq yy
14500de0ec3STom Rhodes.Sm on
14600de0ec3STom Rhodesformat, where dd is the day, mmm is the month in either numeric or
14700de0ec3STom Rhodesalphabetic format and year is either a two or four digit year.
14800de0ec3STom RhodesThis option also accepts a relative date in the form of
14900de0ec3STom Rhodes.Sm off
15000de0ec3STom Rhodes.Sy n Bq mhdwoy
15100de0ec3STom Rhodes.Sm on
15200de0ec3STom Rhodeswhere
15300de0ec3STom Rhodes.Sy n
15400de0ec3STom Rhodesis a decimal, octal (leading 0) or hexadecimal (leading 0x) digit followed by the
15500de0ec3STom Rhodesnumber of Minutes, Hours, Days, Weeks, Months or Years from the current date at
15600de0ec3STom Rhodeswhich the expiration time is to be set.
15700de0ec3STom Rhodes.Pp
15800de0ec3STom Rhodes.It uexpire
15900de0ec3STom RhodesThe default account expire time.
16000de0ec3STom RhodesThe format is similar to the upwexpire option.
16100de0ec3STom Rhodes.Pp
16200de0ec3STom Rhodes.It ugecos
16300de0ec3STom RhodesThe default information to be held in the gecos field of
16400de0ec3STom Rhodes.Pa /etc/master.passwd .
16500de0ec3STom Rhodes.Pp
16600de0ec3STom Rhodes.It uuid
16700de0ec3STom RhodesThe default user ID setting.
16800de0ec3STom RhodesThis must be a number above 1000 and fewer than 65534.
16900de0ec3STom Rhodes.El
17000de0ec3STom Rhodes.Sh EXAMPLES
17100de0ec3STom RhodesThe following is an example
17200de0ec3STom Rhodes.Nm
17300de0ec3STom Rhodesfile created with the
17400de0ec3STom Rhodes.Fl C
17500de0ec3STom Rhodes.Xr adduser 8
17600de0ec3STom Rhodesflag and modified.
17700de0ec3STom Rhodes.Bd -literal
17800de0ec3STom Rhodes# Configuration file for adduser(8).
17900de0ec3STom Rhodes# NOTE: only *some* variables are saved.
18000de0ec3STom Rhodes# Last Modified on Fri Mar 30 14:04:05 EST 2004.
18100de0ec3STom Rhodes
18200de0ec3STom RhodesdefaultLgroup=
18300de0ec3STom Rhodesdefaultclass=
18400de0ec3STom Rhodesdefaultgroups=
18500de0ec3STom Rhodespasswdtype=yes
18600de0ec3STom Rhodeshomeprefix=/home
18700de0ec3STom Rhodesdefaultshell=/bin/csh
18800de0ec3STom Rhodesudotdir=/usr/share/skel
18900de0ec3STom Rhodesmsgfile=/etc/adduser.msg
19000de0ec3STom Rhodesdisableflag=
19100de0ec3STom Rhodesupwexpire=91d # Expire passwords 91 days after creation.
19200de0ec3STom Rhodes.Ed
19300de0ec3STom Rhodes.Sh SEE ALSO
19400de0ec3STom Rhodes.Xr group 5 ,
19500de0ec3STom Rhodes.Xr passwd 5 ,
19600de0ec3STom Rhodes.Xr adduser 8 ,
19700de0ec3STom Rhodes.Xr pw 8 ,
19800de0ec3STom Rhodes.Xr rmuser 8
19900de0ec3STom Rhodes.Sh HISTORY
20000de0ec3STom RhodesThe
20100de0ec3STom Rhodes.Nm
20200de0ec3STom Rhodesmanual page first appeared in
20300de0ec3STom Rhodes.Fx 4.10 .
20400de0ec3STom Rhodes.Sh AUTHORS
20500de0ec3STom RhodesThis manual page was written by
20600de0ec3STom Rhodes.An Tom Rhodes Aq trhodes@FreeBSD.org
207