Skip to content

Commit

Permalink
-G adm
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed Sep 8, 2023
1 parent dd7dfb5 commit 3c98c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/posts/guide-to-setting-up-a-vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ssh [email protected]
# Now you should be connected to your VM!
YOU="your name here"
echo $YOU # Shells are weird, make sure this works!
adduser $YOU
adduser $YOU -G adm,wheel # "admin" lets you see logs and such, wheel gives you `sudo` powers
mkdir /home/$YOU/.ssh/
chown $YOU /home/$YOU/.ssh/
chgrp $YOU /home/$YOU/.ssh/
Expand All @@ -36,7 +36,7 @@ cp /root/.ssh/authorized_keys /home/$YOU/.ssh/authorized_keys
# wget https://meta.sr.ht/\~$YOUR_SOURCEHUT_USER.keys -O /home/$YOU/.ssh/authorized_keys
chown $YOU /home/$YOU/.ssh/authorized_keys
chgrp $YOU /home/$YOU/.ssh/authorized_keys
usermod -a -G wheel $YOU # adds you to the wheel group, wheel allows you to run `sudo`
# usermod -a -G wheel $YOU
```

Now disconnect, and login as your new less-priviledged user
Expand Down

0 comments on commit 3c98c17

Please sign in to comment.