You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installer looks for users and groups only in the local passwd and group file on Unix systems. If the ossec user and group are in LDAP, it fails to detect them and then the install dies when it tries to groupadd and useradd.
I had to hack the adduser.sh script to add getent checks to prevent it from adding the user and group that already exist.
54: if [ `getent group ossec | wc -l` -lt 1 -a ! grep "^${GROUP}" /etc/group > /dev/null 2>&1 ]; then
70: if [ `getent passwd ossec | wc -l` -lt 1 -a ! grep "^${U}" /etc/passwd > /dev/null 2>&1 ]; then
The text was updated successfully, but these errors were encountered:
This should hopefully help in the case of users being in ldap instead
of on the system. The original checks in issue ossec#1278 didn't quite work
for me, so broke them out a bit more.
The installer looks for users and groups only in the local passwd and group file on Unix systems. If the ossec user and group are in LDAP, it fails to detect them and then the install dies when it tries to groupadd and useradd.
I had to hack the adduser.sh script to add getent checks to prevent it from adding the user and group that already exist.
The text was updated successfully, but these errors were encountered: