-2

I m having the following sub folder structure.

/public/trunk/src/common/site/

I want to change the ownership and permission for site and their sub directories alone.

How can i achieve that?

Thanks

2

You can use below commands for changing permission & ownership for all files & sub directories: chown user:group /public/trunk/src/common/site/ -R

& chmod 664 /public/trunk/src/common/site/ -R

If you want to skip the files & want to apply only on directories

find /public/trunk/src/common/site/ -type d -print0 | xargs -0 chmod 775

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.