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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communitywith 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.