<?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 User for Remote UNIX - what permissions? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261227#M34539</link>
    <description>&lt;P&gt;Has anyone done any testing on the level of permission that the user requires in standard Linux Repo, UNIX versions?&lt;/P&gt;
&lt;P&gt;The documentation states: "A user with permission to connect and run the required commands" which is kind of obvious, and I can see that it's a challenge for different UNIX/Linux to try and define it from a standard view.&lt;/P&gt;
&lt;P&gt;Hence my question?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 10:43:12 GMT</pubDate>
    <dc:creator>gchastne</dc:creator>
    <dc:date>2024-11-12T10:43:12Z</dc:date>
    <item>
      <title>User for Remote UNIX - what permissions?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261227#M34539</link>
      <description>&lt;P&gt;Has anyone done any testing on the level of permission that the user requires in standard Linux Repo, UNIX versions?&lt;/P&gt;
&lt;P&gt;The documentation states: "A user with permission to connect and run the required commands" which is kind of obvious, and I can see that it's a challenge for different UNIX/Linux to try and define it from a standard view.&lt;/P&gt;
&lt;P&gt;Hence my question?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 10:43:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261227#M34539</guid>
      <dc:creator>gchastne</dc:creator>
      <dc:date>2024-11-12T10:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: User for Remote UNIX - what permissions?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261235#M34540</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/52253"&gt;@gchastne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;It's better to have a root user permissions to avoid future errors.&lt;/LI&gt;&lt;LI&gt;Sudo or Su to execute the commands.&lt;/LI&gt;&lt;LI&gt;It's recommended in both scenarios either for Extensions and OA Deployments.&lt;/LI&gt;&lt;LI&gt;If you're referring different technologies monitoring through Hub via extension it depends on the user permissions required if a dedicated user will be created with different permissions for example &lt;A href="https://www.dynatrace.com/hub/detail/oracle-database/" target="_self"&gt;Oracle DB monitoring&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Regarding the remote Unix monitoring:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A user with permission to connect and run the required commands&lt;/LI&gt;&lt;LI&gt;Either a valid password or key for authentication&lt;UL&gt;&lt;LI&gt;Note: Kerberos authentication (e.g. Centrify) is not supported for password authentication. In these cases using a certificate is recommended.&lt;/LI&gt;&lt;LI&gt;for full info refer to&amp;nbsp;&lt;A href="https://www.dynatrace.com/hub/detail/remote-unix-monitoring-20/?query=remote+linux&amp;amp;filter=all" target="_blank"&gt;https://www.dynatrace.com/hub/detail/remote-unix-monitoring-20/?query=remote+linux&amp;amp;filter=all&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;KR,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 18:14:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261235#M34540</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-10-31T18:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: User for Remote UNIX - what permissions?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261236#M34541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/52253"&gt;@gchastne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;As per the actual use case and monitoring requirements, It's recommended to refer to the related documentations and published info through the hub as some customers are sticking to the official publications as a reference to document each activity during the implementation.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hoping it adds value.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 18:22:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261236#M34541</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-10-31T18:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: User for Remote UNIX - what permissions?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261251#M34546</link>
      <description>&lt;P&gt;I'm trying to bridge a gap in the documentation.&lt;/P&gt;&lt;P&gt;Currently all the hub says is: "&lt;SPAN&gt;A user with permission to connect and run the required commands"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and then gives a list of commands that the extension runs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the spirit of least privilege the user that we use should only be a special user if it needs to be.&lt;/P&gt;&lt;P&gt;From my reading the Remote UNIX commands on a Debian Linux box don't require su, so could get away with a normal user. Hence I'm reaching out to the community to see if others have validated that situation and/or extended that understanding to the broader UNIX base where the permissoins models are similar but not the same.&lt;/P&gt;&lt;H3&gt;Debian Based Linux (Generic Linux)&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;vmstat - does not need any special user rights on RedHat&lt;/LI&gt;&lt;LI&gt;w - does not generally require su&lt;/LI&gt;&lt;LI&gt;df - does not generally require su&lt;/LI&gt;&lt;LI&gt;cat - does not generally require su&lt;/LI&gt;&lt;LI&gt;top - does not generally require su&lt;/LI&gt;&lt;LI&gt;pgrep - does not generally require su&lt;/LI&gt;&lt;LI&gt;iostat - does not generally require su&lt;UL&gt;&lt;LI&gt;for Red Hat Enterprise Linux systems you may need to install the sysstat package to collect disk IO metrics. No alternatives that exist by default were found.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;ip or netstat - sometimes requires su, but those times are for configuration changes, but maybe...&lt;UL&gt;&lt;LI&gt;older OSs don't have required stats in 'ip' command and will 'fall back' to netstat&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 01 Nov 2024 07:32:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261251#M34546</guid>
      <dc:creator>gchastne</dc:creator>
      <dc:date>2024-11-01T07:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: User for Remote UNIX - what permissions?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261254#M34547</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/52253"&gt;@gchastne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you detailed explanation, agree with you.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 08:41:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261254#M34547</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-11-01T08:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: User for Remote UNIX - what permissions?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261259#M34548</link>
      <description>&lt;P&gt;as the product base for example in Debian there's a list of commands that's being used by the extension to monitor it remotely as the following figure, so you can grant the user to only has permissions to run these commands&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1730453522354.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24328iBD87CF8FAFB129A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MostafaHussein_0-1730453522354.png" alt="MostafaHussein_0-1730453522354.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so you've to grant permission to this user group in `/etc/sudoers` as the below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%monitoring_group ALL=(ALL) NOPASSWD: /usr/bin/vmstat
%monitoring_group ALL=(ALL) NOPASSWD: /usr/bin/w
%monitoring_group ALL=(ALL) NOPASSWD: /usr/bin/df
%monitoring_group ALL=(ALL) NOPASSWD: /usr/bin/cat
%monitoring_group ALL=(ALL) NOPASSWD: /usr/bin/top
%monitoring_group ALL=(ALL) NOPASSWD: /usr/bin/pgrep
%monitoring_group ALL=(ALL) NOPASSWD: /usr/bin/iostat&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or you can make some exercise to make a sudoer user that has all permissions granted in sandbox linux (like Centos) and create configuration in dynatrace to this sandbox vm and use this user, once monitoring is successfully let it run for 1 - 2 hours then back to it and check this file to track footprint of extension to know what's the activities and commands has been executed by this user `cat /va/log/auth.log` then start track it line by line to know what's the exact permissions need to be granted to commands or directories in specific.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_2-1730454646776.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24330i388A740C8EF4D258/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MostafaHussein_2-1730454646776.png" alt="MostafaHussein_2-1730454646776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;BR /&gt;Mostafa Hussein.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 09:51:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261259#M34548</guid>
      <dc:creator>MostafaHussein</dc:creator>
      <dc:date>2024-11-01T09:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: User for Remote UNIX - what permissions?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261583#M34571</link>
      <description>&lt;P&gt;I will add a note to the Hub tile on this. As a security best-practice we advise against using the root user or a user with sudo priviledges. During development of this extension we made a point to not use any commands that require such privileges and so using a root/sudo user is an unnecessary risk.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:26:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/User-for-Remote-UNIX-what-permissions/m-p/261583#M34571</guid>
      <dc:creator>JamesKitson</dc:creator>
      <dc:date>2024-11-05T16:26:26Z</dc:date>
    </item>
  </channel>
</rss>

