Set Rights for Files and Folders recursive

From wiki.linuxonlinehelp.eu
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 {} \;