Last active
October 30, 2019 06:36
-
-
Save intech/e7373d8069779cccb2c68f5eb0ba5274 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
| #!/bin/bash | |
| useradd -m -d /home/$USER -s /bin/bash $USER | |
| sudo -u$USER mkdir -p /home/$USER/.ssh | |
| chmod 700 /home/$USER/.ssh | |
| sudo -u$USER touch /home/$USER/.ssh/authorized_keys | |
| chmod 600 /home/$USER/.ssh/authorized_keys | |
| # Docker | |
| usermod -aG docker $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment