Start a project

Tool 90 of 100 · Server

chmod Calculator

Tick the permissions you want and get the octal and symbolic forms and the chmod command, or type a change like 'g+w,o-rwx' to see what it does.

chmod Calculator at a glanceIllustration: 1, Permissions; 2, processed in your browser; 3, chmod command.chmod Calculator0xB2 · 1781Permissions$ curl -X→ fetch()3chmod command2In yourbrowser
1 Permissions 2 processed on your device 3 chmod command

chmod Calculator

Permissions

WhoReadWriteExecute
Owner
Group
Others

Commands and meaning

chmod commands
WhoCan

    Apply a symbolic change

    umask

    01

    What it does

    Converts Unix permissions between octal and symbolic, applies symbolic changes, handles special bits and explains umask.

    • Octal, symbolic and checkbox views kept in sync
    • setuid, setgid and sticky bits
    • Apply symbolic changes such as u+x, go-w or a=rX
    • umask effect on new files and folders

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    chmod commands and an explanation, with a Copy and a Download button on every result.

    • chmod
    • Linux
    • Permissions

    Why it matters

    File permissions decide who can read your config, run your scripts and write to your uploads folder. A careless 777 on a web server lets any process change your site, and a 600 on a public folder breaks it.

    This calculator keeps the octal, symbolic and checkbox views in step, applies changes the way chmod does (including the capital X rule for folders), shows what a umask means for new files, and warns when a mode is risky.

    How it works

    1. InputTicks, an octal mode or ls -l output
    2. In your browserConverted between octal and symbols
    3. OutputThe mode, the command and warnings

    Where it fits in a designer's workflow

    1. Plan
    2. Design
    3. Build
    4. Test
    5. Launch
    Setting file permissions on a server.

    By the numbers

    1. 644 -rw-r--r--644 file
    2. 600 -rw-------600 secret
    3. 755 drwxr-xr-x755 dir
    4. 750 drwxr-x---750 dir
    5. 1777 drwxrwxrwt1777 /tmp
    6. 2775 drwxrwsr-x2775 shared
    7. 4755 -rwsr-xr-x4755 setuid
    Each example mode converted by this tool. The first digit sets the special bits: 1 is the sticky bit (only owners can delete in /tmp), 2 is setgid (new files inherit the group) and 4 is setuid (runs as the owner, which is a security risk). Source: GNU coreutils: mode structure.
    Show the numbers as a table
    ModeOctalSymbolic
    644 file644-rw-r--r--
    600 secret600-rw-------
    755 dir755drwxr-xr-x
    750 dir750drwxr-x---
    1777 /tmp1777drwxrwxrwt
    2775 shared2775drwxrwsr-x
    4755 setuid4755-rwsr-xr-x

    How to use it

    1. Tick the permissions, or type an octal or symbolic mode.
    2. Add special bits if you need them.
    3. Try a symbolic change to see the result.
    4. Copy the chmod command.

    FAQ

    What do 755 and 644 mean?

    755: the owner can read, write and run; everyone else can read and run. 644: the owner can read and write; everyone else can only read. They're the usual modes for folders and files.

    What does capital X do?

    It adds execute only to folders, or to files that already have execute for someone. That's why chmod -R a+rX is safe for web roots.

    Why is 777 dangerous?

    Anyone on the system can change or replace the file. On a shared or compromised server, that's a way in.

    What's a umask?

    The permissions removed from new files and folders. With umask 022, new files get 644 and folders 755.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk