<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Splunk startup script, start as splunk user in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-startup-script-start-as-splunk-user/m-p/80458#M14103</link>
    <description>&lt;P&gt;Hi, I recently installed the new Splunk Universal Forwarder. I use the built-in bootup script that comes with Splunk, however I want Splunk to start as the splunk user and not root. How do I change that? I know I can add su - splunk in front of the "/opt/splunk/bin/splunk" start --no-prompt. What is best practice here?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk_start() {
  echo Starting Splunk...
  su - splunk "/opt/splunk/bin/splunk" start --no-prompt
  RETVAL=$?
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 13 Apr 2011 14:50:20 GMT</pubDate>
    <dc:creator>joberget</dc:creator>
    <dc:date>2011-04-13T14:50:20Z</dc:date>
    <item>
      <title>Splunk startup script, start as splunk user</title>
      <link>https://community.splunk.com/t5/Security/Splunk-startup-script-start-as-splunk-user/m-p/80458#M14103</link>
      <description>&lt;P&gt;Hi, I recently installed the new Splunk Universal Forwarder. I use the built-in bootup script that comes with Splunk, however I want Splunk to start as the splunk user and not root. How do I change that? I know I can add su - splunk in front of the "/opt/splunk/bin/splunk" start --no-prompt. What is best practice here?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk_start() {
  echo Starting Splunk...
  su - splunk "/opt/splunk/bin/splunk" start --no-prompt
  RETVAL=$?
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-startup-script-start-as-splunk-user/m-p/80458#M14103</guid>
      <dc:creator>joberget</dc:creator>
      <dc:date>2011-04-13T14:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk startup script, start as splunk user</title>
      <link>https://community.splunk.com/t5/Security/Splunk-startup-script-start-as-splunk-user/m-p/80459#M14104</link>
      <description>&lt;P&gt;If you set up the boot script using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk enable boot-start -user splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;instead of just&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk enable boot-start
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the boot script will be created to run as the user specified. I believe that it pretty much just uses &lt;CODE&gt;su - splunk&lt;/CODE&gt; as above though.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2011 20:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-startup-script-start-as-splunk-user/m-p/80459#M14104</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-13T20:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk startup script, start as splunk user</title>
      <link>https://community.splunk.com/t5/Security/Splunk-startup-script-start-as-splunk-user/m-p/80460#M14105</link>
      <description>&lt;P&gt;You also may want to "chown -R splunk:splunk /opt/splunk" while the system is down.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2011 22:37:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-startup-script-start-as-splunk-user/m-p/80460#M14105</guid>
      <dc:creator>gfriedmann</dc:creator>
      <dc:date>2011-06-15T22:37:23Z</dc:date>
    </item>
  </channel>
</rss>

