# Default configuration.
SAVE_FORMAT="HTML"
-SAVE_OWNER="nobody.nobody"
+SAVE_OWNER=
SAVE_PERM="u=rw,g=r,o=r"
SEND_FORMAT="plain"
SEND_TO="root"
ARG="$ARG_PLAIN"
fi
call_calamaris "$1" "$ARG" > $3
- chown $SAVE_OWNER $3
- chmod $SAVE_PERM $3
+ [ -n "$SAVE_OWNER" ] || chown $SAVE_OWNER $3
+ [ -n "$SAVE_PERM" ] || chmod $SAVE_PERM $3
fi
# Generate statistics and send them.
PATH=/sbin:/bin:/usr/sbin:/usr/bin
-00 4 * * * root calamaris-croniface daily
-30 4 * * 0 root calamaris-croniface weekly
+00 4 * * * stats calamaris-croniface daily
+30 4 * * 0 stats calamaris-croniface weekly
#SAVE_FORMAT="HTML"
# If reports are saved in http daemons directory, they should have correct
-# permissions and owner, so the daemon can read them. By default user and
-# group are "nobody.nobody" and the permissions are "u=rw,g=r,o=r". You can
-# use any syntax accepted by chown and chmod.
-#SAVE_OWNER="nobody.nobody"
+# permissions and owner, so the daemon can read them. This can be changed
+# only when calamaris is run as root (insecure!)
+
+# By default user and group are not set the permissions are "u=rw,g=r,o=r". You
+# can use any syntax accepted by chown and chmod.
+#SAVE_OWNER="root.http"
#SAVE_PERM="u=rw,g=r,o=r"
# This piece of HTML code is inserted at top of reports generated in HTML