Skip to content

Instantly share code, notes, and snippets.

@marquesds
Last active September 25, 2017 02:47
Show Gist options
  • Save marquesds/d61cd4415ee7b0fc6cee76dbc9252b0c to your computer and use it in GitHub Desktop.
Save marquesds/d61cd4415ee7b0fc6cee76dbc9252b0c to your computer and use it in GitHub Desktop.
Create a new user on Linux (Ubuntu)
# 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