[Pkg-ossec-devel] [SCM] Git repository for pkg-ossec branch, master, updated. f89fb2c00b1a2606035e5cd0e35b4ebe99f049ac
Javier Fernandez-Sanguino
jfs at debian.org
Wed Aug 29 16:31:29 UTC 2012
The following commit has been merged in the master branch:
commit 531e0f1188a7f52b4f580134ff0323714737b4a0
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date: Tue Aug 28 15:05:17 2012 +0200
Use the defined variables for the user and group in ossec
diff --git a/debian/ossec-hids-local.postinst b/debian/ossec-hids-local.postinst
index 83d8da7..06f1a02 100644
--- a/debian/ossec-hids-local.postinst
+++ b/debian/ossec-hids-local.postinst
@@ -55,7 +55,7 @@ case "$1" in
# 5. adjust file and directory permissions
if ! dpkg-statoverride --list ${CONF_FILE} >/dev/null && [ -e ${CONF_FILE} ]
then
- chown ossec:ossec ${CONF_FILE}
+ chown $OSSECUSER:$OSSECGROUP ${CONF_FILE}
chmod 640 ${CONF_FILE}
fi
@@ -67,16 +67,16 @@ case "$1" in
{
cat <<EOF
-queue/alerts ossec:ossec 770
-queue/ossec ossec:ossec 770
-queue/fts ossec:ossec 750
-queue/syscheck ossec:ossec 750
-queue/rootcheck ossec:ossec 750
-queue/diff ossec:ossec 750
-queue/agent-info ossec:ossec 755
-queue/rids ossec:ossec 755
-queue/agentless ossec:ossec 755
-stats ossec:ossec 750
+queue/alerts $OSSECUSER:$OSSECGROUP 770
+queue/ossec $OSSECUSER:$OSSECGROUP 770
+queue/fts $OSSECUSER:$OSSECGROUP 750
+queue/syscheck $OSSECUSER:$OSSECGROUP 750
+queue/rootcheck $OSSECUSER:$OSSECGROUP 750
+queue/diff $OSSECUSER:$OSSECGROUP 750
+queue/agent-info $OSSECUSER:$OSSECGROUP 755
+queue/rids $OSSECUSER:$OSSECGROUP 755
+queue/agentless $OSSECUSER:$OSSECGROUP 755
+stats $OSSECUSER:$OSSECGROUP 750
EOF
} | while read dir owner mode; do
if ! echo "$dir" | grep -q "^/" ; then
--
Git repository for pkg-ossec
More information about the Pkg-ossec-devel
mailing list