I need to set up apache2 to achieve the following
- Several different login accounts can access their own files and read / write / replace them at will.
- Each user can't even read the contents of the other users files, or preferably even see they files exist.
- All of them can be properly accessed by apache and php
Each user looks after a different subdirectory of a /var/www/{hostname} website. I can't allow each user to see the other people's files as they may contain database login details for example in config.php
How do I set the file permissions and file / directory ownership to achieve this.
It would be a bonus if I could give more than one account the permission to access a specific set of files. It would be a bonus if autoupdate mechanisms for things like wordpress worked properly with the permission setup.
I've looked at user and group ownership and permissions but can't seem wo work out how to achieve exactly what I need.
Any suggestions would be welcome :)
Edit: This is on a linux debian "lenny" system