Fix rights of sudoers after changing at esniper (de)install

This commit is contained in:
Arne Fitzenreiter
2008-06-01 11:35:34 +02:00
parent 2de0a02495
commit 122d8400d2
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -25,3 +25,4 @@
remove_files
grep -v "esniper" /etc/sudoers > /tmp/sudoers
mv /tmp/sudoers /etc/sudoers
chmod 0440 /etc/sudoers