How to Set Permissions Recursively for Files and Directories in Mac, Linux and Unix

September 7, 2011 | By Regaz.

This Easy-Guide will Lead you to Correctly Set Permissions on Files and Directories

  1. Open a Terminal Session
  2. Login as the Root User:
    su root

    To set permissions for Directories:

    find path/To/Root/Directory -type d -print0 | xargs -0 chmod 755

    To set permissions for Files:

    find path/To/Root/Directory -type f -print0 | xargs -0 chmod 744

QuickChic Theme • Powered by WordPress