vesta/upd/limit_sudo.sh
2018-10-18 00:14:28 +03:00

7 lines
156 B
Bash
Executable File

#!/bin/bash
if [ -e "/etc/sudoers.d/admin" ]; then
sed -i "s/admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" \
/etc/sudoers.d/admin
fi