Just a clarification on CHMOD and what it does.
The CHMOD command requires three numbers (i.e. 755, 777, etc)
Each of those numbers represent:
Owner, Group, Public
and tells the computer what level of access to give to each
There are three levels that can be administered (Read, Write, Execute)
Read (1)
Write (4)
Execute(2)
Add these numbers together go give the amount of security you want
If you want all permissions with owner but no execution with Group or Public (very common) then you would
CHMOD 755
1+2+4 = 7 (total permissions)
1+4-5 (no execution permissions)
The most common CHMODs are
755 on most files and folders
744 is another common one that allows READ-ONLY on files
777 should only be used on files and folders that are backup files or files that are absolutely necessary to be read/read/executable.
:confused: DO NOT CHMOD 777 your whole web site! :confused:
CHMOD works on both files and folders. When CHMODing a folder, all the children of the folder will also inherit the CHMOD you gave to the parent folder.
I know this is a quick tutorial, but hopefully it will help some people out.
Merry Christmas :santagrin