summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/provision4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 7fedc6a..a4d0fba 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -456,9 +456,11 @@ echo "Installing OpenSSH daemon..."
$APT_INSTALL openssh-server -y
hydra_sudo_run chroot $WORK/ service ssh stop
-# Accounts.
+# Sudo.
echo "Installing sudo..."
$APT_INSTALL sudo -y
+echo "%sudo ALL=NOPASSWD: ALL" | $SUDO tee $WORK/etc/sudoers.d/local > /dev/null
+$SUDO chmod 440 $WORK/etc/sudoers.d/local
echo "Choose a root password."
hydra_sudo_run chroot $WORK passwd root