Skip to content

Instantly share code, notes, and snippets.

@cinco
Last active February 16, 2019 17:05
Show Gist options
  • Save cinco/fe574bd202af3c087ea1 to your computer and use it in GitHub Desktop.
Save cinco/fe574bd202af3c087ea1 to your computer and use it in GitHub Desktop.
useradd linux command line
useradd -m -d /home/mike1 -s /bin/bash -c "the mike1 user" -U mike1
@cinco
Copy link
Author

cinco commented Dec 28, 2015

sudo adduser username sudo

@cinco
Copy link
Author

cinco commented Feb 16, 2019

sudo useradd -a -G groupname username

@cinco
Copy link
Author

cinco commented Feb 16, 2019

#archlinux
gpasswd -a user group

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment