About the Chmod Calculator tool
Linux and other Unix-like systems control who can read, write and execute each file with a set of permission bits. Commands like chmod 755 or chmod 644 are everywhere in deployment guides, but translating between the octal number, the rwxr-xr-x string you see in ls -l, and what it actually allows is error-prone. Getting it wrong can break a website or, worse, leave files writable by everyone.
This chmod calculator shows all three views at once. Tick read, write and execute for the owner, group and others and the octal digits appear underneath each column. Type an octal value such as 750 or a symbolic string such as rw-r----- and the checkboxes update to match. The special bits setuid, setgid and the sticky bit are included too, shown as s, S, t or T in the symbolic form and as a leading fourth digit in octal.
Enter a file or directory name to get a ready-to-run chmod command in both numeric and symbolic (u=,g=,o=) form, with an optional -R for recursive changes. A warning appears whenever others have write access.
How to use Chmod Calculator
- Tick the Read, Write and Execute boxes for Owner (u), Group (g) and Others (o).
- Or type a value into “Octal (numeric)” such as 644, or into “Symbolic (ls -l style)” such as rwxr-xr-x.
- Tick setuid, setgid or sticky if you need special bits.
- Enter the path in “File or directory” and switch on “Recursive (-R)” if needed.
- Copy the generated chmod command, or click a button under “Common permissions” to start from a preset.
Features
Three-way sync
Checkboxes, octal and symbolic notation always stay in step, whichever one you edit.
Special permission bits
setuid (4000), setgid (2000) and sticky (1000) are supported, including the capital S/T forms when execute is off.
Ready-made commands
Get both chmod 755 file and chmod u=rwx,g=rx,o=rx file forms, with optional -R.
Accepts ls -l output
Paste a string like -rwxr-xr-x or drwxr-x--- and the leading file-type character is ignored.
Common presets
644, 755, 600, 700, 775, 664, 777 and 1777 are one click away with a short explanation.
When to use it
- Set correct 644 file and 755 folder permissions for a WordPress or static site.
- Lock down an SSH private key to 600 so ssh stops refusing it.
- Understand what an unfamiliar permission string in ls -l output means.
- Configure a shared group directory with setgid so new files inherit the group.
- Teach or learn how Unix permission bits map to octal digits.
Frequently asked questions
What does chmod 755 mean?
The owner can read, write and execute (7 = 4+2+1), while the group and everyone else can read and execute (5 = 4+1). It is the usual setting for directories and scripts.
What is the difference between 644 and 755?
644 gives the owner read and write and everyone else read only, with no execute bit. It suits regular files like HTML or images. 755 adds execute, needed for scripts and for entering directories.
Why is chmod 777 considered dangerous?
It lets any user on the system modify or replace the file. On shared or web servers that can let an attacker who gains limited access alter your code.
What do s and t mean in permissions?
A lowercase s in the owner or group execute slot means setuid or setgid is set along with execute; uppercase S means the special bit is set without execute. t in the others slot is the sticky bit, which stops users deleting each other’s files in shared folders like /tmp.
Does chmod work on Windows?
Windows uses ACLs instead of Unix mode bits, so chmod applies in Linux, macOS, WSL, Git Bash and on most web hosts, not to native NTFS permissions.