<?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: Running as non-root and still able to read root logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692944#M115191</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't want to show the actual results but here you can see there are results. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2024-07-11 08-11-05.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31671iAE2910BCD1E8527A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2024-07-11 08-11-05.png" alt="Screenshot from 2024-07-11 08-11-05.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 22:13:06 GMT</pubDate>
    <dc:creator>BlueQ</dc:creator>
    <dc:date>2024-07-10T22:13:06Z</dc:date>
    <item>
      <title>Running as non-root and still able to read root logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692842#M115156</link>
      <description>&lt;P&gt;Bit of a reverse error here, splunk is working when it shouldn't.&lt;/P&gt;&lt;P&gt;I followed these instructions to run Splunk as non-root -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Forwarder/9.2.1/Forwarder/Installleastprivileged" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Forwarder/9.2.1/Forwarder/Installleastprivileged&lt;/A&gt;&lt;/P&gt;&lt;P&gt;systemctl stop splunk&lt;BR /&gt;/opt/splunkforwarder/bin/splunk disable boot-start&lt;BR /&gt;/opt/splunkforwarder/bin/splunk enable boot-start -systemd-managed 1 -user blueq -group blueq&lt;BR /&gt;systemctl start splunk&lt;/P&gt;&lt;P&gt;Splunk is running as this user and the user cannot view /var/log/messages&lt;/P&gt;&lt;P&gt;[root@host1 ~]# ps -ef|grep splunk&lt;BR /&gt;blueq 137095 1 24 14:22 ? 00:00:00 splunkd --under-systemd --systemd-delegate=yes -p 8089 _internal_launch_under_systemd&lt;BR /&gt;blueq 137134 137095 0 14:22 ? 00:00:00 [splunkd pid=137095] splunkd --under-systemd --systemd-delegate=yes -p 8089 _internal_launch_under_systemd [process-runner]&lt;BR /&gt;root 137154 6813 0 14:22 pts/0 00:00:00 grep --color=auto splunk&lt;BR /&gt;&lt;BR /&gt;[root@host1 ~]# ls -l /opt/splunkforwarder/&lt;BR /&gt;total 172&lt;BR /&gt;drwxr-xr-x. 3 blueq blueq 4096 Jun 25 22:11 bin&lt;BR /&gt;drwxr-xr-x. 2 blueq blueq 66 Jun 25 22:11 cmake&lt;BR /&gt;-r--r--r--. 1 blueq blueq 57 Mar 21 09:38 copyright.txt&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;[root@host1 ~]# su - blueq&lt;BR /&gt;Last login: Wed Jul 10 14:24:24 AEST 2024 on pts/0&lt;/P&gt;&lt;P&gt;[blueq@host1 ~]$ ls -l /var/log/messages&lt;BR /&gt;-rw-------. 1 root root 4898581 Jul 10 14:24 /var/log/messages&lt;/P&gt;&lt;P&gt;[blueq@host1 ~]$ cat /var/log/messages&lt;BR /&gt;cat: /var/log/messages: Permission denied&lt;/P&gt;&lt;P&gt;Yet I see no errors in&amp;nbsp;/opt/splunkforwarder/var/log/splunk/splunkd.log and the logs are still uploaded to splunk cloud, why???&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 04:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692842#M115156</guid>
      <dc:creator>BlueQ</dc:creator>
      <dc:date>2024-07-10T04:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Running as non-root and still able to read root logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692849#M115160</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269813"&gt;@BlueQ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm not a Linux expert so I don't knpow how to do, but you have two solutions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;configure ACLs on your servers to permit to not root user to read root files,&lt;/LI&gt;&lt;LI&gt;insert Splunk in the system group to read root logs.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;As I said, you should ask the solution to this requirement to a Linux expert.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 06:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692849#M115160</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-10T06:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Running as non-root and still able to read root logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692869#M115168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269813"&gt;@BlueQ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you search, do you get the results?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=linuxORsomething source=/var/log/messages*&lt;/LI-CODE&gt;&lt;P&gt;on Splunk, pls show us a search result with the /var/log/messages as events please, thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 10:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692869#M115168</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-07-10T10:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Running as non-root and still able to read root logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692944#M115191</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't want to show the actual results but here you can see there are results. Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2024-07-11 08-11-05.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31671iAE2910BCD1E8527A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2024-07-11 08-11-05.png" alt="Screenshot from 2024-07-11 08-11-05.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 22:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692944#M115191</guid>
      <dc:creator>BlueQ</dc:creator>
      <dc:date>2024-07-10T22:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running as non-root and still able to read root logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692945#M115192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The funny part is I have the opposite problem. I haven't given the user access to read /var/log/messages yet it seems like splunk still reads them.&lt;/P&gt;&lt;P&gt;How do I ask a Linux expert specifically? Do you mean on this forum or elsewhere?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 22:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692945#M115192</guid>
      <dc:creator>BlueQ</dc:creator>
      <dc:date>2024-07-10T22:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Running as non-root and still able to read root logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692949#M115193</link>
      <description>&lt;P&gt;Found it.&amp;nbsp;CAP_DAC_READ_SEARCH means splunk can read anything. Now I have to decide if I want to keep this setting.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Installation/Security-issue-Splunk-UF-v9-x-is-re-adding-readall-capability/m-p/649047/highlight/true" target="_blank"&gt;https://community.splunk.com/t5/Installation/Security-issue-Splunk-UF-v9-x-is-re-adding-readall-capability/m-p/649047/highlight/true&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 00:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692949#M115193</guid>
      <dc:creator>BlueQ</dc:creator>
      <dc:date>2024-07-11T00:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Running as non-root and still able to read root logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692963#M115194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269813"&gt;@BlueQ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 05:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Running-as-non-root-and-still-able-to-read-root-logs/m-p/692963#M115194</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-07-11T05:52:36Z</dc:date>
    </item>
  </channel>
</rss>

