MPE/iX Shell and Utilities Reference Manual, Vol 1

chmod(1) MPE/iX Shell and Utilities chmod(1)
NAME
chmod — change access permissions of a file
SYNOPSIS
chmod [–fR] mode pathname
DESCRIPTION
chmod changes the access permissions or modes of the specified files or directories. Modes
determine who can read, change or execute a file.
Options
chmod accepts the following options:
–f Does not issue error messages concerning file access permissions, even if chmod
encounters such errors.
–R If you specify a directory as a path name on the command, chmod changes the
access permissions of all files and subdirectories under that directory.
Modes
You can specify the mode value on the command line in either symbolic form or as an octal
value.
A symbolic mode has the form
[who] op permission [op permission ...]
The who value is any combination of the following:
u Sets user (individual) permissions.
g Sets group permissions.
o Sets other permissions.
a Sets all permissions; this is the default.
The op part of a symbolic mode is an operator that tells chmod to turn the permissions on or
off. The possible values are:
+ Turns on a permission.
- Turns off a permission.
= Turns on the specified permissions and turns off all others.
The permission part of a symbolic mode is any combination of the following:
r Read permission. If this is off, you cannot read the file.
1-88 Commands and Utilities