system | chmod

File permissions

Change home folder permissions:

find ~ -type d -exec chmod 750 {} \;

find ~ -type f -exec chmod 640 {} \;

Change file and folder permissions:

find . -type d -exec chmod 777 {} \; && find . -type f -exec chmod 666 {} \;

find . -type d -exec chmod 775 {} \; && find . -type f -exec chmod 664 {} \;

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \;

find . -type d -exec chmod 750 {} \; && find . -type f -exec chmod 640 {} \;