* tchubb File Permissions for Small Shared Hosting Setup
Hi Guy and Girls,
I hope I am not repeating questions asked in the past. I have a VPS (HVM) that I run Centos 5.6. I run a few different services, one being HTTPD. Basically I have a few websites hosted on the server, each has their own user and a home directory for the webroot. For example
www.domain1.co.uk > /home/domain1.co.uk/www
www.domain2.co.uk > /home/domain2.co.uk/www
I have set the following permissions.
www.domain1.co.uk > /home/domain1.co.uk/www
User : rwx
Group : rx
Other :
Ownership
User : domain1.co.uk
group : apache
www.domain1.co.uk > /home/domain2.co.uk/www
User : rwx
Group : rx
Other :
Ownership
User : domain2.co.uk
group : apache
How can I make files uploaded via ftp have these default permissions? I don’t want each user in the apache group as this would give access to each others website. How would this be done in normal shared hosting? So I need to use umask, but how would I set the default group if the user is not in it.
Hope my post is clear in what I am asking.