Recursive CHMOD of directories

MirageSF
MirageSF used Ask the Experts™
on
Hi,

I need to change all the public_html folders from the /home directory from the attribute of 750 to 755 using chmod, how can I do this recursively for all directories matching that folder from the/home directory ?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2005
Commented:
Try:

cd /home
find . -type d -name public_html -exec chmod 0755 {} \;

Author

Commented:
Worked a treat!!!  I hope lol :)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial