Created
April 25, 2014 18:21
-
-
Save hpcorona/11298633 to your computer and use it in GitHub Desktop.
create a user in a ubuntu server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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