From 45deba7c0922586b4484455dfc97223418d1eaf7 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Mon, 31 Dec 2018 21:19:04 -0500 Subject: Add single-command sudo example --- modules/Working/pages/post-install.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/Working/pages/post-install.adoc b/modules/Working/pages/post-install.adoc index 5d22b76..f442f08 100644 --- a/modules/Working/pages/post-install.adoc +++ b/modules/Working/pages/post-install.adoc @@ -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. -- cgit v1.2.3