|
|
The System V version of this command is available with the System V software installation option. Refer to [a manual with the abbreviation INSTALL] for information on how to install optional software.
Change the permissions (mode) of a file or files. Only the owner of a file (or the super-user) may change its mode.
The mode of each named file is changed according to mode, which may be absolute or symbolic, as follows.
An absolute mode is an octal number constructed from the OR of the following modes:
A symbolic mode has the form:
[ who ] op permission [ op permission ] ...
who is a combination of:
If who is omitted, the default is a, but the setting of the file creation mask (see umask in sh.1 or csh.1 for more information) is taken into account. When who is omitted, chmod will not override the restrictions of your user mask.
op is one of:
permission is any combination of:
The letters u, g, or o indicate that permission is to be taken from the current mode for the user-class.
Omitting permission is only useful with `=', to take away all permissions.
Multiple symbolic modes, separated by commas, may be given. Operations are performed in the order specified.
If who is omitted in a symbolic mode, it does not take the file creation mask into account, but acts as if who were a.
The first example denies write permission to others, the second makes a file executable by all if it is executable by anyone:
example% chmod o-w file example% chmod +X file
|
|
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97