Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
bash users
Browse files Browse the repository at this point in the history
  • Loading branch information
3amyatin authored Mar 3, 2024
1 parent 8442c91 commit 35b89e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bash/users.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 35b89e2

Please sign in to comment.