My Notebook
by kerner1000
Folders and files need to have different umask bits to have the ‘same’ rights. Therefore, we need to manually set the right mods:
find /verzeichnis/ -type d -exec chmod 755 {} +
find /verzeichnis/ -type f -exec chmod 644 {} +
Sources: wiki.ubuntuusers.de/chmod/
tags: Bash - Shell