Deployment Architecture

How to upgrade splunk RPM and keep splunk user file permissions?

gfriedmann
Communicator

I am using the RPM package for splunk. I also utilize the "run splunk as splunk user" option.

But there is a problem. I have to install an RPM as root. When i upgrade using the RPM, it stops splunk, upgrades the files, and then restarts splunk as root. After this, the file permissions are all messed up, with newly created files being owned by root.

How do others deal with this? Might it be fine to upgrade an RPM install using the .tgz package?

Tags (3)
0 Karma

gfriedmann
Communicator

Actually, splunk upgrade doesn't auto-start splunk as root.

After running

sudo rpm -U splunk-4.2.2...rpm

Then start splunk as the splunk user like this

 sudo su - splunk -c "splunk start --answer-yes --accept-license --no-prompt"
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...