Created
September 10, 2012 18:36
-
-
Save ziadoz/3692801 to your computer and use it in GitHub Desktop.
Bash Users with Different Primary Group
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
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