Sfoglia il codice sorgente

Limiting /etc/sudoers for Ubuntu

dpeca 5 anni fa
parent
commit
c9844805a4
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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