Set Rights for Files and Folders recursive

From wiki.linuxonlinehelp.eu
Revision as of 20:05, 24 October 2011 by Author (talk | contribs) (Created page with "for directorys.. <pre> find /path/to/base/dir -type d -exec chmod 755 {} \; </pre> for files.. <pre> find /path/to/base/dir -type f -exec chmod 644 {} \; </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

for directorys..

find /path/to/base/dir -type d -exec chmod 755 {} \;

for files..

find /path/to/base/dir -type f -exec chmod 644 {} \;