How to use
- 1Tick read, write and execute for owner, group and others, or pick a preset such as 644 or 755.
- 2Alternatively type an octal value (755, 4755) or a permission string (rwxr-xr-x); everything stays in sync.
- 3Add special bits if needed: setuid, setgid or sticky.
- 4Enter the file name, optionally add -R, and copy the numeric or symbolic chmod command.
How octal permissions work
Each file has three permission classes: owner (u), group (g) and others (o). Read is worth 4, write 2 and execute 1, and the sum gives one octal digit per class. 755 means owner rwx (4+2+1), group r-x (4+1) and others r-x, which is typical for scripts and directories. 644 (rw-r--r--) is the usual mode for ordinary files. These values are defined by POSIX in <sys/stat.h> and the chmod utility.
setuid, setgid and the sticky bit
An optional fourth leading digit holds the special bits: 4 = setuid (the program runs with the owner’s rights), 2 = setgid (runs with the group’s rights; on directories new files inherit the group) and 1 = sticky (in a shared directory only the owner can delete their files). 4755 is used for programs such as passwd, 1777 for /tmp. In ls -l they appear as s or t in place of x; a capital S or T means the special bit is set without execute permission.
Numeric vs symbolic chmod
chmod 755 file sets all bits at once. The symbolic form chmod u=rwx,g=rx,o=rx file does the same with letters, and also allows relative changes such as chmod g+w or chmod o-r. The tool prints both forms. Note that 777 makes a file writable by every user on the system; the tool warns about world-writable modes because they are rarely needed and often a security risk.
Frequently asked questions
What does chmod 755 mean?
Owner can read, write and execute; group and others can read and execute. As a string: rwxr-xr-x.
What is the difference between 644 and 755?
644 (rw-r--r--) has no execute bit, suitable for normal files. 755 adds execute for everyone, needed for scripts and to enter directories.
Why is chmod 777 dangerous?
It lets any user on the system modify or delete the file. Use the narrowest permissions that work, such as 755 or 775.
What does the t in drwxrwxrwt mean?
It is the sticky bit (1777). In a shared directory such as /tmp, users can only delete or rename their own files.
What does a capital S mean in ls -l?
setuid or setgid is set but the matching execute permission is not, so the special bit has no practical effect for running the file.
Add this tool to your website
Paste the code below into your site’s HTML; the tool runs on your page and stays up to date automatically.
Not happy with the results?
Talk to Webin Agency about fast, SEO-friendly websites, e-commerce and Google Ads management.