PocketPlay
中文

chmod Calculator

Tick the Unix permissions you need and get the octal number, the rwx string and the exact chmod command.

🔒 Runs in your browser — files never leave your deviceFree · No sign-up

Permissions

WhoReadWriteExecute
Owner
Group
Others

Special bits

Common modes

What this allows

    Commands

    Numeric
    Symbolic

    How to use the chmod calculator

    1. Tick read, write and execute for the owner, the group and everyone else — or type an octal number such as 755 straight into the box.
    2. Add setuid, setgid or the sticky bit if you need them, and switch the type to Directory so the wording matches what execute really means there.
    3. Copy the ready-made chmod command and run it on your server.

    FAQ

    Why is 755 so common?

    Read is 4, write is 2, execute is 1, and each digit adds them up for owner, group and others. 755 means the owner can do everything (7 = 4+2+1) while everyone else can read and execute (5 = 4+1) — exactly what a script or a web directory needs.

    What does execute mean on a directory?

    On a directory the execute bit is really a traverse bit: without it you cannot cd into the directory or open files inside it, even if you can list the names with read permission. That is why folders are 755 and plain files are 644.

    Should I ever use 777?

    Almost never. It lets any user or process on the machine rewrite the file. If an upload directory needs to be writable, give it to the web server user with chown and keep the mode at 755 or 775.