mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Limiting /etc/sudoers for Ubuntu
This commit is contained in:
parent
c3c4de43d6
commit
c9844805a4
1 changed files with 2 additions and 0 deletions
|
@ -4,3 +4,5 @@ if [ -e "/etc/sudoers.d/admin" ]; then
|
||||||
sed -i "s/admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" \
|
sed -i "s/admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" \
|
||||||
/etc/sudoers.d/admin
|
/etc/sudoers.d/admin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sed -i "s/%admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" /etc/sudoers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue