<?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: Splunk needs a shell? in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568043#M15617</link>
    <description>&lt;P&gt;I think it depends on how you manage your environment. We applied this modification only on a subset of client machines (having UF installed) because the side effect is that you are not able anymore to do "su - splunk".&lt;/P&gt;&lt;P&gt;On a UF it could be acceptable, mainly because you deploy the apps with the Splunk Deployment Server, and because to restart the UF if needed you can leverage on init or systemd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, if you are on a Splunk server (having Splunk Enterprise installed), it is usually necessary to become splunk user to modify configuration files, run CLI commands etc... Of course you can also manage it adding requested commands in sudoers file, but it could take time to define them all, and using wildcards on sudoers file it's not the best choice in term of security. This obviously applies unless you are not root on that machine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 13:52:41 GMT</pubDate>
    <dc:creator>edoardo_vicendo</dc:creator>
    <dc:date>2021-09-22T13:52:41Z</dc:date>
    <item>
      <title>Splunk needs a shell?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/538352#M12074</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just noticed when Splunk UF installs it creates a user "splunk" with a login shell /bin/bash in /etc/passwd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;e.g.&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;splunk:1007:/bin/bash&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is that needed? Can I switch it to a nologin? Anyone familiar with the impact of doing that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 22:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/538352#M12074</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2021-02-02T22:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk needs a shell?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568017#M15615</link>
      <description>&lt;P&gt;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:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568017#M15615</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-09-22T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk needs a shell?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568022#M15616</link>
      <description>&lt;P&gt;Personally I prefer to do it just like this. Disable login for splunk user w/o no real shell. And I do the same for both UF and other servers (like indexers, SHs etc.). When it's needed to run something on this user then use just sudo with used shell.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 12:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568022#M15616</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-09-22T12:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk needs a shell?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568043#M15617</link>
      <description>&lt;P&gt;I think it depends on how you manage your environment. We applied this modification only on a subset of client machines (having UF installed) because the side effect is that you are not able anymore to do "su - splunk".&lt;/P&gt;&lt;P&gt;On a UF it could be acceptable, mainly because you deploy the apps with the Splunk Deployment Server, and because to restart the UF if needed you can leverage on init or systemd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, if you are on a Splunk server (having Splunk Enterprise installed), it is usually necessary to become splunk user to modify configuration files, run CLI commands etc... Of course you can also manage it adding requested commands in sudoers file, but it could take time to define them all, and using wildcards on sudoers file it's not the best choice in term of security. This obviously applies unless you are not root on that machine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 13:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568043#M15617</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-09-22T13:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk needs a shell?</title>
      <link>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568126#M15619</link>
      <description>You could do sudo -u splunk /bin/bash to get shell and after that works (almost) like after su splunk (w/o - ).&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Sep 2021 18:47:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-needs-a-shell/m-p/568126#M15619</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-09-22T18:47:32Z</dc:date>
    </item>
  </channel>
</rss>

