chmod - change file mode (permissions) — Inferno 1ed
chmod - change file mode (permissions)
chmod mode file... chmod [augo][+-=][rwx] file...
Description
The mode of each named file is changed according to mode, which may be an integer number in octal format or a symbolic change to the existing mode.A mode can be numerically constructed from the INCLUSIVE OR of the following VALUES:
|
0400
|
read by owner
|
|
0200
|
write by owner
|
|
0100
|
execute (search in directory) by owner
|
|
0070
|
read, write, execute (search) by group
|
|
0007
|
read, write, execute (search) by others
|
A symbolic mode has the form:
|
+
|
to add permission to the file's mode
|
|
-
|
to take away permission
|
|
=
|
to assign permission absolutely (all other bits will be reset)
|
The permission field is any combination of the letters r (read), w (write), and x (execute).
Caveats
- The #r format for expressing integer values is not recognized.
- The standard format for octal numbers (8r...) is not recognized.
Notes
See stat, fstat, fwstat, wstat - get and put file status in Chapter 8 for interpretation of permissions on Windows-hosted systems.|
ls - list contents of directory
|
|
stat, fstat, fwstat, wstat - get and put file status in Chapter 8
|
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.