with this command
sudo chmod 777 /var/www/
I get 777 on www but not under www/subdir1/subdir2 how can I set all subdirectories recursively to 777 with one command?
with this command
sudo chmod 777 /var/www/
I get 777 on www but not under www/subdir1/subdir2 how can I set all subdirectories recursively to 777 with one command?
Use the -R
flag.
so the command would be sudo chmod -R 777 /var/www/
.
This is, however a bad idea and you should normally do it one at a time.