From c9844805a441a3213f9a8cc313f114241f103ec2 Mon Sep 17 00:00:00 2001 From: dpeca Date: Mon, 23 Mar 2020 19:31:42 +0100 Subject: [PATCH] Limiting /etc/sudoers for Ubuntu --- upd/limit_sudo.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upd/limit_sudo.sh b/upd/limit_sudo.sh index 4f4ac924..22572151 100755 --- a/upd/limit_sudo.sh +++ b/upd/limit_sudo.sh @@ -4,3 +4,5 @@ if [ -e "/etc/sudoers.d/admin" ]; then sed -i "s/admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" \ /etc/sudoers.d/admin fi + +sed -i "s/%admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" /etc/sudoers