mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/ossec-server: Fix exit status, add uid/gid info.
Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
c5bed60830
commit
9beffd8789
3 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
OSSEC is an Open Source Host-based Intrusion Detection System that performs log
|
||||
analysis, file integrity checking, policy monitoring, rootkit detection,
|
||||
real-time alerting and active response.
|
||||
|
||||
See README.SLACKWARE for installation instructions.
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
These users and group need to be added:
|
||||
|
||||
groupadd -g 333 ossec
|
||||
useradd -u 333 -g 333 -d /var/ossec -s /bin/false ossec
|
||||
useradd -u 334 -g 333 -d /var/ossec -s /bin/false ossecm
|
||||
useradd -u 335 -g 333 -d /var/ossec -s /bin/false ossecr
|
||||
|
||||
|
||||
You may wish to add these lines to /etc/rc.d/rc.local to start the service:
|
||||
|
||||
if [ -x /etc/rc.d/rc.ossec ]; then
|
||||
|
|
|
@ -62,7 +62,7 @@ USERID_REMOTE=${USERID_REMOTE:-335}
|
|||
GROUPID=${GROUPID:-333}
|
||||
|
||||
if ! grep ^ossec: /etc/group 2>&1 > /dev/null \
|
||||
|| ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then
|
||||
|| ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then
|
||||
echo -e "\n You must have ossec users and a group to run this script\n"
|
||||
fi
|
||||
|
||||
|
@ -86,9 +86,9 @@ if ! grep ^ossecr: /etc/passwd 2>&1 > /dev/null; then
|
|||
fi
|
||||
|
||||
if ! grep ^ossec: /etc/group 2>&1 > /dev/null \
|
||||
|| ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then
|
||||
|| ! grep -E '^(ossec|ossecm|ossecr):' /etc/passwd 2>&1 > /dev/null; then
|
||||
echo
|
||||
exit
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
|
Loading…
Reference in a new issue