Set specific chmod for folders and files

To change all the directories to 755 (drwxr-xr-x):

find /mnt/storage -type d -exec chmod 755 {} \;

To change all the files to 644 (-rw-r–r–):

find /mnt/storage -type f -exec chmod 644 {} \;

Leave a Reply

Your email address will not be published.