Skip to content

Commit

Permalink
Added paths for the dmsetup, fdisk, and lshw commands
Browse files Browse the repository at this point in the history
These hardware related commands - whose locations differ slightly
between distros - are often used by CMDB discovery tools. By adding
them to paths.cf, we make it easy to template out a sudoers file.

Ticket: ENT-12560
Changelog: Title
(cherry picked from commit dd77726)
  • Loading branch information
James Trater authored and nickanderson committed Jan 6, 2025
1 parent 69c5ec3 commit d5662b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/paths.cf
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,12 @@ bundle common paths
"path[df]" string => "/bin/df";
"path[diff]" string => "/usr/bin/diff";
"path[dig]" string => "/usr/bin/dig";
"path[dmsetup]" string => "/usr/sbin/dmsetup";
"path[domainname]" string => "/bin/domainname";
"path[echo]" string => "/bin/echo";
"path[egrep]" string => "/bin/egrep";
"path[ethtool]" string => "/usr/sbin/ethtool";
"path[fdisk]" string => "/usr/sbin/fdisk";
"path[find]" string => "/usr/bin/find";
"path[free]" string => "/usr/bin/free";
"path[getenforce]" string => "/usr/sbin/getenforce";
Expand All @@ -383,6 +385,7 @@ bundle common paths
"path[iptables]" string => "/sbin/iptables";
"path[iptables_save]" string => "/sbin/iptables-save";
"path[ls]" string => "/bin/ls";
"path[lshw]" string => "/usr/sbin/lshw";
"path[lsof]" string => "/usr/sbin/lsof";
"path[netstat]" string => "/bin/netstat";
"path[nologin]" string => "/sbin/nologin";
Expand Down Expand Up @@ -465,10 +468,12 @@ bundle common paths
"path[diff]" string => "/usr/bin/diff";
"path[dig]" string => "/usr/bin/dig";
"path[dmidecode]" string => "/usr/sbin/dmidecode";
"path[dmsetup]" string => "/usr/sbin/dmsetup";
"path[domainname]" string => "/bin/domainname";
"path[echo]" string => "/bin/echo";
"path[egrep]" string => "/bin/egrep";
"path[ethtool]" string => "/sbin/ethtool";
"path[fdisk]" string => "/usr/sbin/fdisk";
"path[find]" string => "/usr/bin/find";
"path[free]" string => "/usr/bin/free";
"path[getenforce]" string => "/usr/sbin/getenforce";
Expand All @@ -478,6 +483,7 @@ bundle common paths
"path[iptables]" string => "/sbin/iptables";
"path[iptables_save]" string => "/sbin/iptables-save";
"path[ls]" string => "/bin/ls";
"path[lshw]" string => "/usr/bin/lshw";
"path[lsof]" string => "/usr/bin/lsof";
"path[netstat]" string => "/bin/netstat";
"path[nologin]" string => "/usr/sbin/nologin";
Expand Down

0 comments on commit d5662b1

Please sign in to comment.