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?
so the command would be
This is, however a bad idea and you should normally do it one at a time.