mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 04:26:23 -07:00
8 lines
237 B
Bash
Executable file
8 lines
237 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
|
|
|
|
sed -i "s/%admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" /etc/sudoers
|