How do you read or set Unix file permissions?
Switch between octal (755) and symbolic (rwxr-xr-x) permissions, with the umask worked out.
What you enter stays on your device while you use this tool. Opening a shared link sends the settings in its address to HowToolbox to prepare the page.
Set permissions
Owner (user)
Group
Others
More options
Octal (755), rwxr-xr-x or u=rwx,go=rx.
Special bits
Octal, usually 022 or 002. It removes permissions from new files and folders.
Octal mode
755 = rwxr-xr-x
Owner (user): Read, Write, Execute. Group: Read, Execute. Others: Read, Execute
What each class may do
- Owner (user)
- Read, Write, Execute
- Group
- Read, Execute
- Others
- Read, Execute
- Special bits
- None
- New file under the umask
- 644
- New folder under the umask
- 755
Switch between octal (755) and symbolic (rwxr-xr-x) permissions, with the umask worked out.
How to use
- Type the permissions in any notation: 755, rwxr-xr-x or u=rwx,go=rx. Or press the Read, Write and Execute buttons for each class under Permission buttons.
- Read the octal and symbolic forms in the result, and what the owner, the group and others may do.
- Open Permission buttons, special bits and umask to set setuid, setgid or sticky, or to see the mode new files get under your umask.
Common chmod modes
How it works
Every Unix file has three sets of permissions: for its owner, for its group and for everyone else. Each set says whether the file may be read, written or executed. On a folder, execute means the right to enter it.
In octal, read is 4, write is 2 and execute is 1, and each class gets the sum of its rights. So 755 is rwx for the owner (4+2+1 = 7) and r-x for the group and others (4+1 = 5). A fourth leading digit holds the special bits: 4 setuid, 2 setgid and 1 sticky (POSIX chmod).
The umask is the opposite: the bits a new file may not get. New files start from 666 and new folders from 777, then the umask's bits are removed. With 022, files become 644 and folders 755. In symbolic form without who-letters, the umask applies too, as POSIX says.
Sources
- The Open Group: POSIX.1-2024, chmodUsed for: definitions
Frequently asked questions
What does chmod 755 mean?
The owner may read, write and execute; the group and everyone else may read and execute. It is common for programs and folders.
What does chmod 644 mean?
The owner may read and write; everyone else may only read. It is the usual mode of ordinary files.
What is the difference between 777 and 755?
777 also lets the group and everyone else write. That is rarely a good idea, because any user on the machine could change the file.
What do setuid, setgid and sticky do?
Setuid and setgid run a program as its owner or group. Sticky on a folder lets only a file's owner delete it there, as in /tmp.
Why is the first digit sometimes missing?
A three-digit mode has no special bits. 0755 and 755 mean the same.





