<?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 Security Concern:  Does Splunk Need A Shell in Security</title>
    <link>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/22168#M747</link>
    <description>&lt;P&gt;I was wondering if it is really necessary for the Splunk account to have a shell (/bin/bash)?  I have set up a couple of test instances with the the splunk account set to nologin (/sbin/nologin) and have not noticed any impact.  It is generally a best practice to not give a shell unless it is really needed and it would also be really nice to easily exclude this as a non-interactive account to our auditors.   Does anyone know of a specific reason that a shell is required?  I do not have any external scripts running on my test machines and that is the only reason I could think of for having a shell.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2011 03:20:43 GMT</pubDate>
    <dc:creator>imarks004</dc:creator>
    <dc:date>2011-01-07T03:20:43Z</dc:date>
    <item>
      <title>Security Concern:  Does Splunk Need A Shell</title>
      <link>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/22168#M747</link>
      <description>&lt;P&gt;I was wondering if it is really necessary for the Splunk account to have a shell (/bin/bash)?  I have set up a couple of test instances with the the splunk account set to nologin (/sbin/nologin) and have not noticed any impact.  It is generally a best practice to not give a shell unless it is really needed and it would also be really nice to easily exclude this as a non-interactive account to our auditors.   Does anyone know of a specific reason that a shell is required?  I do not have any external scripts running on my test machines and that is the only reason I could think of for having a shell.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2011 03:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/22168#M747</guid>
      <dc:creator>imarks004</dc:creator>
      <dc:date>2011-01-07T03:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Security Concern:  Does Splunk Need A Shell</title>
      <link>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/22169#M748</link>
      <description>&lt;P&gt;Generally it is the case that Splunk does not need a shell or terminal, that's right.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2011 06:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/22169#M748</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-01-07T06:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Security Concern:  Does Splunk Need A Shell</title>
      <link>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/22170#M749</link>
      <description>&lt;P&gt;Actually the command &lt;CODE&gt;enable boot-start -user splunk&lt;/CODE&gt; requires a valid shell for the splunk user (the splunk process attempts to run &lt;CODE&gt;su&lt;/CODE&gt;).&lt;BR /&gt;
A workaround is to run &lt;CODE&gt;enable boot-start&lt;/CODE&gt; and then to add to the file &lt;CODE&gt;$SPLUNK_HOME/etc/splunk-launch.conf&lt;/CODE&gt; (splunk forwarder 6.1.1)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SPLUNK_OS_USER=splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;note: this &lt;STRONG&gt;may&lt;/STRONG&gt; prevent some functions from the forwarder requiring &lt;CODE&gt;su&lt;/CODE&gt; or a valid shell (I don't know splunk enough to judge), run at your own risk.&lt;/P&gt;

&lt;P&gt;See also: &lt;A href="http://installingcats.com/2013/07/30/splunk-account-currently-not-available-boot-start/"&gt;http://installingcats.com/2013/07/30/splunk-account-currently-not-available-boot-start/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 21:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/22170#M749</guid>
      <dc:creator>tfpblanchard</dc:creator>
      <dc:date>2014-06-26T21:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Security Concern:  Does Splunk Need A Shell</title>
      <link>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/568016#M15614</link>
      <description>&lt;P&gt;Yes I confirm, as of today on a CentOS 6 server we tested to modify the shell for splunk user from /bin/bash to /sbin/nologin&lt;/P&gt;&lt;P&gt;On this server it is running the Splunk Universal Forwarder.&lt;/P&gt;&lt;P&gt;After having modified the /etc/passwd file and restarted the Splunk Universal Forwarder it is still working, as well as the scripts directly launched by it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#to modify the shell
usermod -s /sbin/nologin splunk

#to restart the Universal Forwarder
/etc/init.d/splunk restart&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 12:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Security-Concern-Does-Splunk-Need-A-Shell/m-p/568016#M15614</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-09-22T12:13:58Z</dc:date>
    </item>
  </channel>
</rss>

