mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
Limiting /etc/sudoers for Ubuntu
This commit is contained in:
parent
c9844805a4
commit
00e1f46276
1 changed files with 1 additions and 0 deletions
|
@ -688,6 +688,7 @@ chmod 755 /usr/bin/rssh
|
|||
mkdir -p /etc/sudoers.d
|
||||
cp -f $vestacp/sudo/admin /etc/sudoers.d/
|
||||
chmod 440 /etc/sudoers.d/admin
|
||||
sed -i "s/%admin.*ALL=(ALL).*/# sudo is limited to vesta scripts/" /etc/sudoers
|
||||
|
||||
# Configuring system env
|
||||
echo "export VESTA='$VESTA'" > /etc/profile.d/vesta.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue