|
HTML Survival Kit chmod (SunOS 5.5/Solaris 2.5) |
|
rwxlstu,g,o| User | Group | Other |
|---|---|---|
rwx |
rwx |
rwx |
s is only meaningful
with u or
g,
and t only works with
u.
Mandatory file and record locking (l) refers
to a file's ability to have its reading or
writing permissions locked while a program is
accessing that file.
In a directory which has the set-group-ID bit
set (reflected as either - - - - - s - - -
or - - - - - l - - - in the output of 'ls -ld'),
files and
subdirectories are created with the group-ID
of the parent directory-not that of current
process.
It is not possible to permit group execution
and enable a file to be locked on execution
at the same time. In addition, it is not
possible to turn on the set-group-ID bit and
enable a file to be locked on execution at
the same time. The following examples,
therefore, are invalid and elicit error messages:
OPTIONS The following options are supported:
EXAMPLES
| Deny execute permission to everyone: | example% chmod a-x file |
| Allow only read permission to everyone: | example% chmod 444 file |
| Make a file readable and writable by the group and others: | example% chmod go+rw file example% chmod 066 file |
| Cause a file to be locked during access: | example% chmod +l file |
| Allow everyone to read, write, and execute the file and turn on the set group-ID. | example% chmod a=rwx,g+ s file example% chmod 2777 file |
go back to "Guide to Setup... in CEE Unix Network"
go back to HTML Survival Kit - Table of Contents
go back to Civil and Environmental Engineering Home Page