Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created September 10, 2012 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ziadoz/3692801 to your computer and use it in GitHub Desktop.
Save ziadoz/3692801 to your computer and use it in GitHub Desktop.
Bash Users with Different Primary Group
sudo useradd -m -d /home/<username> -s /bin/bash -k /etc/skel -g <primarygroup> -G sudo <username>
sudo passwd <username>
sudo deluser <username>
chsh -s /bin/bash <username>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment