UNIX and Linux commands requiring root privileges for Discovery and Orchestration

These commands require root privileges in Discovery and Orchestration.

The examples here assume that the user name in the credentials is Disco. Substitute the actual user name and ensure that the paths for the commands match the path on the systems.

Note: Sudo commands do not work with private key credentials, because there is no password to supply to the sudo command. A solution is to add the NOPASSWD option to the sudo configuration. For example, you might enter: disco ALL=(root) NOPASSWD:/usr/sbin/dmidecode,/usr/sbin/lsof,/sbin/ifconfig.
Table 1. UNIX and Linux commands requiring root privileges
Command Platform Purpose /etc/sudoers line example Used by
dmidecode All Linux Gathers several pieces of information about the hardware, including the serial number embedded within the motherboard. Disco ALL=(root) /sbin/dmidecode Discovery
lsof All UNIX versions Determines the relationship between processes and the connections being made to the system. Disco ALL=(root) /sbin/lsof Discovery
adb HP-UX Gathers CPU speed and memory. Disco ALL=(root) /usr/bin/adb Discovery
chpasswd All Linux and UNIX versions Changes user passwords. Disco ALL=(root) /etc/chpasswd Orchestration
chage All Linux and UNIX versions Changes the number of days between password changes and the date of the last password change. Disco ALL=(root) /etc/chage Orchestration
oratab All Unix versions Grants read access to the oratab file for locating the Oracle Home and pfile. N/A Discovery
/usr/bin/ps Solaris Lists running process. As an alternative to running with root access, add a proc_owner role. Disco ALL=(root) /usr/bin/ps Discovery
/usr/ucb/ps Solaris Lists running process. As an alternative to running with root access, add a proc_owner role.
Note: The use of the /usr/ucb/ps command is deprecated as of Solaris 11. Because Discovery and Orchestration require the use of this command for all Solaris versions, you must install the ucb utility manually on Solaris 11 systems. For instructions, see KB0564262 .
Disco ALL=(root) /usr/ucb/ps Discovery
fdisk All Linux Gathers the disks and size information on the system. Disco ALL=(root) /usr/bin/fdisk -l Discovery
dmsetup Linux and Solaris Examines a low level volume.
  • Disco ALL=(root) /usr/bin/dmsetup table *
  • Disco ALL=(root) /usr/bin/dmsetup ls
Discovery
multipath All Linux Gathers device mappings for MPIO. Disco ALL=(root) /usr/bin/multipath -ll Discovery
prtvtoc Solaris Reports information about disk partitions. Disco ALL=(root) /usr/bin/prtvtoc Discovery