Explorar el Código

Limiting /etc/sudoers for Ubuntu

dpeca hace 6 años
padre
commit
00e1f46276
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      install/vst-install-ubuntu.sh

+ 1 - 0
install/vst-install-ubuntu.sh

@@ -688,6 +688,7 @@ chmod 755 /usr/bin/rssh
 mkdir -p /etc/sudoers.d
 cp -f $vestacp/sudo/admin /etc/sudoers.d/
 chmod 440 /etc/sudoers.d/admin
+sed -i "s/%admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" /etc/sudoers
 
 # Configuring system env
 echo "export VESTA='$VESTA'" > /etc/profile.d/vesta.sh