Software Distributor Administration Guide for HP-UX 11i

Nonprivileged SD
Alternative Configuration
Chapter 12 419
Alternative Configuration
An alternative configuration of nonprivileged mode sets up user-installed
software catalogs in each user’s 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 user’s
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.
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 user’s 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.