How To Set Permissions Recursively on Web Server by Command for Files and Directories after Deployment Mac Linux Unix

Open a Terminal window (if your Live Server is Remote you need a ssh Login)

To Set Permissions Only for Files Recursively execute:

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

To Set Permissions Only for Directories Recursively execute:

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

(Reference)

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer