<?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 Re: Splunk start does not work with -user Username; how do I run Splunk as a particular user? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159648#M1785</link>
    <description>&lt;P&gt;You will need to configure the boot-start user for splunk.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;$splunk_home/bin/splunk enable boot-start -user userIwantSplunktoRunAS&lt;BR /&gt;
e.g. As root:   $ /opt/splunk/bin/splunk enable boot-start -user splunkdaemon&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;That tell splunk which user to run as when the system starts splunk. Not that when you try and start splunk, you need to su or be logged in as that user. If you run it as root, or a different user, it will wreak havoc on your splunk install by resetting permissions and other potentially destructive things. &lt;/P&gt;</description>
    <pubDate>Sat, 11 Oct 2014 22:58:33 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2014-10-11T22:58:33Z</dc:date>
    <item>
      <title>Splunk start does not work with -user Username; how do I run Splunk as a particular user?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159646#M1783</link>
      <description>&lt;P&gt;I'm trying to start Splunk on an initial install as a user other than root (splrun).&lt;BR /&gt;
I create the user account, set a password, and then installed but did not start Splunk as root&lt;BR /&gt;
and then took the following steps&lt;BR /&gt;
chown -R splrun:splrun /opt/splunk&lt;BR /&gt;
/opt/splunk/bin/splunk enable boot-start --accept-license -user splrun&lt;BR /&gt;
/opt/splunk/bin/splunk start -user splrun .... this failed with a permissions error so I reran chown -R... from above, then reran ..start -user splrun&lt;/P&gt;

&lt;P&gt;At this point the webservice (8000) started but the management service (8089) states&lt;BR /&gt;
"Starting splunk server daemon (splunkd)... Bad Option -u"&lt;BR /&gt;
then eventually states "Timed out waiting for splunkd to start. [FAILED]"&lt;/P&gt;

&lt;P&gt;Running ..splunk status shows&lt;BR /&gt;
splunkd is not running.&lt;BR /&gt;
splunkweb is running (PID: 9044).&lt;/P&gt;

&lt;P&gt;I appreciate any help in learning how to start Splunk as a non-root user.&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 20:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159646#M1783</guid>
      <dc:creator>jsmith39</dc:creator>
      <dc:date>2014-10-10T20:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk start does not work with -user Username; how do I run Splunk as a particular user?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159647#M1784</link>
      <description>&lt;P&gt;We have no -user flag on 'splunk start'.&lt;/P&gt;

&lt;P&gt;Try 'splunk help start'.&lt;/P&gt;

&lt;P&gt;In order to run splunk as a particular user:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;log in as that user and run splunk start&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Ensure SPLUNK_OS_USER in etc/splunk-launch.conf is your desired user, and then start it via init script or directly as that user or as root&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159647#M1784</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2020-09-28T17:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk start does not work with -user Username; how do I run Splunk as a particular user?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159648#M1785</link>
      <description>&lt;P&gt;You will need to configure the boot-start user for splunk.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;$splunk_home/bin/splunk enable boot-start -user userIwantSplunktoRunAS&lt;BR /&gt;
e.g. As root:   $ /opt/splunk/bin/splunk enable boot-start -user splunkdaemon&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;That tell splunk which user to run as when the system starts splunk. Not that when you try and start splunk, you need to su or be logged in as that user. If you run it as root, or a different user, it will wreak havoc on your splunk install by resetting permissions and other potentially destructive things. &lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2014 22:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159648#M1785</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2014-10-11T22:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk start does not work with -user Username; how do I run Splunk as a particular user?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159649#M1786</link>
      <description>&lt;P&gt;after enabling &lt;CODE&gt;boot-start&lt;/CODE&gt; with &lt;CODE&gt;-user&lt;/CODE&gt;, you should not use &lt;CODE&gt;splunk start&lt;/CODE&gt; to start splunk. Instead, you need to use &lt;CODE&gt;service splunk start&lt;/CODE&gt;. The &lt;CODE&gt;boot-start&lt;/CODE&gt; installs a startup service that runs as the non-root user. There is no &lt;CODE&gt;-user&lt;/CODE&gt; option on &lt;CODE&gt;splunk start&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Oct 2014 23:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159649#M1786</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2014-10-11T23:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk start does not work with -user Username; how do I run Splunk as a particular user?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159650#M1787</link>
      <description>&lt;P&gt;Thank you for the insight.&lt;/P&gt;

&lt;P&gt;Followup question.&lt;BR /&gt;
I create a user named splrun on the client machine prior to installing Splunk Enterprise via script.&lt;BR /&gt;
This fails during installation with permission denied issues during the installation.&lt;BR /&gt;
What is the correct method of prepping the delivery location to avoid this problem.&lt;/P&gt;

&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2014 12:39:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Splunk-start-does-not-work-with-user-Username-how-do-I-run/m-p/159650#M1787</guid>
      <dc:creator>jsmith39</dc:creator>
      <dc:date>2014-10-14T12:39:06Z</dc:date>
    </item>
  </channel>
</rss>

