Limiting /etc/sudoers for Ubuntu

This commit is contained in:
dpeca 2020-03-23 19:34:39 +01:00 committed by GitHub
commit 00e1f46276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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