Ver Fonte

Limiting /etc/sudoers for Ubuntu

dpeca há 5 anos atrás
pai
commit
c9844805a4
1 ficheiros alterados com 2 adições e 0 exclusões
  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