aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-04-08 15:46:13 +1200
committerthompsa <andy@fud.org.nz>2010-04-08 15:46:13 +1200
commitbd635a0d1336e21b1940452e594b44df5f90915a (patch)
tree3bc1cd5595deee83c4057ec99cb2bc982b265274
parent7b1f60f4e1420aaf5038a945b5997f1b4d4d3d29 (diff)
downloadpfsense-packages-bd635a0d1336e21b1940452e594b44df5f90915a.tar.gz
pfsense-packages-bd635a0d1336e21b1940452e594b44df5f90915a.tar.bz2
pfsense-packages-bd635a0d1336e21b1940452e594b44df5f90915a.zip
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.
-rw-r--r--config/snort/snort.inc4
1 files changed, 2 insertions, 2 deletions
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');