<?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: On what user does splunk start after restarting it from deployment server in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408376#M167882</link>
    <description>&lt;P&gt;It'll be restarted with same user with which it was running before it downloaded app/configuration from DS.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 19:38:32 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-08-14T19:38:32Z</dc:date>
    <item>
      <title>On what user does splunk start after restarting it from deployment server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408375#M167881</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
When we restart splunk forwarder from deployment -server does it start &lt;BR /&gt;
1) based on user defined in boot script OR&lt;BR /&gt;
2) Based on the UserId under which is installed.&lt;/P&gt;

&lt;P&gt;Suppose Splunk is installed under user "splunk" and boot script is defined to start as root user.&lt;/P&gt;

&lt;P&gt;So when Splunk restarted by DS, does it run as root or splunk user .&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408375#M167881</guid>
      <dc:creator>ankithreddy777</dc:creator>
      <dc:date>2018-08-14T19:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: On what user does splunk start after restarting it from deployment server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408376#M167882</link>
      <description>&lt;P&gt;It'll be restarted with same user with which it was running before it downloaded app/configuration from DS.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408376#M167882</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-14T19:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: On what user does splunk start after restarting it from deployment server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408377#M167883</link>
      <description>&lt;P&gt;As per somesoni2's comment (which could be an answer), the process will fork a new process with the same userid to restart Splunk, it cannot change the username it was running as previously unless it's the root user.&lt;/P&gt;

&lt;P&gt;If it was running as root I'm unsure if it will attempt to run as a different user post-restart, that might be worth testing if you have the user setting configured in the splunk-launch.conf file!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 23:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408377#M167883</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-08-14T23:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: On what user does splunk start after restarting it from deployment server</title>
      <link>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408378#M167884</link>
      <description>&lt;P&gt;As per somesoni2's comment the process will fork a new process with the same userid to restart Splunk, it cannot change the username it was running as previously unless it's the root user.&lt;/P&gt;

&lt;P&gt;If it was running as root &lt;EM&gt;and&lt;/EM&gt; you updated /opt/splunk/etc/splunk-launch.conf to have the line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SPLUNK_OS_USER=splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or similar, then it &lt;STRONG&gt;will&lt;/STRONG&gt; restart as the splunk user, however this is an edge case as you would have to have it running as root, then change the file while it's running before the deployment server triggered a restart...&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 01:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/On-what-user-does-splunk-start-after-restarting-it-from/m-p/408378#M167884</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-08-23T01:23:58Z</dc:date>
    </item>
  </channel>
</rss>

