I'm on a shared host, and a bit confused about file permissions:
- My website directory /home/user/www is owned by user:nobody
- Everything inside /home/user/www is owned by user:user (?)
Most people would tell me I have to do the following (summarized):
chown -R user:nobody /home/user/www
find /home/user/www -type d -exec chmod 750 {} \;
find /home/user/www -type f -exec chmod 640 {} \;
But I can't `chown' anything, and since files will be owned by user:user, I don't know what the permissions should be.
I noticed I can chmod 600 some PHP scripts, while CSS stylesheets need to be world readable..?
I'm looking for the best security approach in this case! And please don't tell me I need to move to a dedicated server: why would I ask any question then!?