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

Allow splunk to run as a non-root user on RedHat #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

optiz0r
Copy link

@optiz0r optiz0r commented Jan 14, 2016

Splunk's packages expect the search head and indexer at least to run as the "splunk" user rather than root, and on machines that don't need to read protected log files, this is preferable for security. This pull request adds support for running Splunk as a user other than root on RedHat systems.

The init.pp and params.pp files are updated with user and group variables, and any hardcoded references to the root user have been replaced with these variables. A "sysconfig" file has been added to pass the desired user through to the RedHat init script, and the init script updated to run the splunk commands as the desired user using su.

The default user/group is root for backward compatibility, so this should be a noop when merged in. Since I don't have any Debian systems I've not updated the Debian init scripts as I won't be able to test.

@optiz0r optiz0r mentioned this pull request Jan 19, 2016
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

Successfully merging this pull request may close these issues.

1 participant