The chmod calculator converts Unix and Linux file permissions between a clickable matrix, the octal number (e.g. 755) and the rwx notation from ls -l. You can click permissions or type the number or letters directly. The tool explains in plain language what the permissions mean for a file or a directory, warns about risky settings and gives you the finished chmod command to copy. It also handles chmod expressions such as u+x,g-w and the umask. Everything is calculated in your browser.
The owner may read, write and execute (7); group and others may read and execute (5). This is common for programs, scripts and directories. On a directory, x means entering it and accessing its contents.
Read counts 4, write 2, execute 1. The sum per class gives one digit: rwx = 7, r-x = 5, rw- = 6, r-- = 4. So rwxr-xr-- becomes 754.
Commonly 644 for files and 755 for directories. If a directory must be writable, giving it to the web server user is usually better than 777. The tool shows a warning for 777.
Private keys should be 600 and the ~/.ssh directory 700. That way only the owner has access.
It lets every user on the system read, modify and execute the file. The real problem is usually a wrong owner or group, which can be fixed with chown or chgrp.
setuid and setgid run a program with the rights of its owner or group. On directories, setgid passes the group on to new entries. Sticky on a directory lets only an entry's owner delete it, as with /tmp (1777).
chmod -R 755 also sets x on files. Better use separate find commands with -type d and -type f, or capital X, e.g. chmod -R u=rwX,go=rX folder. The tool generates these variants.
It blocks bits at creation: files start at 666, directories at 777, minus the umask. With 022 you get 644 and 755, with 077 you get 600 and 700.
No. Everything is calculated in your browser and nothing is transmitted. Names and values appear in the link only if you copy it yourself with the share function.
On Unix and Linux every file has a mode of twelve bits. Nine of them are the access permissions: three bits each (read, write, execute) for the owner (u), the group (g) and all others (o). Three special bits are added: setuid, setgid and sticky. The chmod command changes this mode, while chown determines who owns the file and which group applies.
In octal notation each permission has a weight: read 4, write 2, execute 1. The sum per class is a digit from 0 to 7, so 754 stands for rwxr-xr--. A fourth digit in front carries the special bits (4 setuid, 2 setgid, 1 sticky). In ls -l output, setuid and setgid appear as s instead of x, or as capital S if x is missing; sticky appears as t or T.
When checking access, Linux picks exactly one class. If the user is the owner, only the owner permissions count, even if the group may do more. Otherwise the group permissions apply if he is a member, else the permissions for others. root bypasses this check.
On directories the bits mean something different: r allows listing, x allows entering and accessing entries, and w allows creating, deleting and renaming (it requires x). A directory without x is practically locked. On Linux, setuid only works on binaries, not on scripts, and has no effect on directories; sticky on files has no effect.
Besides octal, chmod knows symbolic expressions: who (u, g, o, a), an operator (+, − or =) and permissions (r, w, x, X, s, t) or a reference to another class such as g=u. Several clauses are separated by commas. Without a "who", a applies, but the umask limits what gets set. One quirk: chmod with at most four octal digits leaves a directory's setuid and setgid alone; they can be cleared with g-s or five digits (00755).
The umask determines the permissions of new objects. Files start at 666, directories at 777, and the umask bits are removed. The common umask 022 results in 644 and 755. Typical patterns are 644 for files, 755 for programs and folders, 600 for private files such as SSH keys and 700 for private directories. 777 is considered a security risk.
Every file has a mode of twelve bits: three special bits and three permissions (read, write, execute) each for owner, group and others. chmod changes the mode; chown changes who owns the file and which group it belongs to.
Read = 4, write = 2, execute = 1; the sum per class is one digit. rwx = 4+2+1 = 7, r-x = 5, rw- = 6. So 754: owner 7 (rwx), group 5 (r-x), others 4 (r--). A fourth digit in front carries the special bits (4 setuid, 2 setgid, 1 sticky).
Linux picks exactly one class: if the user is the owner, only the owner permissions count — even if the group may do more. Otherwise the group permissions apply if he is in the group, else “others”. root bypasses the check.
On files the permissions mean read, modify, execute. On directories: r lists the contents, x allows entering and reaching known names, w creates, deletes and renames entries (needs x). A directory without x is practically locked.
setuid/setgid run a program with the rights of its owner or group (ls shows s instead of x; S if x is missing). On a directory setgid passes the group on. sticky on a directory (ls: t) lets only an entry’s owner delete it — like /tmp (1777).
Who: u, g, o or a (all). Operator: + add, − remove, = set exactly. Permissions: r w x, plus X (only directories and already executable), s, t — or u/g/o to copy (g=u). Several clauses with commas: u+x,g-w. Without “who” a applies, but the umask limits what gets set.
chmod with at most four octal digits (755, 0755) leaves a directory’s setuid/setgid alone; even u=rwx doesn’t clear them there. Clear with g-s or with five digits (00755).
The umask blocks bits on creation: files start at 666, directories at 777, minus the umask. 022 gives 644 and 755, 077 gives 600 and 700. A umask never gives files x.
chmod -R 755 makes files executable too. Better: treat directories and files separately with find (…-type d / -type f) or use X: chmod -R u=rwX,go=rX folder.
777 gives everyone write access and is rarely the fix — usually owner or group is wrong (chown/chgrp). SSH keys 600, ~/.ssh 700, web content 644/755; give writable directories to the web server user instead of 777.
Everything is computed in your browser. File names and values never leave the page; they are in the link (Share) only if you copy it yourself.
Arrow keys move in the grid · Space toggles · / jumps to the octal field · C copies the octal command
Die Werkzeuge auf dieser Website werden als kostenloses Hobbyangebot bereitgestellt und dienen ausschließlich zur Information und privaten Nutzung. Für die Richtigkeit, Vollständigkeit oder Eignung der Ergebnisse für einen bestimmten Zweck wird keine Gewähr übernommen. Vor Verwendung der Ergebnisse — insbesondere bei finanziellen, rechtlichen oder sicherheitsrelevanten Entscheidungen — sind diese eigenverantwortlich zu prüfen. Eine Haftung für Schäden aus der Nutzung ist ausgeschlossen, soweit dies gesetzlich zulässig ist.