146
edits
(moved content to another more specific page) |
(Removing a user from sudo group and removing an authorized key) |
||
Line 20: | Line 20: | ||
usermod -aG sudo USERNAME | usermod -aG sudo USERNAME | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* To remove a user from <code>sudo</code> group | |||
<syntaxhighlight lang="bash"> | |||
sudo gpasswd -d USERNAME sudo | |||
</syntaxhighlight> | |||
Also, to remove their ability to ssh as root, remove their public key from <code>.ssh/authorized_keys</code> | |||
== Security (only need to do this at setup) == | == Security (only need to do this at setup) == |