diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-09-23 13:36:33 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-09-23 13:36:33 -0300 |
commit | 00ab8ad0a72a3aa9ad1859abc2f1f44ca2769ca2 (patch) | |
tree | 7d7f27e3d8aa1c8198349e4055f75929563dd25b /share/hydractl/provision | |
parent | f0e644aa2404dfe52683bf411c50ad16a3fed758 (diff) | |
download | hydra-00ab8ad0a72a3aa9ad1859abc2f1f44ca2769ca2.tar.gz hydra-00ab8ad0a72a3aa9ad1859abc2f1f44ca2769ca2.tar.bz2 |
Provision: set /etc/sudoers.d/local
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-x | share/hydractl/provision | 4 |
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 |