Wednesday, September 19, 2018

Change files to 0644 and directories to 0755



Its very simple,

Basically numbers or letters it is the same:
read is 4
write is 2
execute is 1
0644 for example means read + write/ read/ read.


just type this command in web root directory:-

To change all the directories to 755 (drwxr-xr-x):
find . -type d -exec chmod 755 {} \;
To change all the files to 644 (-rw-r--r--):
find . -type f -exec chmod 644 {} \;


That's It,
Chill...

0 comments: