adduser.conf.5 (fba821806a2dd3674271ec2f0f8cabde0221db93) adduser.conf.5 (9cdb6ee1641e84242a1640055e0072ad693e1a7d)
1.\"
2.\" Copyright (c) 2004 Tom Rhodes
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25.\"
26.\" $FreeBSD$
27.\"
28.Dd March 30, 2004
29.Dt ADDUSER.CONF 5
30.Os
31.Sh NAME
32.Nm adduser.conf
1.\"
2.\" Copyright (c) 2004 Tom Rhodes
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 16 unchanged lines hidden (view full) ---

25.\"
26.\" $FreeBSD$
27.\"
28.Dd March 30, 2004
29.Dt ADDUSER.CONF 5
30.Os
31.Sh NAME
32.Nm adduser.conf
33.Nd configuration file for the
33.Nd
34.Xr adduser 8
34.Xr adduser 8
35utility
35configuration file
36.Sh DESCRIPTION
37The
38.Pa /etc/adduser.conf
39file is used to pre-set certain configuration options for
40the
41.Xr adduser 8
42utility.
43When
44.Xr adduser 8
36.Sh DESCRIPTION
37The
38.Pa /etc/adduser.conf
39file is used to pre-set certain configuration options for
40the
41.Xr adduser 8
42utility.
43When
44.Xr adduser 8
45is invoked, it will check to see if this file exists and
46if so the configuration will be used or offered as the
45is invoked, it will check to see if this file exists, and
46if so, the configuration will be used or offered as the
47default settings.
48The
49.Nm
50file offers three types of configuration:
51.Bl -bullet
52.It
53Default settings offered by
54.Xr adduser 8 .

--- 17 unchanged lines hidden (view full) ---

72but will still be offered when
73.Xr adduser 8
74is invoked.
75In the second case,
76.Xr adduser 8
77will read the configuration data unless a flag
78has been passed to override it.
79For example, the
47default settings.
48The
49.Nm
50file offers three types of configuration:
51.Bl -bullet
52.It
53Default settings offered by
54.Xr adduser 8 .

--- 17 unchanged lines hidden (view full) ---

