Lets assume we have two web developers working on the same web project and they will need a single shared location to store and collaborate their development work with each other. In bellow example I have taken “/var/web-dev” as the shared location and it’s owned by Apache user (www-data). Two developers, danny and penny, needs to store their development work in “/var/web-dev”.
Assuming we already has logins for danny and penny, we have to add them to Apache user group.
usermod -aG www-data danny
usermod -aG www-data penny