Operating System - HP-UX
1834175 Members
2438 Online
110064 Solutions
New Discussion

run cmrunpkg command without root...

 
SOLVED
Go to solution
ANDRE David
Occasional Advisor

run cmrunpkg command without root...

Hello,

is it possible to run cmrunpkg command with
another user that root??

I know that i can run cmviewcl command with another user by adding this user in /etc/cmcluster/cmclnodelist file.

Thanks
David
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor
Solution

Re: run cmrunpkg command without root...

I can think of 'sudo' application. SUDO can be downloaded from hp's porting centre.

Or you can also try with restricted sam.
To get sudo click this link.
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/

-USA..
Good Luck..
Jairo Campana
Trusted Contributor

Re: run cmrunpkg command without root...

yes the best option is sudo, configured in /opt/sudo/etc/sudoers

User_Alias USERS = nobody,jhon,frank
##
# Runas' for user root
##
Runas_Alias OP = root

##
# Alias of comands
##
#you can add other command separate for ","
Cmnd_Alias CMRUNPKG = /sbin/cmrunpkg, /usr/sbin/hosts_to_named

##
Defaults syslog=auth
Defaults:USERS !lecture

# Grups and users the execute all comands in server
root ALL = (ALL) ALL
%wheel ALL = (ALL) ALL

# Users that they can sig_named

USERS ALL = NOPASSWD: CMRUNPKG

for verify run:
sudo - yousers
sudo -l

#/usr/local/bin/sudo /usr/sbin/host_to_named -H

legionx
John Meissner
Esteemed Contributor

Re: run cmrunpkg command without root...

sudo will work from the command line. If you want to use another tool ServiceControl Manager is another tool that allows users to run tools as a specified user .... this can be root or any specified user. It has a GUI interface but can also be run via command line. It's a free HP product and I've been using if for over a year.
All paths lead to destiny
LucianoCarvalho
Respected Contributor

Re: run cmrunpkg command without root...

hi,

You can try to create a script to run the cmrunpkg and give permissions to one or more users to use a sam restrict session that gives to them only access to the script you wrote.
To create a sam restrict session fora a user, issue the commando "sam -r" ass root.

regards.
Sunil Sharma_1
Honored Contributor

Re: run cmrunpkg command without root...

Hi,

It's not possible.
you can use some other softwares like sudo to get this functionility.
You can give Cluster managment rights to some other user using ristricted SAM featuer of SAM you can configure it using sam -r

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***