Change File & Folder Permissions In Bulk on macOS

red and black love lock

To change file and folder permissions on macOS in bulk use the find command. In terms of the ideal permissions, the following is what I recommend.

  • Files: Set the permissions to 644.
  • Direcories: Set the permissions to 755.

However, you can decide on your own if you prefer.

With your permission decided, run the following commands with your desired path:

find /your/path/here -type d -exec chmod 755 {} \;
find /your/path/here -type f -exec chmod 644 {} \;

P.S. I recently migrated project files from an external hard drive and needed to change the file permission to the proper levels. I sourced the approach on Stack Overflow.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.