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

September 7th, 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
(Visited 1 times, 1 visits today)

Tags: , , , , , , ,