2004-03-30 23:50:42 +02:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2004 Tom Rhodes
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2007-04-12 10:39:13 +02:00
|
|
|
.Dd April 12, 2007
|
2004-03-30 23:50:42 +02:00
|
|
|
.Dt ADDUSER.CONF 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm adduser.conf
|
2004-06-13 20:03:44 +02:00
|
|
|
.Nd
|
2004-03-31 00:31:22 +02:00
|
|
|
.Xr adduser 8
|
2004-06-13 20:03:44 +02:00
|
|
|
configuration file
|
2004-03-30 23:50:42 +02:00
|
|
|
.Sh DESCRIPTION
|
2012-03-29 07:02:12 +02:00
|
|
|
The
|
2007-04-12 10:35:58 +02:00
|
|
|
.Pa /etc/adduser.conf
|
|
|
|
file is automatically generated by the
|
|
|
|
.Xr adduser 8
|
|
|
|
utility when invoked with the
|
|
|
|
.Fl C
|
|
|
|
command-line option.
|
2007-04-12 10:39:13 +02:00
|
|
|
It is not meant to be edited by hand.
|
2007-04-12 10:35:58 +02:00
|
|
|
.Pp
|
2004-03-30 23:50:42 +02:00
|
|
|
The
|
|
|
|
.Pa /etc/adduser.conf
|
|
|
|
file is used to pre-set certain configuration options for
|
|
|
|
the
|
|
|
|
.Xr adduser 8
|
|
|
|
utility.
|
|
|
|
When
|
|
|
|
.Xr adduser 8
|
2004-06-13 20:03:44 +02:00
|
|
|
is invoked, it will check to see if this file exists, and
|
|
|
|
if so, the configuration will be used or offered as the
|
2004-03-30 23:50:42 +02:00
|
|
|
default settings.
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file offers three types of configuration:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
Default settings offered by
|
|
|
|
.Xr adduser 8 .
|
|
|
|
These options are specified in the configuration file and offered
|
|
|
|
as the default during every invocation of the
|
|
|
|
.Xr adduser 8
|
|
|
|
utility.
|
|
|
|
.It
|
|
|
|
Configuration options which can be set in
|
|
|
|
.Nm ,
|
|
|
|
but overridden by passing a flag to
|
|
|
|
.Xr adduser 8 .
|
|
|
|
.It
|
|
|
|
Configuration supported by
|
|
|
|
.Xr adduser 8
|
|
|
|
but not offered by a flag or during initial invocation.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
In the first case, these options can be set in
|
|
|
|
.Nm
|
|
|
|
but will still be offered when
|
|
|
|
.Xr adduser 8
|
|
|
|
is invoked.
|
|
|
|
In the second case,
|
|
|
|
.Xr adduser 8
|
|
|
|
will read the configuration data unless a flag
|
|
|
|
has been passed to override it.
|
|
|
|
For example, the
|
2004-06-13 20:03:44 +02:00
|
|
|
.Va defaultshell
|
2004-03-30 23:50:42 +02:00
|
|
|
option.
|
|
|
|
In the third case, the configuration will be utilized, but the
|
|
|
|
user will never be prompted to modify the default setting by
|
|
|
|
either a flag or an
|
|
|
|
.Xr adduser 8
|
|
|
|
prompt.
|
|
|
|
For example, the
|
2004-06-13 20:03:44 +02:00
|
|
|
.Va upwexpire
|
2004-03-30 23:50:42 +02:00
|
|
|
setting.
|
|
|
|
.Pp
|
|
|
|
The following configuration options can be set in
|
|
|
|
.Nm :
|
2004-06-13 20:03:44 +02:00
|
|
|
.Bl -tag -width ".Va defaultgroups" -offset indent
|
|
|
|
.It Va defaultLgroup
|
2004-03-30 23:50:42 +02:00
|
|
|
The default group new users will be added to.
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va defaultclass
|
2004-03-30 23:50:42 +02:00
|
|
|
The default class to place users in as described in
|
|
|
|
.Xr login.conf 5 .
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va defaultgroups
|
2004-03-30 23:50:42 +02:00
|
|
|
This option is used to specify what other groups the new account
|
|
|
|
should be added to.
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va passwdtype
|
2004-03-30 23:50:42 +02:00
|
|
|
May be one of
|
2004-06-13 20:03:44 +02:00
|
|
|
.Cm no , none , random ,
|
2004-03-30 23:50:42 +02:00
|
|
|
or
|
2004-06-13 20:03:44 +02:00
|
|
|
.Cm yes ,
|
2004-03-30 23:50:42 +02:00
|
|
|
as described in
|
|
|
|
.Xr adduser 8 .
|
|
|
|
As such, the text is not duplicated here and may be
|
|
|
|
read in
|
|
|
|
.Xr adduser 8 .
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va homeprefix
|
2004-03-30 23:50:42 +02:00
|
|
|
The default home directory prefix, usually
|
|
|
|
.Pa /home .
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va defaultshell
|
|
|
|
The user's default shell which may be any of the shells listed in
|
|
|
|
.Xr shells 5 .
|
|
|
|
.It Va udotdir
|
2004-03-30 23:50:42 +02:00
|
|
|
Defines the location of the default shell and environment
|
|
|
|
configuration files.
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va msgfile
|
2004-03-30 23:50:42 +02:00
|
|
|
Location of the default new user message file.
|
|
|
|
This message will be sent to all new users if specified
|
|
|
|
here or at the
|
|
|
|
.Xr adduser 8
|
|
|
|
prompt.
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va disableflag
|
2004-03-30 23:50:42 +02:00
|
|
|
The default message enclosed in brackets for the
|
|
|
|
lock account prompt.
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va upwexpire
|
2004-03-30 23:50:42 +02:00
|
|
|
The default password expiration time.
|
|
|
|
Format of the date is either a
|
|
|
|
.Ux
|
|
|
|
time in decimal, or a date in
|
|
|
|
.Sm off
|
2004-06-13 20:03:44 +02:00
|
|
|
.Ar dd No - Ar mmm No - Ar yy Op Ar yy
|
2004-03-30 23:50:42 +02:00
|
|
|
.Sm on
|
2004-06-13 20:03:44 +02:00
|
|
|
format, where
|
|
|
|
.Ar dd
|
|
|
|
is the day,
|
|
|
|
.Ar mmm
|
|
|
|
is the month in either numeric or
|
|
|
|
alphabetic format, and
|
|
|
|
.Ar yy Ns Op Ar yy
|
|
|
|
is either a two or four digit year.
|
2004-03-30 23:50:42 +02:00
|
|
|
This option also accepts a relative date in the form of
|
|
|
|
.Sm off
|
2004-06-13 20:03:44 +02:00
|
|
|
.Ar n Op Ar m h d w o y
|
2004-03-30 23:50:42 +02:00
|
|
|
.Sm on
|
|
|
|
where
|
2004-06-13 20:03:44 +02:00
|
|
|
.Ar n
|
|
|
|
is a decimal, octal (leading 0) or hexadecimal (leading 0x) digit
|
|
|
|
followed by the number of Minutes, Hours, Days, Weeks, Months or
|
|
|
|
Years from the current date at
|
2004-03-30 23:50:42 +02:00
|
|
|
which the expiration time is to be set.
|
2004-06-13 20:03:44 +02:00
|
|
|
.It Va uexpire
|
2004-03-30 23:50:42 +02:00
|
|
|
The default account expire time.
|
2004-06-13 20:03:44 +02:00
|
|
|
The format is similar to the
|
|
|
|
.Va upwexpire
|
|
|
|
option.
|
|
|
|
.It Va ugecos
|
|
|
|
The default information to be held in the GECOS field of
|
2004-03-30 23:50:42 +02:00
|
|
|
.Pa /etc/master.passwd .
|
2007-04-12 10:35:58 +02:00
|
|
|
.It Va uidstart
|
2004-03-30 23:50:42 +02:00
|
|
|
The default user ID setting.
|
|
|
|
This must be a number above 1000 and fewer than 65534.
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
The following is an example
|
|
|
|
.Nm
|
|
|
|
file created with the
|
|
|
|
.Fl C
|
|
|
|
.Xr adduser 8
|
|
|
|
flag and modified.
|
2004-06-13 20:03:44 +02:00
|
|
|
.Bd -literal -offset indent
|
2004-03-30 23:50:42 +02:00
|
|
|
# Configuration file for adduser(8).
|
|
|
|
# NOTE: only *some* variables are saved.
|
|
|
|
# Last Modified on Fri Mar 30 14:04:05 EST 2004.
|
|
|
|
|
|
|
|
defaultLgroup=
|
|
|
|
defaultclass=
|
|
|
|
defaultgroups=
|
|
|
|
passwdtype=yes
|
|
|
|
homeprefix=/home
|
|
|
|
defaultshell=/bin/csh
|
|
|
|
udotdir=/usr/share/skel
|
|
|
|
msgfile=/etc/adduser.msg
|
|
|
|
disableflag=
|
|
|
|
upwexpire=91d # Expire passwords 91 days after creation.
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr group 5 ,
|
|
|
|
.Xr passwd 5 ,
|
|
|
|
.Xr adduser 8 ,
|
|
|
|
.Xr pw 8 ,
|
|
|
|
.Xr rmuser 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
manual page first appeared in
|
2004-04-08 00:16:04 +02:00
|
|
|
.Fx 5.3 .
|
2010-05-13 14:07:55 +02:00
|
|
|
.Sh AUTHORS
|
|
|
|
This manual page was written by
|
|
|
|
.An Tom Rhodes Aq trhodes@FreeBSD.org .
|
2007-04-12 10:35:58 +02:00
|
|
|
.Sh BUGS
|
|
|
|
The internal variables documented here may change without notice.
|
|
|
|
Do not rely on them.
|
|
|
|
To modify this file invoke
|
|
|
|
.Xr adduser 8
|
|
|
|
with the
|
|
|
|
.Fl C
|
|
|
|
option instead.
|