HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
s
swreg(1M) swreg(1M)
ncadg_ip_udp protocol sequence. This option may not have any noticeable impact when
using the ncacn_ip_tcp protocol sequence.
run_as_superuser=true
This option controls SD’s nonprivileged mode. This option is ignored (treated as true) when
the invoking user is super-user.
When set to the default value of true, SD operations are performed normally, with permis-
sions for operations either granted to a local super-user or set by SD ACLs. (See swacl(1M)
for details on ACLs.)
When set to false and the invoking user is local and is not super-user, nonprivileged mode
is invoked:
• Permissions for operations are based on the user’s file system permissions.
• SD ACLs are ignored.
• Files created by SD have the uid and gid of the invoking user, and the mode of created
files is set according to the invoking user’s umask.
SD’s nonprivileged mode is intended only for managing applications that are specially
designed and packaged. This mode cannot be used to manage the HP-UX operating system
or patches to it. For a full explanation of nonprivileged SD, see the Software Distributor
Administration Guide, available at the
http://docs.hp.com web site.
See also the
admin_directory
option.
select_local=true
If no target_selections are specified, select the default
distribution_target_directory
of the local host as the target_selection for the
command.
targets=
Defines the default target hosts on which to register or unregister the specified root or
depot objects. There is no supplied default (see select_local above). If there is more
than one target selection, they must be separated by spaces.
verbose=1
Controls the verbosity of the swreg output (stdout). A value of
0 disables output to stdout. (Error and warning messages are always written to stderr).
1 enables verbose messaging to stdout.
Session File
Each invocation of the swreg command defines a registration session. The invocation options, source
information, software selections, and target hosts are saved before the installation or copy task actually
commences. This lets you re-execute the command even if the session ends before proper completion.
Each session is saved to the file $HOME/.sw/sessions/swreg.last
. This file is overwritten by
each invocation of
swreg.
You can also save session information to a specific file by executing
swreg with the -C session__file
option.
A session file uses the same syntax as the defaults files. You can specify an absolute path for the session
file. If you do not specify a directory, the default location for a session file is
$HOME/.sw/sessions/
.
To re-execute a session file, specify the session file as the argument for the
-S session__file option of
swreg.
Note that when you re-execute a session file, the values in the session file take precedence over values in
the system defaults file. Likewise, any command line options or parameters that you specify when you
invoke swreg take precedence over the values in the session file.
Environment Variables
SD programs are affected by external environment variables.
SD programs that execute control scripts set environment variables for use by the control scripts.
In addition, swinstall sets environment variables for use when updating the HP-UX operating system
and modifying the HP-UX configuration.
522 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: February 2007