# chmod calculator > How do you read or set Unix file permissions? Switch between octal (755) and symbolic (rwxr-xr-x) permissions, with the umask worked out. Convert Unix file permissions between octal, rwx and symbolic chmod forms, see what each class may do and what a umask leaves for new files and folders. - Page: https://how.box/chmod/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/chmod/?mode={mode}&umask={umask} - `mode` (text): The permissions: octal, ls -l style or symbolic. Example: `755`. - `umask` (text): The umask in octal. Example: `022`. Example answer: https://how.box/chmod/?mode=755&umask=022 The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `chmod_calculate`: Explains a Unix file mode as POSIX chmod defines it. - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"chmod_calculate","arguments":{"mode":"755","umask":"022"}}}` - GET: https://how.box/mcp/run/chmod_calculate?mode=755&umask=022 ## 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. ## FAQ **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. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)