Security

How do I define a user role that is able to restart splunk, but is not a full admin?

krwinters11
Path Finder

I am trying to define a user role that is able to restart splunk, but is not a full admin.

Right now, the role inherits from power and user. I have also given it the capability of "restart_splunkd."

This is the error I get when I try to go to the server controls page under settings:

Fail: [HTTP 403] Client is not
authorized to perform requested
action;
https://127.0.0.1:8090/services/server/settings/settings

Details: None

Any suggests on what to add/remove from the role I am creating?
(I say remove because it is inheriting roles that (maybe) prohibit a restart)

0 Karma

jensonthottian
Contributor

Add the below capabilities to custom role:

  1. admin_all_objects Access and modify any object in the system (user objects, search jobs, etc.). (Overrides any limits set in the objects.)
  2. Restart_splunkd Restart Splunk through the server control handler.

Even in inheritance of capabilities we dont have "can't capabilities".

Link for all capabilities :

http://docs.splunk.com/Documentation/Splunk/6.2.4/Security/Rolesandcapabilities

If still not working , can you check splunkd logs.

somesoni2
Revered Legend

As far as I know, you need "admin_all_object" capability to even see option for "Setting->System->Server Control". And if you add that , you're basically admin. Would be interested in knowing if there are any other options.

Any specific reason you want to give a user Restart but not make him/her admin?

0 Karma
Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...