Hi, here 2 commands to change permissions on file types (whitespaces in the filename are working too):
Change all files in a directory:
# find . -type f -exec chmod 644 {} \;
or change all directories found in a folder:
# find . -type d -exec chmod 755 {} \;