Created
December 6, 2018 05:26
-
-
Save isitavi/34f344250c32a57e18a0335cf4ff8152 to your computer and use it in GitHub Desktop.
addUser-Problem3
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
1. sudo useradd -m -s /bin/bash test | |
2. sudo usermod -a -G sudo test | |
3. pwd (If the direcotry is on /home/test) | |
touch .ssh | |
4. cd .ssh/ | |
touch id_rsa | |
5. chgrp test /home/test/.ssh/id_rsa | |
chmod 640 /home/test/.ssh/id_rsa | |
6. sudo chown test -R /home | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment