Skip to content

Instantly share code, notes, and snippets.

@isitavi
Created December 6, 2018 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isitavi/34f344250c32a57e18a0335cf4ff8152 to your computer and use it in GitHub Desktop.
Save isitavi/34f344250c32a57e18a0335cf4ff8152 to your computer and use it in GitHub Desktop.
addUser-Problem3
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