-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/ | ||
|
@@ -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 | ||
|