How to create a new SSH user in LAMP stack?
I created a fresh LAMP stack droplet. Now I have to provide my co-worker with access to server web directory (/var/www/) via SFTP. How could it be done right way?
#add your users to it
usermod -a -G developers username1
usermod -a -G developers username2
#chgrp /var/www to devvelopers
chgrp -R developers /var/www
#grant its users write access
chown -R g+w /var/www