2 .\" Copyright (c) 2017 Peter Tribble.
3 .\" Copyright 1989 AT&T Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH ADMIN 4 "Mar 2, 2017"
9 admin \- installation defaults file
12 \fBadmin\fR is a generic name for an \fBASCII\fR file that defines default
13 installation actions by assigning values to installation parameters. For
14 example, it allows administrators to define how to proceed when the package
15 being installed already exists on the system.
18 \fB/var/sadm/install/admin/default\fR is the default \fBadmin\fR file delivered
19 with this release. The default file is not writable, so to assign values
20 different from this file, create a new \fBadmin\fR file. There are no naming
21 restrictions for \fBadmin\fR files. Name the file when installing a package
22 with the \fB-a\fR option of \fBpkgadd\fR(1M). If the \fB-a\fR option is not
23 used, the default \fBadmin\fR file is used.
26 Each entry in the \fBadmin\fR file is a line that establishes the value of a
27 parameter in the following form:
30 \fIparam\fR\fB=\fR\fIvalue\fR
33 All of the parameters listed below can be defined in an \fBadmin\fR file, but
34 it is not required to assign values to all of these. If a value is not
35 assigned, \fBpkgadd\fR(1M) asks the installer how to proceed.
38 The valid parameters and their possible values are shown below except as noted.
39 They can be specified in any order. Any of these parameters (except the
40 \fBmail\fR parameter) can be assigned the value \fBask\fR,
41 which means that, when the parameter is reached during the installation
42 sequence, the installer is notified and asked to supply instructions (see
50 Indicates the base directory where relocatable packages are to be installed. If
51 there is no \fBbasedir\fR entry in the file, the installer will be prompted for
52 a path name, as if the file contained the entry \fBbasedir=ask\fR. This
53 parameter can also be set to \fBdefault\fR (entry is \fBbasedir=default\fR). In
54 this instance, the package is installed into the base directory specified by
55 the \fBBASEDIR\fR parameter in the \fBpkginfo\fR(4) file.
64 Defines a list of users to whom mail should be sent following installation of a
65 package. If the list is empty, no mail is sent. If the parameter is not present
66 in the \fBadmin\fR file, the default value of \fBroot\fR is used. The \fBask\fR
67 value cannot be used with this parameter.
76 Indicates resolution if the run level is not correct for the installation or
77 removal of a package. Options are:
84 Do not check for run level.
93 Abort installation if run level is not met.
104 Specifies what to do if an installation expects to overwrite a previously
105 installed file, thus creating a conflict between packages. Options are:
112 Do not check for conflict; files in conflict will be overwritten.
121 Abort installation if conflict is detected.
130 Override installation of conflicting files; they will not be installed.
141 Checks for executables which will have setuid or setgid bits enabled after
142 installation. Options are:
149 Do not check for setuid executables.
158 Abort installation if setuid processes are detected.
167 Override installation of setuid processes; processes will be installed without
179 Determines if action scripts provided by package developers contain possible
180 security impact. Options are:
187 Ignore security impact of action scripts.
196 Abort installation if action scripts may have a negative security impact.
207 Checks to see if a version of the package is already partially installed on the
215 Do not check for a partially installed package.
224 Abort installation if a partially installed package exists.
235 Determines how to handle installation if a previous version of the package
236 (including a partially installed instance) already exists. Options are:
243 Exit without installing if an instance of the package already exists (does not
244 overwrite existing packages).
250 \fB\fBoverwrite\fR\fR
253 Overwrite an existing package if only one instance exists. If there is more
254 than one instance, but only one has the same architecture, it overwrites that
255 instance. Otherwise, the installer is prompted with existing instances and
256 asked which to overwrite.
265 Do not overwrite an existing instance of a package. Instead, a new instance of
266 the package is created. The new instance will be assigned the next available
278 Controls resolution if the package to be installed depends on other packages
279 and if other packages depend on the one to be installed. Options are:
286 Do not check package dependencies.
295 Abort installation if package dependencies are not met.
306 Controls resolution if other packages depend on the package to be removed. Also
307 determines behavior if registered products components to be removed. See
308 \fBlibwsreg\fR(3LIB) and \fBprodreg\fR(1M) for a definition of product
309 components. Options are:
316 Do not check package or product dependencies.
325 Abort removal if package or product dependencies are not met.
336 Controls resolution if disk space requirements for package are not met. Options
344 Do not check space requirements (installation fails if it runs out of space).
353 Abort installation if space requirements are not met.
361 \fB\fBrscriptalt=root | noaccess\fR\fR
364 Determines the user that will run request scripts. This parameter can have
365 either of the values described below. See \fBpkgadd\fR(1M) for details on the
366 conditions under which this parameter is useful.
373 Run request script as user \fBinstall\fR, if such a user exists, with the
374 privileges of that user. Otherwise, run script as user \fBroot\fR, with UID
375 equal to 0 and with all/zone privileges. (See \fBzones\fR(5).)
384 Run request script as user \fBinstall\fR, if such a user exists, with the
385 privileges of that user. Otherwise, run script as user \fBnoaccess\fR, with the
386 basic privileges of the unprivileged user \fBnoaccess\fR.
389 If this parameter is not present or has a null value, the user \fBnoaccess\fR
390 is assumed. Likewise, if this parameter is set to anything other than the
391 values described here, a warning is issued, and \fBnoaccess\fR is assumed.
392 \fBrscriptalt\fR is not present in the default \fBadmin\fR file,
393 \fB/var/sadm/install/admin/default\fR. In this case, request scripts are run as
394 the user \fBnoaccess\fR.
399 \fBExample 1 \fRDefault \fBadmin\fR File
402 The default \fBadmin\fR file, named \fBdefault\fR, is shipped with user-,
403 group-, and world-read privileges (444). Its contents are as follows:
424 \fBExample 2 \fRSample \fBadmin\fR file.
427 Below is a sample \fBadmin\fR file.
448 The default \fBadmin\fR file is consulted during package installation when no
449 other \fBadmin\fR file is specified.
453 \fB\fB/var/sadm/install/admin/default\fR\fR
457 default \fBadmin\fR file
462 See \fBattributes\fR(5) for descriptions of the following attributes:
470 ATTRIBUTE TYPE ATTRIBUTE VALUE
472 Interface Stability Evolving
477 \fBpkgadd\fR(1M), \fBprodreg\fR(1M), \fBlibwsreg\fR(3LIB), \fBpkginfo\fR(4),
478 \fBattributes\fR(5), \fBzones\fR(5)
481 The value \fBask\fR should not be defined in an \fBadmin\fR file that will be
482 used for non-interactive installation (because, by definition, there is no
483 installer interaction). Doing so causes installation to fail at the point when