Skip to content

Instantly share code, notes, and snippets.

@hpcorona
Created April 25, 2014 18:21
Show Gist options
  • Save hpcorona/11298633 to your computer and use it in GitHub Desktop.
Save hpcorona/11298633 to your computer and use it in GitHub Desktop.
create a user in a ubuntu server
sudo useradd -m -d /home/$1 -s /bin/bash -U $1
# Next, we're going to add our user to the admin group to grant superuser privileges:
groupadd admin && usermod -a -G admin $1
#passwd $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment