Skip to content
OddsockLocal
Local
Source text
Starting octal mode644
Creation mask022
Path typefile
Command pathfile
owner permissionsfrom input
group permissionsfrom input
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Type an octal mode, a symbolic mode such as rwxr-xr-x, or an expression such as u+x.
  2. Set owner, group and other dropdowns if you want to override a triad. from input keeps what you typed.
  3. Set setuid, setgid or sticky to on or off when you need those bits.
  4. Read octal, symbolic and the chmod command. Read new file and new directory for the umask.

What is chmod calculator?

chmod calculator turns a mode into the forms people mix up. Type 755 and the result is octal 755, symbolic rwxr-xr-x, and the command chmod 755 -- 'file'. Owner is rwx, group is r-x, other is r-x. The same page accepts a symbolic string such as rwxr-xr-x, or a change expression such as u+x,g-w, applied to the starting mode.

Read more

Umask is separate from the mode you typed. Creation mask defaults to 022 and starting mode defaults to 644. The report always includes what a new file and a new directory would be under that mask: 0666 masked by 022 is 644, and 0777 masked by 022 is 755. Those two lines stay even when you typed 755 as the mode of an existing path. Path type file or directory changes how a capital X in an expression behaves, because X adds execute only when the path is a directory or someone already has execute.

Special bits are visible. setuid, setgid and sticky can be forced on or off, or left as the input specified them. u+s,g+w,o+t from the default base is octal 5664 and symbolic rwSrw-r-T. The capital S and T mean the special bit is on and the execute bit under it is off. The command quotes the path. It is text for you to run. The page does not change a file.

Use cases

  • A deploy doc says 755 and you want rwxr-xr-x written out before you chmod the wrong triad.
  • You need the command chmod 755 -- 'file', with the path quoted, ready to edit.
  • A umask of 022 should be shown next to the mode so a new file is 644 even though the directory you chmodded is 755.
  • A setuid bit without execute should show up as a capital S, not as a silent extra digit you might miss.

Mode 755, the directory default people memorize

755. Starting mode and the permission dropdowns left as they are. Umask 022. Path file.

octal 755, symbolic rwxr-xr-x, command chmod 755 -- 'file', umask 022, new file 644, new directory 755.

Why use Oddsock

755 and the umask answer are different facts. The mode you set on one path is not the mode a new file inherits.

Related tools

Using this tool

rwxr-xr-x. Owner reads, writes and executes. Group and other read and execute. The command is chmod 755 -- 'file' when the path is file.