<?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 User Getting Permission Denied In Linux in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624018#M14777</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I heard that it's frowned upon to run Splunk on the root so I created a Splunk User. I can't figure out why I can't run Splunk start, stop, and status without getting permission denied. I've changed the ownership to for /opt/splunk to the user "Splunk" that I've created because I was told it was bad to run Splunk as root.&amp;nbsp; When working in my "Splunk" user account I continuously get this error whenever trying to config enable boot-start splunk.&lt;/P&gt;&lt;P&gt;oot@cluster-master:/opt# ./splunk/bin/splunk enable boot-start -systemd-managed 1 -user splunk&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/splunk"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/introspection"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/watchdog"&lt;BR /&gt;Systemd unit file installed at /etc/systemd/system/Splunkd.service.&lt;BR /&gt;Configured as systemd managed service.&lt;BR /&gt;root@cluster-master:/opt# su splunk&lt;BR /&gt;splunk@cluster-master:/opt$ ./splunk/bin/splunk status&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/splunk"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/introspection"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/watchdog"&lt;BR /&gt;Pid file "/opt/splunk/var/run/splunk/splunkd.pid" unreadable.: Permission denied&lt;BR /&gt;splunkd.pid file is unreadable.&lt;BR /&gt;Pid file "/opt/splunk/var/run/splunk/splunkd.pid" unreadable.: Permission denied&lt;BR /&gt;splunk@cluster-master:/opt$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 15:15:49 GMT</pubDate>
    <dc:creator>OgoSplunk</dc:creator>
    <dc:date>2022-12-12T15:15:49Z</dc:date>
    <item>
      <title>Splunk User Getting Permission Denied In Linux</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624018#M14777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I heard that it's frowned upon to run Splunk on the root so I created a Splunk User. I can't figure out why I can't run Splunk start, stop, and status without getting permission denied. I've changed the ownership to for /opt/splunk to the user "Splunk" that I've created because I was told it was bad to run Splunk as root.&amp;nbsp; When working in my "Splunk" user account I continuously get this error whenever trying to config enable boot-start splunk.&lt;/P&gt;&lt;P&gt;oot@cluster-master:/opt# ./splunk/bin/splunk enable boot-start -systemd-managed 1 -user splunk&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/splunk"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/introspection"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/watchdog"&lt;BR /&gt;Systemd unit file installed at /etc/systemd/system/Splunkd.service.&lt;BR /&gt;Configured as systemd managed service.&lt;BR /&gt;root@cluster-master:/opt# su splunk&lt;BR /&gt;splunk@cluster-master:/opt$ ./splunk/bin/splunk status&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/splunk"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/introspection"&lt;BR /&gt;&lt;BR /&gt;Warning: cannot create "/opt/splunk/var/log/watchdog"&lt;BR /&gt;Pid file "/opt/splunk/var/run/splunk/splunkd.pid" unreadable.: Permission denied&lt;BR /&gt;splunkd.pid file is unreadable.&lt;BR /&gt;Pid file "/opt/splunk/var/run/splunk/splunkd.pid" unreadable.: Permission denied&lt;BR /&gt;splunk@cluster-master:/opt$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 15:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624018#M14777</guid>
      <dc:creator>OgoSplunk</dc:creator>
      <dc:date>2022-12-12T15:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk User Getting Permission Denied In Linux</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624032#M14780</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;enable boot-start&lt;/FONT&gt; command must be run as root because it modifies system files. You either can switch to the root user to run the command or use &lt;FONT face="courier new,courier"&gt;sudo&lt;/FONT&gt;. See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.2/Admin/ConfigureSplunktostartatboottime#Enable_boot-start_on_.2Anix_platforms" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.2/Admin/ConfigureSplunktostartatboottime#Enable_boot-start_on_.2Anix_platforms&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:07:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624032#M14780</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-12T16:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk User Getting Permission Denied In Linux</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624036#M14782</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;Step 6 wants me to edit a file using nano or any text editor but I don't see the file there /splunk&lt;SPAN&gt;/etc/init.d/splunk could you help me out with this last part?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624036#M14782</guid>
      <dc:creator>OgoSplunk</dc:creator>
      <dc:date>2022-12-12T16:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk User Getting Permission Denied In Linux</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624037#M14783</link>
      <description>&lt;P&gt;That file is created in Step 3, but only on systems not running systemd.&amp;nbsp; However, given the output in the OP, I believe you should be following the steps in the "Enable boot-start on machines that run systemd" section.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:32:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624037#M14783</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-12-12T16:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk User Getting Permission Denied In Linux</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624040#M14784</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;you're the GOAT( GREATEST OF ALL TIME). I'll pass on the Karma now&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-User-Getting-Permission-Denied-In-Linux/m-p/624040#M14784</guid>
      <dc:creator>OgoSplunk</dc:creator>
      <dc:date>2022-12-12T16:43:55Z</dc:date>
    </item>
  </channel>
</rss>

