From b7c9db0b60df171a081978e55a47e8c6e56a2a0f Mon Sep 17 00:00:00 2001 From: Frederic Date: Wed, 14 Sep 2011 12:15:06 +0200 Subject: [PATCH] pamela-scanner.sh: Fix the cron entry during setup: user field was missing --- scanner/pamela-scanner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/pamela-scanner.sh b/scanner/pamela-scanner.sh index 38501b4..ba069d0 100755 --- a/scanner/pamela-scanner.sh +++ b/scanner/pamela-scanner.sh @@ -74,7 +74,7 @@ function register { check_if_root check_if_arpscan_installed echo "Registering pamela in cron: ${PAM_CRON}" - echo "*/2 * * * * [ -x \"${PAM_SCRIPT}\" ] && \"${PAM_SCRIPT}\" -i \"${IF}\" -o \"${OUT}\" -u \"${USER}\" -p \"${PASSWORD}\" -t \"${TRANSLATE}\" | logger -t pamela" > "${PAM_CRON}" + echo "*/2 * * * * root [ -x \"${PAM_SCRIPT}\" ] && \"${PAM_SCRIPT}\" -i \"${IF}\" -o \"${OUT}\" -u \"${USER}\" -p \"${PASSWORD}\" -t \"${TRANSLATE}\" | logger -t pamela" > "${PAM_CRON}" echo "Depending on your version of crond, you might have to restart the cron daemon for the changes to take effect" }