TOOL » LINUX » PACKAGE

Chmod

Symbolic mode

In the symbolic mode, you choose the target (see bellow), the operator, and what are the permissions you with to give (rwx).

shell
chmod u=rwx file
chmod g+w file
chmod o-x file
ReprTargetOperatorDescription
uuser/owner+Adds a permission to a file or directory
ggroup-Removes the permission
oother=Sets the permission and overrides the permissions set earlier.
aall

Absolute (numeric) mode

bash
chmod 755 some/path
NumberPermission TypeSymbol
0No Permission---
1Execute--x
2Write-w-
3Execute + Write-wx
4Readr--
5Read + Executer-x
6Read +Writerw-
7Read + Write +Executerwx