Commit 45deba7c authored by Chloe Kudryavtsev's avatar Chloe Kudryavtsev

Add single-command sudo example

parent ddefe5cd
......@@ -50,8 +50,10 @@ apk add sudo <1>
echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel <2>
adduser joe wheel <3>
sudo -i <4>
sudo command with arguments <5>
----
<1> Sudo is not installed by default.
<2> By default, `sudo` only provides permissions to root. This translates as "people in the group `wheel` are allowed to perform any command, as any user, and any group."
<3> The wheel group mentioned above is the common "administrator" group, and since we're using it, we need to add our user to said group.
<4> You may need to log out and log back in for the group listing to update. `sudo -i` is the equivalent of `su -` otherwise.
<5> This will run "command with arguments" as the default `sudo` user - root.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment