<?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: i installed splunk forwarder and tried to run below command : ./splunk enable boot-start --accept-license. I got below error: Can't create RC file &amp;quot;/etc/init.d/splunk&amp;quot;: Permission denied. Is there a way that the RC file is created in some different path. in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/i-installed-splunk-forwarder-and-tried-to-run-below-command/m-p/341237#M6895</link>
    <description>&lt;P&gt;You need to run this as root, or sudo run this command, because to modify /etc/init.d, you need admin / root privileges. Additionally you need to specify the run-as user:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk enable boot-start --accept-license  -user splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if you run the above as root, and substitute &lt;EM&gt;splunk&lt;/EM&gt; with the username of the service account you want to Splunk to run as, then you should be ok.&lt;/P&gt;

&lt;P&gt;Additionally, before finalizing this, you should change the ownership of /opt/splunk to the user designated... Do a &lt;STRONG&gt;service splunk stop&lt;/STRONG&gt; and then :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chown -R splunk:splunk /opt/splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After that, you can start splunk via the service command, or sudo to the user you specified and start it that way. Do not start Splunk as root, or any other user. It will screw with permissions and throw errors.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 05:42:54 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2018-03-08T05:42:54Z</dc:date>
    <item>
      <title>i installed splunk forwarder and tried to run below command : ./splunk enable boot-start --accept-license. I got below error: Can't create RC file "/etc/init.d/splunk": Permission denied. Is there a way that the RC file is created in some different path.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/i-installed-splunk-forwarder-and-tried-to-run-below-command/m-p/341236#M6894</link>
      <description>&lt;P&gt;i installed splunk forwarder and tried to run below command : ./splunk enable boot-start --accept-license.&lt;/P&gt;

&lt;P&gt;I got below error:&lt;BR /&gt;
This appears to be your first time running this version of Splunk.&lt;BR /&gt;
Can't create RC file "/etc/init.d/splunk": Permission denied&lt;/P&gt;

&lt;P&gt;Is there a way that the RC file is created in some different path because i don't have access to add/modify any files in /opt or /etc folder.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 05:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/i-installed-splunk-forwarder-and-tried-to-run-below-command/m-p/341236#M6894</guid>
      <dc:creator>raghavjha73</dc:creator>
      <dc:date>2018-03-08T05:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: i installed splunk forwarder and tried to run below command : ./splunk enable boot-start --accept-license. I got below error: Can't create RC file "/etc/init.d/splunk": Permission denied. Is there a way that the RC file is created in some different path.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/i-installed-splunk-forwarder-and-tried-to-run-below-command/m-p/341237#M6895</link>
      <description>&lt;P&gt;You need to run this as root, or sudo run this command, because to modify /etc/init.d, you need admin / root privileges. Additionally you need to specify the run-as user:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk enable boot-start --accept-license  -user splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if you run the above as root, and substitute &lt;EM&gt;splunk&lt;/EM&gt; with the username of the service account you want to Splunk to run as, then you should be ok.&lt;/P&gt;

&lt;P&gt;Additionally, before finalizing this, you should change the ownership of /opt/splunk to the user designated... Do a &lt;STRONG&gt;service splunk stop&lt;/STRONG&gt; and then :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chown -R splunk:splunk /opt/splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After that, you can start splunk via the service command, or sudo to the user you specified and start it that way. Do not start Splunk as root, or any other user. It will screw with permissions and throw errors.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 05:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/i-installed-splunk-forwarder-and-tried-to-run-below-command/m-p/341237#M6895</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2018-03-08T05:42:54Z</dc:date>
    </item>
  </channel>
</rss>

