From 612d5d31a66d33185eb150ba9107d641930c5332 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 10 Nov 2011 19:31:01 +0000 Subject: Run snort as root user in pfSense this does not change much and allows to reload snort rather than stop start it. --- config/snort/snort_alerts.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/snort/snort_alerts.php') diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php index 06b3637a..53b9e3a2 100644 --- a/config/snort/snort_alerts.php +++ b/config/snort/snort_alerts.php @@ -92,7 +92,8 @@ if ($_GET['action'] == "clear" || $_POST['clear']) conf_mount_rw(); @file_put_contents("/var/log/snort/alert", ""); post_delete_logs(); - mwexec('/usr/sbin/chown snort:snort /var/log/snort/*', true); + /* XXX: This is needed is snort is run as snort user */ + //mwexec('/usr/sbin/chown snort:snort /var/log/snort/*', true); mwexec('/bin/chmod 660 /var/log/snort/*', true); mwexec('/usr/bin/killall -HUP snort', true); conf_mount_ro(); -- cgit v1.2.3