Skip navigation

I find myself searching for this often enough to make a note of it.

sudo find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;

or

sudo find /path/to/docroot/. -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;

For SETUID/SETGID conscious configurations:

find /path/to/docroot -type d -exec chmod 2775 {} \; && find /path/to/docroot -type f -exec chmod 0664 {} \;

3 Trackbacks/Pingbacks

  1. By Immediate Edge on 26 Sep 2020 at 4:10 pm

    … [Trackback]

    […] Information to that Topic: jackson-brain.com/sessting-proper-file-permissions-for-document-root/ […]

  2. By 토토사이트 on 26 Sep 2020 at 4:20 pm

    … [Trackback]

    […] Read More here to that Topic: jackson-brain.com/sessting-proper-file-permissions-for-document-root/ […]

  3. By frontier airlines Phone Number on 27 Sep 2020 at 3:55 am

    … [Trackback]

    […] Find More on to that Topic: jackson-brain.com/sessting-proper-file-permissions-for-document-root/ […]

Leave a Reply