aboutsummaryrefslogtreecommitdiffstats
path: root/main/snort/snort.confd
diff options
context:
space:
mode:
Diffstat (limited to 'main/snort/snort.confd')
-rw-r--r--main/snort/snort.confd7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/snort/snort.confd b/main/snort/snort.confd
index d4d240ac96..83bc5eadb3 100644
--- a/main/snort/snort.confd
+++ b/main/snort/snort.confd
@@ -4,7 +4,7 @@
IFACE=eth0
# Make sure this matches your IFACE
-PIDFILE=/var/run/snort_$IFACE.pid
+PIDFILE=/var/lib/snort/snort_$IFACE.pid
# You probably don't want to change this, but in case you do
LOGDIR="/var/log/snort"
@@ -12,5 +12,8 @@ LOGDIR="/var/log/snort"
# Probably not this either
CONF=/etc/snort/snort.conf
+# Allow log files to be read by members of snort group (default is 077).
+UMASK=037
+
# This pulls in the options above
-SNORT_OPTS="-D -u snort -i $IFACE -l $LOGDIR -c $CONF"
+SNORT_OPTS="-D -u snort -i $IFACE -l $LOGDIR -c $CONF -m $UMASK"