Add this line as well `sudo chmod g+s /home/devuser` which ensures the group (`devuser`) is maintained for all newly created directories. This prevents the deploying user's group from polluting all the subdirectories.