summaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-09-23 13:36:33 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-09-23 13:36:33 -0300
commit00ab8ad0a72a3aa9ad1859abc2f1f44ca2769ca2 (patch)
tree7d7f27e3d8aa1c8198349e4055f75929563dd25b /share/hydractl/provision
parentf0e644aa2404dfe52683bf411c50ad16a3fed758 (diff)
downloadhydra-00ab8ad0a72a3aa9ad1859abc2f1f44ca2769ca2.tar.gz
hydra-00ab8ad0a72a3aa9ad1859abc2f1f44ca2769ca2.tar.bz2
Provision: set /etc/sudoers.d/local
Diffstat (limited to 'share/hydractl/provision')
-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