Chmod Calculator

Input Permissions
EntityRead (4)Write (2)Execute (1)ValueSymbolic
Owner
7 rwx
Group
5 r-x
Others
5 r-x
Special
0 UID/GID/Sticky
Special: Col 1 = SETUID (4000)  |  Col 2 = SETGID (2000)  |  Col 3 = Sticky Bit (1000)
Chmod Options / Flags
Result
Octal
755
Symbolic
rwxr-xr-x
Octal (Full 4-digit)
0755
Numeric Command
chmod 755 filename.txt
Symbolic Command
chmod u=rwx,g=rx,o=rx filename.txt
Favorites
No favorites saved yet. Click "Save to Favorites" to add one.
Common Presets
Recent History
  • No history yet.
Octal Reference
OctalPermissionsSymbolicDescription
7Read + Write + ExecuterwxFull access
6Read + Writerw-No execute
5Read + Executer-xNo write
4Read onlyr--Read only
3Write + Execute-wxNo read
2Write only-w-Write only
1Execute only--xExecute only
0None---No permissions
Chmod Flags Reference
-RRecursive
Apply permissions to all files and subdirectories within the target directory.
-vVerbose
Output a diagnostic message for every file processed, showing what changed.
-cChanges
Like verbose, but only reports when a change is actually made to a file.
-fSilent / Force
Suppress most error messages and continue processing even if errors occur.
SETUIDSet User ID - 4000
Executes with owner's privileges. Set with chmod u+s file. Shown as s in owner execute bit.
SETGIDSet Group ID - 2000
Executes with file group privileges. On directories, new files inherit the group. Set with chmod g+s.
StickySticky Bit - 1000
Only the file owner can delete or rename their files in a directory. Set with chmod +t dir.
--refReference File
Use another file's permissions as the mode source. Usage: chmod --reference=src dst.