By docauto
I am new at developing, can get the boilerplate up and make some changes but would like to give access of the code to others to help me develop the site. Should I host the codes in an outside repository then have it deployed to my droplet, or is there a way to give them access to my consol but using their own login for digitalocean?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @sierracircle:
There are different ways to go about this. My preference:
#Create a new user, for example:
sudo adduser bob sudo passwd bob sudo mkdir /home/bob#Create a group for people who will be working on your sites:
sudo addgroup webmasters#add bob to webmasters:
sudo usermod -aG webmasters bob#give your new group permissions on your website files:
sudo chown -R www-data:webmasters /var/wwwand
sudo chmod -R 775 /var/www#and finally make a link to your website folder in your new users home folder:
sudo ln -s /var/www /home/bob/now your user can login with whatever password you created. There will be a link to the website folders They should have permissions enough to work on your site.
You can delete that user with:
sudo userdel bob sudo rm -r /home/bob
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.