swpackage.4 (2010 09)
s
swpackage(4) swpackage(4)
Set a read only 444 mode for all file objects (requires override for every executable file and directory):
file_permissions -m 444
Set a read mode for non-executable files, and a read/execute mode for executable files and for directories:
file_permissions -u 222
Set the same mode defaults, plus an owner and group:
file_permissions -u 222 -o bin -g bin
Set the same mode defaults, plus a uid and gid:
file_permissions -u 222 -o 2 -g 2
Set the same mode defaults, plus owner/uid and group/gid combinations:
file_permissions -u 222 -o bin,2 -g bin,2
Set the same mode defaults, plus numeric owner/uid and numeric group/gid combinations:
file_permissions -u 222 -o 1040,12345 -g 1099,54321
Set the owner write permission’s in addition to the above:
file_permissions -u 022 -o 1040,12345 -g 1099,54321
If the user defines no file_permissions,
swpackage uses the default value:
file_permissions -u 000
for destination file objects based on existing source files. (Meaning the mode, owner/uid, group/gid are set
based on the source file, unless specific overrides are specified for a destination file.)
WARNINGS
Some releases of
swpackage do not work correctly with the -t type construct in a PSF. The
swpack-
age program in the HP-UX 11i v1 (11.11) PHCO_34295 patch, 11i v1 (11.11) OEUR available after the
patch, 11i v2 (11.23) March 2006 OEUR, and newer releases work correctly with all -t type usages. If a
specific use of -t type creates packages that are correct, all releases of other Software Distributor com-
mands such as swlist, swcopy, swinstall, etc, can be used with those packages.
AUTHOR
swpackage was developed by the Hewlett-Packard Company and Mark H. Colburn (see pax(1)).
SEE ALSO
swpackage(1M), sd(4), sd(5).
Software Distributor Administration Guide , available at
http://www.hp.com/go/hpux-core-
docs.
SD customer web site at
http://www.hp.com/go/SD/
.
26 Hewlett-Packard Company − 26 − HP-UX 11i Version 3: September 2010