chmod - change file mode (permissions)
chmod mode file...
chmod [augo][+-=][rwx] file...
The mode of each named file is changed according to mode, which may be an octal number or a symbolic change to the existing mode. A mode is an octal number constructed from the OR of the following modes.
A symbolic mode has the form:
[who] op permission
The who part is a combination of the letters u (for user's permissions), g (group) and o (other). The letter a stands for ugo. If who is omitted, the default is a.
Op can be + to add permission to the file's mode, - to take away permission, and = to assign permission absolutely (all other bits will be reset).
Permission is any combination of the letters r (read), w (write), and x (execute).
ls and stat
See stat for interpretation of permissions on Windows-hosted systems.
Copyright © 1996,Lucent Technologies, Inc. All rights