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.\" 26*9ff2ebd9SDag-Erling Smørgrav.Dd August 18, 2024 2700de0ec3STom Rhodes.Dt ADDUSER.CONF 5 2800de0ec3STom Rhodes.Os 2900de0ec3STom Rhodes.Sh NAME 3000de0ec3STom Rhodes.Nm adduser.conf 319cdb6ee1SRuslan Ermilov.Nd 324f1d74f1STom Rhodes.Xr adduser 8 339cdb6ee1SRuslan Ermilovconfiguration file 3400de0ec3STom Rhodes.Sh DESCRIPTION 3500de0ec3STom RhodesThe 3600de0ec3STom Rhodes.Pa /etc/adduser.conf 37bda8f479SMike Makonnenfile is automatically generated by the 38bda8f479SMike Makonnen.Xr adduser 8 39bda8f479SMike Makonnenutility when invoked with the 40bda8f479SMike Makonnen.Fl C 41bda8f479SMike Makonnencommand-line option. 42959bf739SCeri DaviesIt is not meant to be edited by hand. 43bda8f479SMike Makonnen.Pp 44bda8f479SMike MakonnenThe 45bda8f479SMike Makonnen.Pa /etc/adduser.conf 4600de0ec3STom Rhodesfile is used to pre-set certain configuration options for 4700de0ec3STom Rhodesthe 4800de0ec3STom Rhodes.Xr adduser 8 4900de0ec3STom Rhodesutility. 5000de0ec3STom RhodesWhen 5100de0ec3STom Rhodes.Xr adduser 8 529cdb6ee1SRuslan Ermilovis invoked, it will check to see if this file exists, and 539cdb6ee1SRuslan Ermilovif so, the configuration will be used or offered as the 5400de0ec3STom Rhodesdefault settings. 5500de0ec3STom RhodesThe 5600de0ec3STom Rhodes.Nm 5700de0ec3STom Rhodesfile offers three types of configuration: 5800de0ec3STom Rhodes.Bl -bullet 5900de0ec3STom Rhodes.It 6000de0ec3STom RhodesDefault settings offered by 6100de0ec3STom Rhodes.Xr adduser 8 . 6200de0ec3STom RhodesThese options are specified in the configuration file and offered 6300de0ec3STom Rhodesas the default during every invocation of the 6400de0ec3STom Rhodes.Xr adduser 8 6500de0ec3STom Rhodesutility. 6600de0ec3STom Rhodes.It 6700de0ec3STom RhodesConfiguration options which can be set in 6800de0ec3STom Rhodes.Nm , 6900de0ec3STom Rhodesbut overridden by passing a flag to 7000de0ec3STom Rhodes.Xr adduser 8 . 7100de0ec3STom Rhodes.It 7200de0ec3STom RhodesConfiguration supported by 7300de0ec3STom Rhodes.Xr adduser 8 7400de0ec3STom Rhodesbut not offered by a flag or during initial invocation. 7500de0ec3STom Rhodes.El 7600de0ec3STom Rhodes.Pp 7700de0ec3STom RhodesIn the first case, these options can be set in 7800de0ec3STom Rhodes.Nm 7900de0ec3STom Rhodesbut will still be offered when 8000de0ec3STom Rhodes.Xr adduser 8 8100de0ec3STom Rhodesis invoked. 8200de0ec3STom RhodesIn the second case, 8300de0ec3STom Rhodes.Xr adduser 8 8400de0ec3STom Rhodeswill read the configuration data unless a flag 8500de0ec3STom Rhodeshas been passed to override it. 8600de0ec3STom RhodesFor example, the 879cdb6ee1SRuslan Ermilov.Va defaultshell 8800de0ec3STom Rhodesoption. 8900de0ec3STom RhodesIn the third case, the configuration will be utilized, but the 9000de0ec3STom Rhodesuser will never be prompted to modify the default setting by 9100de0ec3STom Rhodeseither a flag or an 9200de0ec3STom Rhodes.Xr adduser 8 9300de0ec3STom Rhodesprompt. 9400de0ec3STom RhodesFor example, the 959cdb6ee1SRuslan Ermilov.Va upwexpire 9600de0ec3STom Rhodessetting. 9700de0ec3STom Rhodes.Pp 9800de0ec3STom RhodesThe following configuration options can be set in 9900de0ec3STom Rhodes.Nm : 1009cdb6ee1SRuslan Ermilov.Bl -tag -width ".Va defaultgroups" -offset indent 1019cdb6ee1SRuslan Ermilov.It Va defaultLgroup 10200de0ec3STom RhodesThe default group new users will be added to. 1039cdb6ee1SRuslan Ermilov.It Va defaultclass 10400de0ec3STom RhodesThe default class to place users in as described in 10500de0ec3STom Rhodes.Xr login.conf 5 . 1069cdb6ee1SRuslan Ermilov.It Va defaultgroups 10700de0ec3STom RhodesThis option is used to specify what other groups the new account 10800de0ec3STom Rhodesshould be added to. 1099cdb6ee1SRuslan Ermilov.It Va passwdtype 11000de0ec3STom RhodesMay be one of 1119cdb6ee1SRuslan Ermilov.Cm no , none , random , 11200de0ec3STom Rhodesor 1139cdb6ee1SRuslan Ermilov.Cm yes , 11400de0ec3STom Rhodesas described in 11500de0ec3STom Rhodes.Xr adduser 8 . 11600de0ec3STom RhodesAs such, the text is not duplicated here and may be 11700de0ec3STom Rhodesread in 11800de0ec3STom Rhodes.Xr adduser 8 . 1199cdb6ee1SRuslan Ermilov.It Va homeprefix 12000de0ec3STom RhodesThe default home directory prefix, usually 12100de0ec3STom Rhodes.Pa /home . 1229cdb6ee1SRuslan Ermilov.It Va defaultshell 1239cdb6ee1SRuslan ErmilovThe user's default shell which may be any of the shells listed in 1249cdb6ee1SRuslan Ermilov.Xr shells 5 . 1259cdb6ee1SRuslan Ermilov.It Va udotdir 12600de0ec3STom RhodesDefines the location of the default shell and environment 12700de0ec3STom Rhodesconfiguration files. 1289cdb6ee1SRuslan Ermilov.It Va msgfile 12900de0ec3STom RhodesLocation of the default new user message file. 13000de0ec3STom RhodesThis message will be sent to all new users if specified 13100de0ec3STom Rhodeshere or at the 13200de0ec3STom Rhodes.Xr adduser 8 13300de0ec3STom Rhodesprompt. 1349cdb6ee1SRuslan Ermilov.It Va disableflag 13500de0ec3STom RhodesThe default message enclosed in brackets for the 13600de0ec3STom Rhodeslock account prompt. 1379cdb6ee1SRuslan Ermilov.It Va upwexpire 13800de0ec3STom RhodesThe default password expiration time. 13900de0ec3STom RhodesFormat of the date is either a 14000de0ec3STom Rhodes.Ux 14100de0ec3STom Rhodestime in decimal, or a date in 14200de0ec3STom Rhodes.Sm off 1439cdb6ee1SRuslan Ermilov.Ar dd No - Ar mmm No - Ar yy Op Ar yy 14400de0ec3STom Rhodes.Sm on 1459cdb6ee1SRuslan Ermilovformat, where 1469cdb6ee1SRuslan Ermilov.Ar dd 1479cdb6ee1SRuslan Ermilovis the day, 1489cdb6ee1SRuslan Ermilov.Ar mmm 1499cdb6ee1SRuslan Ermilovis the month in either numeric or 1509cdb6ee1SRuslan Ermilovalphabetic format, and 1519cdb6ee1SRuslan Ermilov.Ar yy Ns Op Ar yy 1529cdb6ee1SRuslan Ermilovis either a two or four digit year. 15300de0ec3STom RhodesThis option also accepts a relative date in the form of 15400de0ec3STom Rhodes.Sm off 1559cdb6ee1SRuslan Ermilov.Ar n Op Ar m h d w o y 15600de0ec3STom Rhodes.Sm on 15700de0ec3STom Rhodeswhere 1589cdb6ee1SRuslan Ermilov.Ar n 1599cdb6ee1SRuslan Ermilovis a decimal, octal (leading 0) or hexadecimal (leading 0x) digit 1609cdb6ee1SRuslan Ermilovfollowed by the number of Minutes, Hours, Days, Weeks, Months or 1619cdb6ee1SRuslan ErmilovYears from the current date at 16200de0ec3STom Rhodeswhich the expiration time is to be set. 1639cdb6ee1SRuslan Ermilov.It Va uexpire 16400de0ec3STom RhodesThe default account expire time. 1659cdb6ee1SRuslan ErmilovThe format is similar to the 1669cdb6ee1SRuslan Ermilov.Va upwexpire 1679cdb6ee1SRuslan Ermilovoption. 1689cdb6ee1SRuslan Ermilov.It Va ugecos 1699cdb6ee1SRuslan ErmilovThe default information to be held in the GECOS field of 17000de0ec3STom Rhodes.Pa /etc/master.passwd . 171bda8f479SMike Makonnen.It Va uidstart 17200de0ec3STom RhodesThe default user ID setting. 17300de0ec3STom RhodesThis must be a number above 1000 and fewer than 65534. 174*9ff2ebd9SDag-Erling Smørgrav.It Va Zcreate 175*9ff2ebd9SDag-Erling SmørgravSet to 176*9ff2ebd9SDag-Erling Smørgrav.Dq no 177*9ff2ebd9SDag-Erling Smørgravto prevent the creation of a ZFS home dataset if 178*9ff2ebd9SDag-Erling Smørgrav.Va homeprefix 179*9ff2ebd9SDag-Erling Smørgravis a ZFS mountpoint. 18000de0ec3STom Rhodes.El 18100de0ec3STom Rhodes.Sh EXAMPLES 18200de0ec3STom RhodesThe following is an example 18300de0ec3STom Rhodes.Nm 18400de0ec3STom Rhodesfile created with the 18500de0ec3STom Rhodes.Fl C 18600de0ec3STom Rhodes.Xr adduser 8 18700de0ec3STom Rhodesflag and modified. 1889cdb6ee1SRuslan Ermilov.Bd -literal -offset indent 18900de0ec3STom Rhodes# Configuration file for adduser(8). 19000de0ec3STom Rhodes# NOTE: only *some* variables are saved. 19100de0ec3STom Rhodes# Last Modified on Fri Mar 30 14:04:05 EST 2004. 19200de0ec3STom Rhodes 19300de0ec3STom RhodesdefaultLgroup= 19400de0ec3STom Rhodesdefaultclass= 19500de0ec3STom Rhodesdefaultgroups= 19600de0ec3STom Rhodespasswdtype=yes 19700de0ec3STom Rhodeshomeprefix=/home 19800de0ec3STom Rhodesdefaultshell=/bin/csh 19900de0ec3STom Rhodesudotdir=/usr/share/skel 20000de0ec3STom Rhodesmsgfile=/etc/adduser.msg 20100de0ec3STom Rhodesdisableflag= 20200de0ec3STom Rhodesupwexpire=91d # Expire passwords 91 days after creation. 20300de0ec3STom Rhodes.Ed 20400de0ec3STom Rhodes.Sh SEE ALSO 20500de0ec3STom Rhodes.Xr group 5 , 20600de0ec3STom Rhodes.Xr passwd 5 , 20700de0ec3STom Rhodes.Xr adduser 8 , 20800de0ec3STom Rhodes.Xr pw 8 , 20900de0ec3STom Rhodes.Xr rmuser 8 21000de0ec3STom Rhodes.Sh HISTORY 21100de0ec3STom RhodesThe 21200de0ec3STom Rhodes.Nm 21300de0ec3STom Rhodesmanual page first appeared in 214fba82180STom Rhodes.Fx 5.3 . 2150afc94c1SUlrich Spörlein.Sh AUTHORS 2160afc94c1SUlrich SpörleinThis manual page was written by 21701c2b8acSBaptiste Daroussin.An Tom Rhodes Aq Mt trhodes@FreeBSD.org . 218bda8f479SMike Makonnen.Sh BUGS 219bda8f479SMike MakonnenThe internal variables documented here may change without notice. 220bda8f479SMike MakonnenDo not rely on them. 221bda8f479SMike MakonnenTo modify this file invoke 222bda8f479SMike Makonnen.Xr adduser 8 223bda8f479SMike Makonnenwith the 224bda8f479SMike Makonnen.Fl C 225bda8f479SMike Makonnenoption instead. 226