chmod calculator

A chmod calculator converts file permissions between octal (755) and rwx notation and gives you the chmod command. Click permissions or type a number. Free.

Kind

Common sets

Permissions
Who rreadwwritexexecute Digit
Owner 7
Group 5
Others 5
Special bits

Who can do what

    • Octal
    • As in ls -l
    • Command
    • Command, symbolic

    How to use it in three steps

    Step by step, with this page's example.

    1. 01

      Tick permissions or type a number, such as 755.

    2. 02

      Read the rwx notation.

    3. 03

      Copy the ready chmod command.

    What you enter

    755 for the file script.sh

    What you get
    -rwxr-xr-x
    chmod 755 script.sh
    chmod u=rwx,g=rx,o=rx script.sh

    Questions

    What does chmod 755 mean?
    The owner can read, write and execute the file, while the group and others can only read and execute (rwxr-xr-x).
    What does chmod 777 mean and is it safe?
    777 gives everyone the right to read, write and execute. It is not safe, because any user on the server can change the file, so set the owner properly and use 755 or 644 instead.
    What permissions should files and directories have on a web server?
    Usually 644 for files and 755 for directories. A directory needs the execute bit so that it can be entered, and an ordinary file does not need it.
    How is 755 different from 644?
    755 lets everyone read and execute and only the owner write. 644 lets nobody execute, so it suits ordinary files.
    What are setuid and the sticky bit?
    Setuid makes a program run with the rights of its owner, setgid makes a directory pass its group on, and the sticky bit on a directory like /tmp lets only a file's owner delete it. They go in an optional leading fourth digit, for example 4755.

    Tell us what you want to build.

    A free quote comes back within an hour during working hours. You talk to the person who writes the code.