Commands Help : chmod
- chmod - change file access permissions
[SYNOPSIS] chmod OPTION PERMISSIONS FILE/DIRECTORY
option
-R change files and directories recursively # chmod -R 700 /homeOPTION PERMISSIONS
Here the digits 7, 5, and 4 each individually represent the permissions for the user, group, and others, in that order. Each digit is a combination of the numbers 4, 2, 1, and 0:
- 4 stands for "read",
- 2 stands for "write",
- 1 stands for "execute", and
- 0 stands for "no permission."
So 7 is the combination of permissions 4+2+1 (read, write, and execute), 5 is 4+0+1 (read, no write, and execute), and 4 is 4+0+0 (read, no write, and no execute).
-c, --changes
Like --verbose, but gives verbose output only when a change is actually made.
-f, --silent, --quiet
Quiet mode; suppress most error messages.
-v, --verbose
Verbose mode; output a diagnostic message for every file processed.
--no-preserve-root
Do not treat '/' (the root directory) in any special way, which is the default setting.
--preserve-root
Do not operate recursively on '/'.
--reference=RFILE
Set permissions to match those of file RFILE, ignoring any specified MODE.
-R, --recursive
Change files and directories recursively.
--help
Display a help message and exit.
--version
Output version information and exit.
Comments
Post a Comment