Created
June 20, 2019 10:50
-
-
Save haridas/cad367773310f34074488c272dfe9454 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Add the new password | |
sudo adduser $1 | |
# Add the user to labs group. | |
sudo usermod -aG labs $1 | |
# Force user to change password. | |
sudo chage -d 0 $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment