0

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?

themhz
  • 477

1 Answers1

1

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.

Alex L.
  • 3,468
  • 1
  • 21
  • 22