Software Distributor Administration Guide for HP-UX 11i

Creating Software Packages
Creating a Product Specification File (PSF)
Chapter 10338
Default Permission Specifications By default, a destination file will inherit
the mode, owner, and group of the source file. You can use the file_permissions
keyword to set a default permission mask, owner, and group for all the files being
packaged into the fileset:
file_permissions [-m
mode|
-u
umask
][-o [
owner
[,]] [
uid
]]\
[-g [
group
[,]][
gid
]][-t
type
]
file_permissions
This keyword applies only to the fileset in which it is defined.
You can specify multiple file_permissions; later definitions
replace previous definitions.
-m
mode
This option defines a default (octal) mode for all files.
-u
umask
Instead of specifying an octal mode as the default, you can
specify an octal umask (1) value that gets “subtracted” from
an existing source files mode to generate the mode of the
destination file.
By specifying a umask, you can set a default mode for
executable files, non-executable files, and directories. (A
specific mode can be set for any file using -m.)
-o [
owner
[
,
]][
uid
]
This option defines the destination file’s owner name and/or
or uid. See the discussion of the -o option in “Explicit File
Specification” on page 340 for more information.
-g [
group
[
,
]][
gid
]
This option defines the destination file’s group name and/or
or gid. See the discussion of the -g option in “Explicit File
Specification” on page 340 for more information.
-t
type
Defines files that need not exist before packaging.
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 directories:
file_permissions -u 222
Set the same mode defaults, plus an owner and group:
file_permissions -u 222 -o bin -g bin