Software Distributor Administration Guide (March 2009)

Table Of Contents
You can enable nonprivileged mode for all users by setting the run_as_superuser
option to false in /var/adm/sw/defaults.
Individual users can override the default chosen by the system administrator, by setting
the run_as_superuser option to true or false in their $HOME/.swdefaults file or
on the command line.
12.4 Alternative Configuration
An alternative configuration of nonprivileged mode sets up user-installed software
catalogs in each users home directory. You can use the admin_directory option in
/var/adm/sw/defaults to indicate a path beginning with HOME or /HOME, so that
the default administration directory used by SD-UX during nonprivileged mode is in
each users home directory. (A value of HOME/.sw works well for this purpose.)
Individual users can override this in their $HOME/.swdefaults file or on the command
line.
12.4.1 Setting the Admin Directory Option
This option lets you specify the location for logfiles and the default parent directory
for the installed software catalog. Values are as follows:
admin_directory=/var/adm/sw (for normal mode)
admin_directory=/var/home/LOGNAME/sw (for nonprivileged mode)
The default value is /var/adm/sw for normal operations. For nonprivileged mode
(that is, when the run_as_superuser option is set to true):
The default value is forced to /var/home/LOGNAME/sw.
The path element LOGNAME is replaced with the name of the invoking user, which
SD-UX reads from the system password file.
If you set the value of this option to HOME/path, SD-UX replaces HOME with the
invoking users home directory (from the system password file) and resolves path
relative to that directory.
For example, if you specified HOME/my_admin for this options, the location would
resolve to the my_admin directory in your home directory.
This option applies to swinstall, swcopy, swremove, swconfig, swverify,
swlist, swreg, swacl, swpackage, swmodify.
298 Nonprivileged SD