Home Tools Blog About

Chmod Cheat Sheet: Unix File Permissions

This chmod cheat sheet covers Unix file permissions: what the numbers mean, the common values, and the symbolic notation. To build any permission without memorizing it, use the Chmod Calculator.

The permission digits

Each of the three digits in a value like 755 sets permissions for the owner, the group, and everyone else. Each digit is the sum of read (4), write (2), and execute (1).

NumberPermissionSymbolic
7read, write, executerwx
6read, writerw-
5read, executer-x
4readr–
3write, execute-wx
2write-w-
1execute–x
0none

Common permission values

ValueMeaningTypical use
644owner read/write, others readRegular files
755owner all, others read/executeFolders and scripts
600owner read/write onlyPrivate files and keys
700owner all, no one elsePrivate folders
777everyone can do everythingAvoid, insecure
400owner read onlyLocked files

Symbolic notation

Instead of numbers you can use letters: u owner, g group, o others, a all, with + to add, to remove, and = to set. For example, chmod u+x file adds execute for the owner, and chmod go-w file removes write for group and others.

Frequently asked questions

What does chmod 755 mean?

The owner can read, write, and execute, while the group and everyone else can read and execute. It is common for folders and scripts.

What is the difference between 644 and 755?

644 has no execute bit, which suits regular files, while 755 adds execute, which folders and runnable scripts need.

Is chmod 777 safe?

No. It lets anyone read, write, and execute the file, so avoid it and use the least permission that works.

ATV

Written by Nick (ATV Team)

We build and maintain the 600+ free, client-side tools on this site, and every guide is written against the tools themselves: each figure is computed and checked before it is published, and every linked tool is tested in the browser. More about how we work on the about page, and the full library of guides lives on the blog.