/var/www/site.com owned by
www-data:www-data with a 750 permission for directories and 640 for files, and having my user
alexb added to
www-data group, I found my self with permission issues when I try to pull new releases (
git pull) to the testing environment.
So, right now, the only solutions that come into my mind, are the following:
/var/www/site.comwith the same 750 and 640
- Stick to
www-data:www-data, and a 750 and 640 permissions layout.
- Create a new user and group (staging-user:staging-group), give that new user real shell access and give assign the ownership of
/var/www/site.comto them, with the initial 750 and 640 permissions layout, so that when I need to run so shell actions (
git pullfor example) I just switch user and do it.
Now, the questions are:
- Which is worst?
- Any big thing that I might miss?