mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 03:25:54 +02:00
esniper sudoers entry now removed at uninstall
fixed typo at install that not add comment to sudoers
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
extract_files
|
||||
useradd -s /bin/false esniper
|
||||
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
|
||||
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 777 /srv/web/esniper
|
||||
chown nobody.nobody /srv/web/esniper
|
||||
|
||||
@@ -23,3 +23,5 @@
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
remove_files
|
||||
grep -v "esniper" /etc/sudoers > /tmp/sudoers
|
||||
mv /tmp/sudoers /etc/sudoers
|
||||
|
||||
Reference in New Issue
Block a user