From: Arne Fitzenreiter Date: Sat, 31 May 2008 22:47:24 +0000 (+0200) Subject: Create esniper user if esniper was installed X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=754c6288f70f49427f5006d120184de80ada4752 Create esniper user if esniper was installed --- diff --git a/doc/packages-list.txt b/doc/packages-list.txt index 3bc28ece8..2a7c8443b 100644 --- a/doc/packages-list.txt +++ b/doc/packages-list.txt @@ -241,7 +241,6 @@ * rrdtool-1.2.15 * rsync-2.6.9 * rtorrent-0.7.9 -* samba-3.0.29 * samba-3.0.30 * sane-1.0.19 * sane-1.0.19-kmod diff --git a/src/paks/esniper/install.sh b/src/paks/esniper/install.sh index 872a64ab7..214b953c4 100644 --- a/src/paks/esniper/install.sh +++ b/src/paks/esniper/install.sh @@ -23,6 +23,11 @@ # . /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 +mv /tmp/sudoers /etc/sudoers chmod 777 /srv/web/esniper chown nobody.nobody /srv/web/esniper /etc/init.d/apache reload