Last active
March 7, 2022 06:28
-
-
Save HUGHNew/26498583c267bb311f9076bdeb9f6b4c to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# need parameters check | |
sudo useradd --create-home --groups sudo --shell /bin/bash $1 | |
# useradd -m -G sudo -s /bin/bash $1 | |
echo -e -n "$2\n$2" | passwd $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment