Skip to content

Install ALink Tools

Free browser tools for images, PDFs, media, text and web checks. Most tools process files locally on your device.

  1. Tap the Share button in the Safari toolbar.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add. ALink Tools then opens from your Home Screen like an app.

Chmod Calculator

Tick read, write, and execute for the owner, group, and others, or type an octal mode like 755. This page shows the matching ls-style string and a chmod command. Special bits (setuid, setgid, and the sticky bit) are included. Nothing is uploaded, and no file on your device is changed.

Runs in your browserNothing is uploadedDoes not change files on this device

Permissions

Presets
Permission bits for owner, group, and others
ClassReadWriteExecute
Owner
Group
Others
Special bits

How to use Chmod Calculator

  1. Tick the permission bitsChoose the bits you need for the owner, group, and others, including setuid, setgid, or the sticky bit if you need them. Or pick a common preset such as 644 or 755.
  2. Or type a modeEnter an octal value such as 755 or 0755, an ls-style string such as rwxr-xr-x, or an absolute assignment such as u=rwx,g=rx,o=rx. The other fields update to match.
  3. Copy the commandCopy the octal mode, the symbolic string, or a chmod command. This page only displays the command. It does not run chmod or change any file.

Limits and how it works

  • This page does not run chmod and does not change any file on your device.
  • Relative symbolic operators such as u+x or g-w are not applied, because they need a starting mode. Use the checkboxes, an octal mode, or an absolute assignment such as u=rwx,g=rx,o=r.
  • Access Control Lists, SELinux, and Windows permissions are out of scope.
  • The chmod command is a preview. The file name is only inserted into that preview.

How Unix file modes are written

The numeric mode follows POSIX file mode bits in <sys/stat.h>. Each of owner, group, and others has read (4), write (2), and execute (1) in octal. A leading fourth digit holds setuid (4), setgid (2), and the sticky bit (1). 755 means rwxr-xr-x. 4755 means the same with setuid set.

The nine-character symbolic string is the same layout you see in ls -l, without the leading file-type character. Execute is shown as x, or as s when setuid or setgid is also set (S if the execute bit is off). The sticky bit is t, or T if others cannot execute.

Sources: POSIX.1-2017 <sys/stat.h> (https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html) and the POSIX chmod utility (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/chmod.html). Linux chmod(1) describes the same bits (https://man7.org/linux/man-pages/man1/chmod.1.html).

This calculator is for Unix permission bits only. It does not model Access Control Lists, SELinux labels, or Windows ACLs, and it does not apply umask.

Frequently asked questions

Is my input uploaded?

No. Everything runs in your browser tab with JavaScript. Nothing you type is sent to a server, logged, or stored by ALink Tools.

Does this change files on my computer?

No. It only shows the mode and a command you could run yourself in a terminal. No file is opened or modified.

What is the difference between 755 and 0755?

0755 is the same three permission digits with a leading 0 for the special bits, all off. This page shows three digits when those bits are off, and four digits when setuid, setgid, or the sticky bit is on.

What do s, S, t, and T mean?

In the execute position, s means setuid or setgid is set and the file is also executable. S means the special bit is set but execute is not. t is the sticky bit with execute for others; T is the sticky bit without that execute bit.

What are setuid, setgid, and the sticky bit?

Setuid on an executable runs the file as the file’s owner. Setgid on an executable runs it as the file’s group; on a directory, new files often inherit that group. The sticky bit on a directory, such as /tmp, typically prevents users from deleting other users’ files. Exact behavior can differ by system; check your system documentation.

Can I type a chmod command?

Yes, an octal command such as chmod 755 script.sh, or an absolute assignment such as chmod u=rwx,g=rx,o=rx. Relative forms such as chmod +x are not applied here, because they need a starting mode.

Related tools

All tools