Limiting /etc/sudoers for Ubuntu

This commit is contained in:
dpeca 2020-03-23 19:31:42 +01:00 committed by GitHub
parent c3c4de43d6
commit c9844805a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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