Explorar el Código

Limiting /etc/sudoers for Ubuntu

dpeca hace 5 años
padre
commit
c9844805a4
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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