Last active
September 6, 2018 17:48
-
-
Save elgamine-dev/448b96ed59e16f35e3181e5b4ad97174 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 | |
USERNAME=foo | |
sudo useradd -m ${USERNAME} | |
sudo usermod -aG www-data,forge ${USERNAME} | |
echo '${USERNAME}:${USERNAME}' | sudo chpasswd | |
sudo passwd -e ${USERNAME} | |
mkdir /home/${USERNAME}/webroot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment