mirror of
https://github.com/serghey-rodin/vesta.git
synced 2024-11-23 22:10:24 -08:00
9 lines
237 B
Bash
Executable File
9 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
|