Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
chmod(1) OSS Shell and Utilities Reference Manual
x Execute permission for files, search permission for directories.
X Execute permission only if file is a directory or if at least one execute bit
(S_IXUSR, S_IXGRP,orS_IXOTH) is set.
s Set-user-ID or set-group-ID permission.
This permission bit sets the effective user ID or group ID to that of the owner
or group owner of file whenever the file is run. Use this permission setting
with the u or g option to allow temporary or restricted access to files not nor-
mally accessible to other users. An s appears in the user or group execute
position of a long listing (see the reference page for the ls command) to show
that the file runs with set-user-ID or set-group-ID permission.
Note that the command chmod o+s has no effect (the set-user-ID-on-
execution and set-group-ID-on-execution bits are not modified).
t Save text permission.
In some versions of the UNIX system, setting this permission bit causes the
text segment of a program to remain in virtual memory after its first use.
Such systems therefore do not transfer the program code of frequently
accessed programs into the paging area.
You can specify this permission for OSS files, but it has no effect. The letter
t appears in the execute position of the all others option to indicate that the
file has this bit (the sticky bit) set.
If a directory has this bit set, then deletion in it is restricted. An entry in a
sticky directory can be removed or renamed by a user only if the user has
write permission for the directory and the user is the owner of the file, the
owner of the directory, or has appropriate permissions.
The u, g, and o options indicate that permission is to be taken from the current mode.
Omitting permission is useful only with = to remove all permissions. For example,
entering the following command clears all permission fields for the user and resets
them all to those of the group for file1:
u=g file1
All permission bits not explicitly specified are cleared.
You can specify multiple symbolic modes, separated with commas. Do not separate
items in this list with spaces. Operations are performed in the order they appear from
left to right.
Absolute Mode
Absolute mode lets you use octal notation to set each bit in the permission code. The chmod
command sets the permissions to the permission_code you provide. permission_code is con-
structed by combining with logical OR the following values:
01000000
Sets the trust bit for a TNS/E native loadfile regardless of whether an I/O
buffer is in a shared memory segment (the S_TRUSTSHARED bit). On a
server running an H-series RVU, only a user with appropriate privileges (the
super ID) can use this setting. This bit is ignored on a server running a G-
series RVU.
2−74 Hewlett-Packard Company 527188-021