Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec files generate ossec user and group in user space #1165

Closed
cookie33 opened this issue Jun 30, 2017 · 1 comment
Closed

spec files generate ossec user and group in user space #1165

cookie33 opened this issue Jun 30, 2017 · 1 comment

Comments

@cookie33
Copy link

Hi,

The files ossec-hids-local.spec, ossec-hids-agent.spec and ossec-hids-server.spec generate the group and the user.

/usr/sbin/groupadd ossec
/usr/sbin/useradd -d /var/ossec -s /bin/false -g ossec ${USER}

This is now generated in user space. If you have ldap generated users this might and will cause a clash.

Is it not better to use:

/usr/sbin/groupadd --system ossec
/usr/sbin/useradd --system -d /var/ossec -s /bin/false -g ossec ${USER}

This way the ossec group and user are created in system space.

ddpbsd added a commit to ddpbsd/ossec-hids that referenced this issue Jul 15, 2017
@ddpbsd
Copy link
Member

ddpbsd commented Jul 15, 2017

Please test pull request #1199

@ddpbsd ddpbsd closed this as completed Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants