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?

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.

  • ok thanx, I will use it wisely – themhz Aug 25 '12 at 2:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.