From 4f68eb83a2b238dc7c5e440ce2c2567aa31cf47d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 11 Oct 2014 16:07:07 +0100 Subject: [PATCH] Fixing tripwire --- install-freedombone.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 0e2e2c8e..5b01fed9 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -4550,15 +4550,17 @@ function intrusion_detection { echo '' echo '' tripwire --init - sed -i 's/SYSLOGREPORTING =true/#SYSLOGREPORTING =false/g' /etc/tripwire/twcfg.txt - sed -i '/# These files change the behavior of the root account/,/}/ s/# *//' /etc/tripwire/twpol.txt - tripwire --update-policy --secure-mode low /etc/tripwire/twpol.txt # make a script for easy resetting of the tripwire echo '#!/bin/sh' > /usr/bin/reset-tripwire echo 'tripwire --update-policy --secure-mode low /etc/tripwire/twpol.txt' >> /usr/bin/reset-tripwire chmod +x /usr/bin/reset-tripwire + reset-tripwire + sed -i 's/SYSLOGREPORTING =true/#SYSLOGREPORTING =false/g' /etc/tripwire/twcfg.txt + sed -i '/# These files change the behavior of the root account/,/}/ s/# *//' /etc/tripwire/twpol.txt + reset-tripwire + echo 'intrusion_detection' >> $COMPLETION_FILE }