I m having the following sub folder structure.
I want to change the ownership and permission for site and their sub directories alone.
How can i achieve that?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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