Easily calculate and convert chmod permissions between Numeric (e.g. 777), Symbolic (e.g. +x), and RWX notations (e.g. rw-r--r--).
Check any permission box or input any Chmod options to get instant calculation results !
r w x | |||
---|---|---|---|
4 2 1 | |||
Decimal | Calculation | Symbolic | Description |
0 | 0 + 0 + 0 | - - - | none |
1 | 0 + 0 + 1 | - - x | execute only |
2 | 0 + 2 + 0 | - w - | write only |
3 | 0 + 2 + 1 | - w x | write and execute |
4 | 4 + 0 + 0 | r - - | read only |
5 | 4 + 0 + 1 | r - x | read and execute |
6 | 4 + 2 + 0 | r w - | read and write |
7 | 4 + 2 + 1 | r w x | read, write, and execute |
The chmod -r command removes read permission for all users (owner, group, and others). This can be useful when you want to restrict access to sensitive files. However, use this command with caution as it might make files inaccessible even to the owner. It's often used in combination with other permissions, like 'chmod u-r,go-rwx' to remove read permission for the owner and all permissions for others.