Hi everyone,
I created a script to install the splunkforwarder on the clients.
The script is called on the main indexer and manages all the clients, but I'm logged in using ssh as root, so:
root@x.x.x.x
During the execution of the script, I'm creating a new user "splunk":
adduser splunk
and I assign the owner permissions of Splunk at the user:
chown -hR splunk /opt/splunk
Next I stop splunk and I do:
sudo -i -u splunk
To access as the new user and I restart Splunk.
Executing the command whoami , I'm still running Splunk as root. I have tried to execute all the same commands manually, from the terminal, and they were correctly working.
I think is there some trouble changing the user, so in the last comment above.
What can I do?
Let me know, thank you
... View more