Server & Hosting

Chmod Calculator

Tick who may read, write and run a file to get its chmod number, or type a number such as 755 to see what it allows. Includes the command to copy.

Permissions

ReadWriteRun
Owner
Group
Everyone else
Special bits

Result

    How file permissions work

    On Linux servers — which run most websites — every file and folder says who may read it, change it and run it. There are three groups of people: the owner, the owner’s group, and everyone else. Each permission has a value: read is 4, write is 2 and run (execute) is 1. Add them up for each group and you get three digits, such as 755.

    Common settings

    How to change permissions

    1. In cPanel or hPanel File Manager: right-click the file, choose Permissions (or Change Permissions), and enter the number.
    2. In an FTP program such as FileZilla: right-click, choose File permissions, and type the number.
    3. Over SSH: copy the chmod command shown here.

    Frequently asked questions

    What does chmod 755 mean?

    The owner can read, write and run; the group and everyone else can read and run, but not change it. It is the usual setting for folders.

    Should I use 777 to fix a permission error?

    No. It works by letting everyone change the file, which is a security hole. Find out which user needs access and give only that, usually with 755 or 775 for a folder.

    Why do folders need the “run” permission?

    For a folder, “run” means being allowed to open it and reach the files inside. Without it, a folder’s files cannot be served even if they are readable.