chmod Command

chmod 700 filename or directory

-rwx------ (700)
Owner
Group
Other
read
yes


write
yes


execute
yes



chmod 600 filename or directory

-rw------- (600)
Owner
Group
Other
read
yes


write
yes


execute




chmod 500 filename or directory

-r-x------ (500)
Owner
Group
Other
read
yes


write



execute
yes



chmod 400 filename or directory

-r-------- (400)
Owner
Group
Other
read
yes


write



execute




chmod 300 filename or directory

--wx------ (300)
Owner
Group
Other
read



write
yes


execute
yes



chmod 200 filename or directory

--w------- (200)
Owner
Group
Other
read



write
yes


execute




chmod 100 filename or directory

---x------ (100)
Owner
Group
Other
read



write



execute
yes



chmod 777 filename or directory

-rwxrwxrwx (777)
Owner
Group
Other
read
yes yes yes
write
yes yes yes
execute
yes
yes yes

chmod 711 filename or directory

-rwx--x--x (711)
Owner
Group
Other
read
yes

write
yes

execute
yes
yes yes

Why permission denied?

[ERROR]
cp -r ~/Downloads/ZendFramework /usr/local/
cp: cannot create directory `/usr/local/ZendFramework': Permission denied
 
[SOLVED]

use "sudo"
sudo cp -r ~/Downloads/ZendFramework /usr/local/


Links