Parcourir la source

Limiting /etc/sudoers for Ubuntu

dpeca il y a 5 ans
Parent
commit
c9844805a4
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      upd/limit_sudo.sh

+ 2 - 0
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