Tips on changing file permissions in bulk.

First command – changes all files under the current directory to 700 file mode.

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

Second command – changes all directories under the current directory to 600 mode.

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

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Post Navigation