CHMOD Calculator
Visual calculator to determine and set file and folder permissions in Linux
What is CHMOD?
CHMOD (change mode) is a command in UNIX/Linux systems that allows changing file and folder permissions. Permissions determine who can read, write or execute a file.
Access permission types:
- Read (r = 4) - allows viewing the contents of a file or listing files in a folder
- Write (w = 2) - allows modifying a file or adding/removing files in a folder
- Execute (x = 1) - allows executing a file as a program or entering a folder
- Owner - the user who created the file or folder
- Group - users belonging to the same group as the owner
- Other - all other users of the system
Additional options:
| Option | Command | Description |
|---|---|---|
| Recursive | -R | Apply permissions to all files and folders recursively |
| Verbose output | -v | Display information about each processed file |
| Changes only | -c | Display information only about changed files |
| Silent mode | -f | Suppress most error messages |
| Preserve-root | --preserve-root | Do not apply recursive operations to the root directory |
| SetUID | u+s | Set SetUID bit (run as owner) |
| SetGID | g+s | Set SetGID bit (run as group) |
| Sticky Bit | o+t | Set Sticky Bit (only owner can delete) |
Common CHMOD values:
| Numerical value | Symbolic representation | Description |
|---|---|---|
| 644 | rw-r--r-- | Owner can read and write, others can only read (standard file permissions) |
| 755 | rwxr-xr-x | Owner can read, write and execute, others can read and execute (standard permissions for folders and executable files) |
| 767 | rw-rw-rwx | Owner and group can read and write, others can read, write and execute |
| 777 | rwxrwxrwx | All users can read, write and execute (not recommended for security reasons) |
| 600 | rw------- | Only owner can read and write (private files) |
We have helped calculate permissions for 20538 files and folders!