mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 08:22:59 +02:00
Fix rights of sudoers after changing at esniper (de)install
This commit is contained in:
@@ -28,6 +28,7 @@ grep -v "esniper" /etc/sudoers > /tmp/sudoers
|
||||
echo "# esniper user" >> /tmp/sudoers
|
||||
echo "nobody ALL=(esniper) NOPASSWD: /usr/bin/sudo, /bin/sh, /bin/kill" >> /tmp/sudoers
|
||||
mv /tmp/sudoers /etc/sudoers
|
||||
chmod 0440 /etc/sudoers
|
||||
chmod 777 /srv/web/esniper
|
||||
chown nobody.nobody /srv/web/esniper
|
||||
/etc/init.d/apache reload
|
||||
|
||||
@@ -25,3 +25,4 @@
|
||||
remove_files
|
||||
grep -v "esniper" /etc/sudoers > /tmp/sudoers
|
||||
mv /tmp/sudoers /etc/sudoers
|
||||
chmod 0440 /etc/sudoers
|
||||
|
||||
Reference in New Issue
Block a user