Operating System - HP-UX
1828197 Members
2319 Online
109975 Solutions
New Discussion

use sg-commands without root permissions

 
centurion
Frequent Advisor

use sg-commands without root permissions

Is it possible to execute serviceguard commands (such as cmviewcl, cmrunpkg, ..) with a non root user?
4 REPLIES 4
Shibin_2
Honored Contributor

Re: use sg-commands without root permissions

Install super and use through it.
Regards
Shibin
centurion
Frequent Advisor

Re: use sg-commands without root permissions

what is super? something like sudo?
Stephen Doud
Honored Contributor

Re: use sg-commands without root permissions

Most supported versions of Serviceguard allow cluster administrators to assign administrative privileges for the entire cluster or specific packages, to particular users.

Parameters in the cluster or package ASCII configuration file that govern this are:
USER_NAME
USER_HOST
USER_ROLE

See page 256 in http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02437444/c02437444.pdf
- titled "Managing Serviceguard Eighteenth Edition, September 2010"
Taurian
Valued Contributor

Re: use sg-commands without root permissions


You have to make changes in the template file that was generated via the cmquerycl command.

USER_NAME john
USER_HOST ANY_SERVICEGUARD_NODE
USER_ROLE FULL_ADMIN (or PACKAGE_ADMIN)

With PACKAGE_ADMIN you will be able to run administrative commands on the package from user john, and with FULL_ADMIN you should be able to run all SG commands from user john.

If your cluster is already configured, you need to cmapplyconf with the altered template file to apply the changes to your cluster.