72but will still be offered when
73.Xr adduser 8
74is invoked.
75In the second case,
76.Xr adduser 8
77will read the configuration data unless a flag
78has been passed to override it.
79For example, the
80.Dq shell
80.Va defaultshell
81option.
82In the third case, the configuration will be utilized, but the
83user will never be prompted to modify the default setting by
84either a flag or an
85.Xr adduser 8
86prompt.
87For example, the
81option.
82In the third case, the configuration will be utilized, but the
83user will never be prompted to modify the default setting by
84either a flag or an
85.Xr adduser 8
86prompt.
87For example, the
88.Dq upwexpire
88.Va upwexpire
89setting.
90.Pp
91The following configuration options can be set in
92.Nm :
89setting.
90.Pp
91The following configuration options can be set in
92.Nm :
93.Bl -tag -width "defaultgroups" -offset indent
94.It defaultLgroup
93.Bl -tag -width ".Va defaultgroups" -offset indent
94.It Va defaultLgroup
95The default group new users will be added to.
95The default group new users will be added to.
96.It defaultclass
96.It Va defaultclass
97The default class to place users in as described in
98.Xr login.conf 5 .
97The default class to place users in as described in
98.Xr login.conf 5 .
99.It defaultgroups
99.It Va defaultgroups
100This option is used to specify what other groups the new account
101should be added to.
100This option is used to specify what other groups the new account
101should be added to.
102.It passwdtype
102.It Va passwdtype
103May be one of
103May be one of
104.Cm no , Cm none , Cm random ,
104.Cm no , none , random ,
105or
105or
106.Cm yes
106.Cm yes ,
107as described in
108.Xr adduser 8 .
109As such, the text is not duplicated here and may be
110read in
111.Xr adduser 8 .
107as described in
108.Xr adduser 8 .
109As such, the text is not duplicated here and may be
110read in
111.Xr adduser 8 .
112.It homeprefix
112.It Va homeprefix
113The default home directory prefix, usually
114.Pa /home .
113The default home directory prefix, usually
114.Pa /home .
115.It defaultshell
116The users default shell which may be any of the shells listed in
117.Pa /etc/shells .
118.It udotdir
115.It Va defaultshell
116The user's default shell which may be any of the shells listed in
117.Xr shells 5 .
118.It Va udotdir
119Defines the location of the default shell and environment
120configuration files.
119Defines the location of the default shell and environment
120configuration files.
121.It msgfile
121.It Va msgfile
122Location of the default new user message file.
123This message will be sent to all new users if specified
124here or at the
125.Xr adduser 8
126prompt.
122Location of the default new user message file.
123This message will be sent to all new users if specified
124here or at the
125.Xr adduser 8
126prompt.
127.It disableflag
127.It Va disableflag
128The default message enclosed in brackets for the
129lock account prompt.
128The default message enclosed in brackets for the
129lock account prompt.
130.It upwexpire
130.It Va upwexpire
131The default password expiration time.
132Format of the date is either a
133.Ux
134time in decimal, or a date in
135.Sm off
131The default password expiration time.
132Format of the date is either a
133.Ux
134time in decimal, or a date in
135.Sm off
136.Ql dd-mmm-yy Bq yy
136.Ar dd No - Ar mmm No - Ar yy Op Ar yy
137.Sm on
137.Sm on
138format, where dd is the day, mmm is the month in either numeric or
139alphabetic format and year is either a two or four digit year.
138format, where
139.Ar dd
140is the day,
141.Ar mmm
142is the month in either numeric or
143alphabetic format, and
144.Ar yy Ns Op Ar yy
145is either a two or four digit year.
140This option also accepts a relative date in the form of
141.Sm off
146This option also accepts a relative date in the form of
147.Sm off
142.Sy n Bq mhdwoy
148.Ar n Op Ar m h d w o y
143.Sm on
144where
149.Sm on
150where
145.Sy n
146is a decimal, octal (leading 0) or hexadecimal (leading 0x) digit followed by the
147number of Minutes, Hours, Days, Weeks, Months or Years from the current date at
151.Ar n
152is a decimal, octal (leading 0) or hexadecimal (leading 0x) digit
153followed by the number of Minutes, Hours, Days, Weeks, Months or
154Years from the current date at
148which the expiration time is to be set.
155which the expiration time is to be set.
149.It uexpire
156.It Va uexpire
150The default account expire time.
157The default account expire time.
151The format is similar to the upwexpire option.
152.It ugecos
153The default information to be held in the gecos field of
158The format is similar to the
159.Va upwexpire
160option.
161.It Va ugecos
162The default information to be held in the GECOS field of
154.Pa /etc/master.passwd .
163.Pa /etc/master.passwd .
155.It uuid
164.It Va uuid
156The default user ID setting.
157This must be a number above 1000 and fewer than 65534.
158.El
159.Sh EXAMPLES
160The following is an example
161.Nm
162file created with the
163.Fl C
164.Xr adduser 8
165flag and modified.
165The default user ID setting.
166This must be a number above 1000 and fewer than 65534.
167.El
168.Sh EXAMPLES
169The following is an example
170.Nm
171file created with the
172.Fl C
173.Xr adduser 8
174flag and modified.
166.Bd -literal
175.Bd -literal -offset indent
167# Configuration file for adduser(8).
168# NOTE: only *some* variables are saved.
169# Last Modified on Fri Mar 30 14:04:05 EST 2004.
170
171defaultLgroup=
172defaultclass=
173defaultgroups=
174passwdtype=yes

--- 21 unchanged lines hidden ---
176# Configuration file for adduser(8).
177# NOTE: only *some* variables are saved.
178# Last Modified on Fri Mar 30 14:04:05 EST 2004.
179
180defaultLgroup=
181defaultclass=
182defaultgroups=
183passwdtype=yes

--- 21 unchanged lines hidden ---