1 custom menu options for non-root users, 2 configuring sudo support – HP Insight Cluster Management Utility User Manual
Page 140
Table 4 Operational HP Insight CMU GUI features available by default for non-root users (continued)
user (requires sudo)
Cloning (Deploy Image)
user (requires sudo)
Autoinstall (kickstart|autoyast|preseed)
user (requires sudo)
Update
→Get Nodes Static Info
user (requires sudo)
Update
→Install CMU Monitoring Client
root
Update
→Rescan MAC
user (requires sudo)
Insight
→Show BIOS Settings
user (requires sudo)
Insight
→Show BIOS Version
user (requires sudo)
Insight
→Upgrade Firmware
user
Any configured HP Insight CMU custom menu options. See
options for non-root users” (page 140)
8.1.1 Custom menu options for non-root users
If any HP Insight CMU custom menu options are configured in the /opt/cmu/etc/
cmu_custom_menu
file, then they can be invoked on the HP Insight CMU management node as
the non-root user who is logged into the GUI. If the custom menu command requires root privilege,
then the command line must include sudo support.
If the keyword CMU_SUDO is included in a custom menu command and the command is invoked
by a non-root user from the GUI, then the keyword is automatically replaced with the configured
value for CMU_SUDO from the /opt/cmu/etc/cmuserver.conf file. If a custom menu command
containing the CMU_SUDO keyword is invoked by a root user in the HP Insight CMU GUI, then this
keyword is removed from the command line before it is executed.
8.1.2 Configuring sudo support
shows that many of the Remote Management Commands in HP Insight CMU
require root privileges to operate. You can enable sudo support in HP Insight CMU for these
features in two steps:
1.
Configure CMU_SUDO with the appropriate path for the sudo command in /opt/cmu/etc/
cmuserver.conf
. For example, configure CMU_SUDO=/usr/bin/sudo in /opt/cmu/
etc/cmuserver.conf
. When this is done, you must restart HP Insight CMU with
/etc/init.d/cmu restart
. If CMU_SUDO is not configured and a non-root user attempts
to launch a privileged command, the command is launched as the non-root login user and it
will fail to execute.
2.
Configure sudo privileges for each HP Insight CMU feature and for each non-root user in the
/etc/sudoers
file on the HP Insight CMU management node. For more details on how to
do this, including examples, see
Disclaimer: The /etc/sudoers file contains its own documentation which supersedes this
document. The instructions here are only meant as a sample guide for configuring sudo privileges
on HP Insight CMU commands.
To configure sudo privileges for HP Insight CMU commands to specific users, edit the /etc/
sudoers
file (which is typically done with the visudo command) and add the appropriate HP
Insight CMU commands to each user entry.
lists the HP Insight CMU command that performs the listed HP Insight CMU GUI
feature:
140 Advanced topics