diff --git a/bash/users.md b/bash/users.md new file mode 100644 index 0000000..174402b --- /dev/null +++ b/bash/users.md @@ -0,0 +1,12 @@ +# Users + +## Add PKA key to user + adduser $USER + usermod -aG sudo $USER + + cd /home/$USER + mkdir .ssh + echo $PUBKEY >> .ssh/authorized_keys + chmod -R go= .ssh + chown -R $USER:$USER .ssh + passwd -d $USER