Directory Tree Modifications

Change the owner of just the dirs in the current tree

find . -type d -exec chown USER:GROUP {} \;

Change the owner of just the files in the current tree

find . -type f -exec chown USER:GROUP {} \;

Change the permissions of just the dirs in the current tree

find . -type d -exec chmod 0775 {} \;

Change the permissions of just the files in the current tree

find . -type f -exec chmod 0775 {} \;

Change the permissions of files and dirs in the current tree

find . -type d -exec chmod 0775 {} \; ; \
find . -type f -exec chmod 0664 {} \;

Leave a comment

  • Tags

  • Categories

  • Need Code Written?

  • Need a Coding Job?

  • Archives