Skip to content

Instantly share code, notes, and snippets.

@tstachl
Created February 20, 2018 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstachl/8dc03f7bd5586ab010495401f048a770 to your computer and use it in GitHub Desktop.
Save tstachl/8dc03f7bd5586ab010495401f048a770 to your computer and use it in GitHub Desktop.
Steps I took to create a sudo user on my Digital Ocean Droplet (Ubuntu).
# SSH as root to your Digital Ocean Droplet
ssh root@[DROPLET_IP]
# create the new user
adduser example
# add new user to the sudo group
gpasswd -a example sudo
# logging in with the new user
su - example
# test if you have sudo
sudo ls -la /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment