Working on Ubuntu 16.04.2 LTS as a LAMP stack.
I've setup a web project (Magento) that has pre-defined factory octal permissions throughout its codebase. I need to provide access to other developers. The project's location is /var/www/webproject and that is owned by the Apache owner/group www-data.
So I've created a user for the developer who belongs to group www-data (i.e. devuser) and given them SSH access. Currently, without using sudo, the user is unable to create or edit files contained within /var/www/webproject because the octal permissions do not allow for it.
/var/www/webproject permissions = 750 Files & directories within /var/www/webproject vary but... user:group assignment for everything = www-data:www-data
Question: In order for my user devuser to be able to correctly modify files and directories contained within /var/www/webproject, is it simply a matter of recursively applying the correct group permissions to ALL files and directories contained therein? Or is there a better approach that potentially preserves the web platform's (Magento) factory permissions but still allow any user within group www-data to modify files and directories?