HP-UX Reference (11i v1 00/12) - 4 File Formats (vol 8)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man4/!!!intro.4
________________________________________________________________
___ ___
s
swpackage(4) swpackage(4)
(Hewlett-Packard Company)
Redefine specific files previously defined using file * (e.g. to set explicit attributes):
directory ./commands=/usr/sbin
file *
file -m 04500 swcommand
file -o adm -g sys swfile
Example Permission Specifications
The following examples illustrate the use of the file_permission keyword.
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 owner write permission in addition to the above:
file_permissions -u 022 -o 2 -g 2
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.)
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, availableat
http://docs.hp.com.
SD customer web site at
http://software.hp.com/SD_AT_HP/
.
HP-UX Release 11i: December 2000 − 24 − Section 4−−309
___
___