1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
|
'\" te
.\" Copyright (c) 2017 Peter Tribble.
.\" Copyright 1989 AT&T Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH ADMIN 4 "May 13, 2017"
.SH NAME
admin \- installation defaults file
.SH DESCRIPTION
.LP
\fBadmin\fR is a generic name for an \fBASCII\fR file that defines default
installation actions by assigning values to installation parameters. For
example, it allows administrators to define how to proceed when the package
being installed already exists on the system.
.sp
.LP
\fB/var/sadm/install/admin/default\fR is the default \fBadmin\fR file delivered
with this release. The default file is not writable, so to assign values
different from this file, create a new \fBadmin\fR file. There are no naming
restrictions for \fBadmin\fR files. Name the file when installing a package
with the \fB-a\fR option of \fBpkgadd\fR(1M). If the \fB-a\fR option is not
used, the default \fBadmin\fR file is used.
.sp
.LP
Each entry in the \fBadmin\fR file is a line that establishes the value of a
parameter in the following form:
.sp
.LP
\fIparam\fR\fB=\fR\fIvalue\fR
.sp
.LP
All of the parameters listed below can be defined in an \fBadmin\fR file, but
it is not required to assign values to all of these. If a value is not
assigned, \fBpkgadd\fR(1M) asks the installer how to proceed.
.sp
.LP
The valid parameters and their possible values are shown below except as noted.
They can be specified in any order. Any of these parameters (except the
\fBmail\fR parameter) can be assigned the value \fBask\fR,
which means that, when the parameter is reached during the installation
sequence, the installer is notified and asked to supply instructions (see
\fBNOTES\fR).
.sp
.ne 2
.na
\fB\fBbasedir\fR\fR
.ad
.RS 30n
Indicates the base directory where relocatable packages are to be installed. If
there is no \fBbasedir\fR entry in the file, the installer will be prompted for
a path name, as if the file contained the entry \fBbasedir=ask\fR. This
parameter can also be set to \fBdefault\fR (entry is \fBbasedir=default\fR). In
this instance, the package is installed into the base directory specified by
the \fBBASEDIR\fR parameter in the \fBpkginfo\fR(4) file.
.RE
.sp
.ne 2
.na
\fB\fBmail\fR\fR
.ad
.RS 30n
Defines a list of users to whom mail should be sent following installation of a
package. If the list is empty, no mail is sent. If the parameter is not present
in the \fBadmin\fR file, the default value of \fBroot\fR is used. The \fBask\fR
value cannot be used with this parameter.
.RE
.sp
.ne 2
.na
\fB\fBrunlevel\fR\fR
.ad
.RS 30n
Indicates resolution if the run level is not correct for the installation or
removal of a package. Options are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 11n
Do not check for run level.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 11n
Abort installation if run level is not met.
.RE
.RE
.sp
.ne 2
.na
\fB\fBconflict\fR\fR
.ad
.RS 30n
Specifies what to do if an installation expects to overwrite a previously
installed file, thus creating a conflict between packages. Options are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 12n
Do not check for conflict; files in conflict will be overwritten.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 12n
Abort installation if conflict is detected.
.RE
.sp
.ne 2
.na
\fB\fBnochange\fR\fR
.ad
.RS 12n
Override installation of conflicting files; they will not be installed.
.RE
.RE
.sp
.ne 2
.na
\fB\fBsetuid\fR\fR
.ad
.RS 30n
Checks for executables which will have setuid or setgid bits enabled after
installation. Options are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 12n
Do not check for setuid executables.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 12n
Abort installation if setuid processes are detected.
.RE
.sp
.ne 2
.na
\fB\fBnochange\fR\fR
.ad
.RS 12n
Override installation of setuid processes; processes will be installed without
setuid bits enabled.
.RE
.RE
.sp
.ne 2
.na
\fB\fBaction\fR\fR
.ad
.RS 30n
Determines if action scripts provided by package developers contain possible
security impact. Options are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 11n
Ignore security impact of action scripts.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 11n
Abort installation if action scripts may have a negative security impact.
.RE
.RE
.sp
.ne 2
.na
\fB\fBpartial\fR\fR
.ad
.RS 30n
Checks to see if a version of the package is already partially installed on the
system. Options are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 11n
Do not check for a partially installed package.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 11n
Abort installation if a partially installed package exists.
.RE
.RE
.sp
.ne 2
.na
\fB\fBinstance\fR\fR
.ad
.RS 30n
Determines how to handle installation if a previous version of the package
(including a partially installed instance) already exists. Options are:
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 13n
Exit without installing if an instance of the package already exists (does not
overwrite existing packages).
.RE
.sp
.ne 2
.na
\fB\fBoverwrite\fR\fR
.ad
.RS 13n
Overwrite an existing package if only one instance exists. If there is more
than one instance, but only one has the same architecture, it overwrites that
instance. Otherwise, the installer is prompted with existing instances and
asked which to overwrite.
.RE
.sp
.ne 2
.na
\fB\fBunique\fR\fR
.ad
.RS 13n
Do not overwrite an existing instance of a package. Instead, a new instance of
the package is created. The new instance will be assigned the next available
instance identifier.
.RE
.RE
.sp
.ne 2
.na
\fB\fBidepend\fR\fR
.ad
.RS 30n
Controls resolution if the package to be installed depends on other packages
and if other packages depend on the one to be installed. Options are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 11n
Do not check package dependencies.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 11n
Abort installation if package dependencies are not met.
.RE
.RE
.sp
.ne 2
.na
\fB\fBrdepend\fR\fR
.ad
.RS 30n
Controls resolution if other packages depend on the package to be removed.
Options are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 11n
Do not check package or product dependencies.
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 11n
Abort removal if package or product dependencies are not met.
.RE
.RE
.sp
.ne 2
.na
\fB\fBspace\fR\fR
.ad
.RS 30n
Controls resolution if disk space requirements for package are not met. Options
are:
.sp
.ne 2
.na
\fB\fBnocheck\fR\fR
.ad
.RS 11n
Do not check space requirements (installation fails if it runs out of space).
.RE
.sp
.ne 2
.na
\fB\fBquit\fR\fR
.ad
.RS 11n
Abort installation if space requirements are not met.
.RE
.RE
.sp
.ne 2
.na
\fB\fBrscriptalt=root | noaccess\fR\fR
.ad
.RS 30n
Determines the user that will run request scripts. This parameter can have
either of the values described below. See \fBpkgadd\fR(1M) for details on the
conditions under which this parameter is useful.
.sp
.ne 2
.na
\fB\fBroot\fR\fR
.ad
.RS 12n
Run request script as user \fBinstall\fR, if such a user exists, with the
privileges of that user. Otherwise, run script as user \fBroot\fR, with UID
equal to 0 and with all/zone privileges. (See \fBzones\fR(5).)
.RE
.sp
.ne 2
.na
\fB\fBnoaccess\fR\fR
.ad
.RS 12n
Run request script as user \fBinstall\fR, if such a user exists, with the
privileges of that user. Otherwise, run script as user \fBnoaccess\fR, with the
basic privileges of the unprivileged user \fBnoaccess\fR.
.RE
If this parameter is not present or has a null value, the user \fBnoaccess\fR
is assumed. Likewise, if this parameter is set to anything other than the
values described here, a warning is issued, and \fBnoaccess\fR is assumed.
\fBrscriptalt\fR is not present in the default \fBadmin\fR file,
\fB/var/sadm/install/admin/default\fR. In this case, request scripts are run as
the user \fBnoaccess\fR.
.RE
.SH EXAMPLES
.LP
\fBExample 1 \fRDefault \fBadmin\fR File
.sp
.LP
The default \fBadmin\fR file, named \fBdefault\fR, is shipped with user-,
group-, and world-read privileges (444). Its contents are as follows:
.sp
.in +2
.nf
mail=
instance=unique
partial=ask
runlevel=ask
idepend=ask
rdepend=ask
space=ask
setuid=ask
conflict=ask
action=ask
basedir=default
.fi
.in -2
.sp
.LP
\fBExample 2 \fRSample \fBadmin\fR file.
.sp
.LP
Below is a sample \fBadmin\fR file.
.sp
.in +2
.nf
basedir=default
runlevel=quit
conflict=quit
setuid=quit
action=quit
partial=quit
instance=unique
idepend=quit
rdepend=quit
space=quit
.fi
.in -2
.sp
.SH FILES
.LP
The default \fBadmin\fR file is consulted during package installation when no
other \fBadmin\fR file is specified.
.sp
.ne 2
.na
\fB\fB/var/sadm/install/admin/default\fR\fR
.ad
.sp .6
.RS 4n
default \fBadmin\fR file
.RE
.SH ATTRIBUTES
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
Interface Stability Evolving
.TE
.SH SEE ALSO
.LP
\fBpkgadd\fR(1M), \fBpkginfo\fR(4), \fBattributes\fR(5), \fBzones\fR(5)
.SH NOTES
.LP
The value \fBask\fR should not be defined in an \fBadmin\fR file that will be
used for non-interactive installation (because, by definition, there is no
installer interaction). Doing so causes installation to fail at the point when
input is needed.
|