<?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: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config in Security</title>
    <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207988#M13577</link>
    <description>&lt;P&gt;@jkat54 is correct on this one, but I wouldn't test in production if you are unsure.. Best case scenario here is you get a free beer &lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2016 23:59:05 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2016-12-29T23:59:05Z</dc:date>
    <item>
      <title>Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207984#M13573</link>
      <description>&lt;P&gt;Hi All, Can any one guide me on how to fix this issue, after changing the Root user as non Root user "su splunk" I am getting an error in splunkd.log, I am stuck with this in my prod environment.&lt;/P&gt;

&lt;P&gt;I have followed the below steps to run as noon root user.&lt;/P&gt;

&lt;P&gt;sudo su - &lt;BR /&gt;
cd /opt/splunk/bin&lt;BR /&gt;
./splunk stop &lt;BR /&gt;
chown -R splunk:splunk /opt/splunk&lt;BR /&gt;
su splunk &lt;BR /&gt;
cd /opt/splunk/bin&lt;BR /&gt;
./splunk start &lt;/P&gt;

&lt;P&gt;After the change, I could the splunk started with some errors and it continued to be running with splunk user but when check in the splunkd .log I can see Error message &lt;/P&gt;

&lt;P&gt;Splunkd .log error info &lt;BR /&gt;
12-28-2016 13:12:28.366 -0500 ERROR DispatchReaper - Failed to reap /splunk_search_pool/var/run/splunk/dispatch/rt_scheduler_&lt;EM&gt;hflgg900&lt;/EM&gt;&lt;EM&gt;search&lt;/EM&gt;&lt;EM&gt;RMD545c376f36cb02e56_at_1464419460_1224.404406 because of Permission denied&lt;BR /&gt;
12-28-2016 13:12:28.366 -0500 ERROR DispatchReaper - Failed to reap /splunk_search_pool/var/run/splunk/dispatch/rt_scheduler&lt;/EM&gt;&lt;EM&gt;hflgg900&lt;/EM&gt;&lt;EM&gt;search&lt;/EM&gt;_RMD545c376f36cb02e56_at_1464419460_1224.446500 because of Permission denied&lt;BR /&gt;
12-28-2016 13:12:29.697 -0500 ERROR ConfObjectManagerDB - Cannot initialize: /splunk_search_pool/etc/apps/sideview_utils/metadata/local.meta: Permission denied&lt;BR /&gt;
12-28-2016 13:12:30.290 -0500 ERROR ConfObjectManagerDB - Cannot initialize: /splunk_search_pool/etc/apps/learned/metadata/local.meta: Permission denied&lt;BR /&gt;
12-28-2016 13:12:30.291 -0500 ERROR ConfObjectManagerDB - Cannot initialize: /splunk_search_pool/etc/apps/user-prefs/metadata/local.meta: Permission denied&lt;BR /&gt;
12-28-2016 13:12:31.813 -0500 ERROR ConfObjectManagerDB - Cannot initialize: /splunk_search_pool/etc/apps/search/metadata/local.meta: Permission denied&lt;BR /&gt;
12-28-2016 13:12:33.887 -0500 ERROR ConfObjectManagerDB - Cannot initialize: /splunk_search_pool/etc/apps/sideview_utils/metadata/local.meta: Permission denied&lt;/P&gt;

&lt;P&gt;Kindly guide on how to fix this issue. &lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207984#M13573</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T12:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207985#M13574</link>
      <description>&lt;P&gt;Try this chown command instead&lt;/P&gt;

&lt;P&gt;chown -Rf splunk. /opt/splunk&lt;/P&gt;

&lt;P&gt;Same other steps though.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 03:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207985#M13574</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-12-29T03:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207986#M13575</link>
      <description>&lt;P&gt;thanks Jkat54, but now I am little bit concern on executing  commands as it is in Production environment. &lt;BR /&gt;
By doing it force fully will it fix the issue.&lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 05:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207986#M13575</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-12-29T05:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207987#M13576</link>
      <description>&lt;P&gt;If out doesn't then ill owe you a beer.&lt;/P&gt;

&lt;P&gt;That's the process I follow every time.  Only way it could be different is if for some reason the file system they are on are read only or otherwise not write able by root.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 23:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207987#M13576</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-12-29T23:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207988#M13577</link>
      <description>&lt;P&gt;@jkat54 is correct on this one, but I wouldn't test in production if you are unsure.. Best case scenario here is you get a free beer &lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 23:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207988#M13577</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2016-12-29T23:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207989#M13578</link>
      <description>&lt;P&gt;Hey Jkat54, thanks for your input but I have restart the splunk with root user as other splunk instance is using the same user id and now I could see the is no permission denied error as I am using the root user id over splunk folder.&lt;/P&gt;

&lt;P&gt;But anyway these are the steps should be followed to change splunk from root user id to non root id, i.e.  run &lt;STRONG&gt;splunk with splunk user id&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;1) sudo su -&lt;BR /&gt;
2) with root user id stop the splunk service&lt;BR /&gt;
3) With root user id change the permission of the splunk folder to use splunk user id&lt;BR /&gt;
     chown -R splunk:splunk /opt/splunk&lt;BR /&gt;
4) Add this stanza " SPLUNK_OS_USER=splunk" in /opt/splunk/etc/splunk-launch.conf and save it. &lt;BR /&gt;
5) switch to splunk user id using su splunk&lt;BR /&gt;
6) Try to start the splunk using splunk user id.&lt;BR /&gt;
7) check the splunk process using which id by using command  ps -ef | grep splunkd &lt;/P&gt;

&lt;P&gt;Note:  If you see any permission problem try to identify the folder which is having permission issue by going to the folder,check for the folder permission by using &lt;STRONG&gt;ls -ll&lt;/STRONG&gt; command. If you find that particular folder is used by root change it splunk to that folder alone.  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207989#M13578</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T12:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207990#M13579</link>
      <description>&lt;P&gt;9 times out of 10, you should use this command as root instead of just editing splunk-launch.conf&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/bin/splunk enable boot-start -user [username]&lt;/P&gt;

&lt;P&gt;Where [username] = whatever linux user name you've decided to run splunk as.&lt;/P&gt;

&lt;P&gt;And I stand by 'chown -Rf splunk. /path/to/splunk' versus chown -R&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 03:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207990#M13579</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-01-03T03:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207991#M13580</link>
      <description>&lt;P&gt;Also it's a huge security risk and against core best practices to run Splunk as root.  You should stop doing that ASAP.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 03:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207991#M13580</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-01-03T03:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Facing issue after changing the Root user as non Root user in /opt/splunk folder on shard search head with pooling config</title>
      <link>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207992#M13581</link>
      <description>&lt;P&gt;thanks Jkat for your inputs, anyway I agree with you to you and I know its very risk to run splunk as root,  but need to get an approval to change this in prod.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 11:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Facing-issue-after-changing-the-Root-user-as-non-Root-user-in/m-p/207992#M13581</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-01-03T11:36:47Z</dc:date>
    </item>
  </channel>
</rss>

