From bd635a0d1336e21b1940452e594b44df5f90915a Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 8 Apr 2010 15:46:13 +1200 Subject: Use fixed uid/gid to keep the numbers < 2000, above this is reserved in pfSense 2.0+. 920 was taken from the vboxusers entry in /usr/ports/UIDs and /usr/ports/GIDs as there is no default value for snort and this is unlikely to ever be used. While I am here turn off the loudhailer for the snort user description. --- config/snort/snort.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/snort') diff --git a/config/snort/snort.inc b/config/snort/snort.inc index d4af6b85..cd2f9946 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -253,8 +253,8 @@ function snort_postinstall() exec('/bin/mkdir -p /usr/local/etc/snort/custom_rules/'); } - exec('/usr/sbin/pw groupadd snort'); - exec('/usr/sbin/pw useradd snort -c "SNORT USER" -d /nonexistent -g snort -s /sbin/nologin'); + exec('/usr/sbin/pw groupadd snort -g 920'); + exec('/usr/sbin/pw useradd snort -u 920 -c "Snort User" -d /nonexistent -g snort -s /sbin/nologin'); exec('/usr/sbin/chown -R snort:snort /var/log/snort'); exec('/usr/sbin/chown -R snort:snort /usr/local/etc/snort'); exec('/usr/sbin/chown -R snort:snort /usr/local/lib/snort'); -- cgit v1.2.3