chown -R test:test /home/test
find /home/test -type f -exec chmod 640 {} \;
find /home/test -type d -exec chmod 750 {} \;
chmod 755 /home/test/public_html
chmod 644 /home/test/public_html/*
SirDice said:The last chown pretty much overrules the other two commands.
This will reset it back to 'normal'
Code:chown -R test:test /home/test find /home/test -type f -exec chmod 640 {} \; find /home/test -type d -exec chmod 750 {} \;
drwx--x--x test test /home/test
drwxr-xr-x test test /home/test/public_html