Last active
September 25, 2017 02:47
-
-
Save marquesds/d61cd4415ee7b0fc6cee76dbc9252b0c to your computer and use it in GitHub Desktop.
Create a new user on Linux (Ubuntu)
This file contains 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
# Ref.: https://lucasmarques.me/create-ubuntu-user/ | |
# Add an user lucas and its home folder at /home/lucas | |
sudo useradd -d /home/lucas -m lucas | |
# Add a password for user lucas | |
sudo passwd lucas | |
# Make bash as default terminal | |
sudo usermod -s /bin/bash lucas | |
# Add lucas to sudoers group | |
sudo adduser lucas sudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment