We often need users to have access to specific commands without being root, and for cluster management, if you have dedicated administrators, it's quite useful. Here's a simple way to give them the necessary permissions...
Configuration
To give a user permissions to simply use cluster commands, here are the files to modify:
# User specific aliases and functionsaliasclustat='sudo /usr/sbin/clustat'aliasclusvcadm='sudo /usr/sbin/clusvcadm'aliasmount='sudo /bin/mount'aliasumount='sudo /bin/umount'
Usage
With my user account, I can simply run the commands and they will be executed as root: