Web 750 Help Pages
What is CHMOD?
CHMOD stands for Change MODe. It changes the access mode, or permissions, of a file. These permissions not only determine who can access a file, they determine what type of access the user is allowed.

CHMOD is used on Unix servers. Unix sets permissions for three groups: Owner, Group, and Everyone. 

The basic permissions are r (read), w (write), and x (execute). The first part of the command deals with the Owner permissions (the person who created the file), the second part is for the Group permissions (Usually the group that the owner belongs to) and the third is for everyone else.

If you saw the permission rwxrwxrwx, that would mean that anybody accessing the file could read it, write to it, and execute it. A hyphen would indicate that the permission is not granted. rwxr--r-- would mean that only the owner could execute or write to the file--everyone else would only be allowed to read it.

These letters are commonly abbreviated to a set of numbers.  These numbers are arrived at quite simply--each digit represents who the permission is being set for. 

0 = Nothing
1 = Execute
2 = Write
3 = Execute & Write  (2 + 1 = 6)
4 = Read
5 = Execute & Read (4 + 1 = 5)
6 = Read & Write (4 + 2 = 6)
7 = Execute & Read & Write (4 + 2 + 1 = 7)

777, then, would be the same thing as saying rwxrwxrwx. 

Which permissions should I use?

[Close Window]