- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 07:56 AM
тАО12-12-2001 07:56 AM
Can someone tell me how to delegate the commands cmrunpkg, cmhaltpkg, cmmodpkg to other user not root?.
Thanks in advance.
Justo.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 08:00 AM
тАО12-12-2001 08:00 AM
Re: Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 08:01 AM
тАО12-12-2001 08:01 AM
Re: Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
No these commands to be run by superuser only..
Try configuring sudo or su , if you want to keep track of all super user activity
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 08:07 AM
тАО12-12-2001 08:07 AM
Re: Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
Sudo will do this for you as suggested by others.
And the best way would be to setup restricted SAM that will allow package handling by users.
#sam -r
It's easy to setup.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 08:09 AM
тАО12-12-2001 08:09 AM
Re: Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
Thanks, but how can I configure su or sudo?
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 08:16 AM
тАО12-12-2001 08:16 AM
SolutionIt's easy. Download sudo from here.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/
It's all in the /etc/sudoers file. Read the page
http://www.courtesan.com/sudo/man/sudoers.html
For the syntax.
I would suggest you try it with restricted SAM for the users.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 08:18 AM
тАО12-12-2001 08:18 AM
Re: Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
Download sudo from here..
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-12-2001 08:20 AM
тАО12-12-2001 08:20 AM
Re: Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
User_Alias CMUSERS = user1,user2
# Cmnd alias specification
Cmnd_Alias CMCOMMANDS=/usr/sbin/cmrunpkg, /usr/sbin/cmruncl
l
# User privilege specification
CMUSERS ALL = CMCOMMANDS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2001 12:56 PM
тАО12-18-2001 12:56 PM
Re: Delegate the cmhaltpkg, cmrunpkg, cmmodpkg
Also, if memory serves me correctly, even though the commands you asked about are world executable, and any user can run the MC/Svc Guard commands, the commands have logic built into them so that only the superuser (root) can affect the package/cluster.
I don't have a test server to confirm this right now, but I remember when we were setting up our clusters, I had the same concern, so I executed the commands as a non-priveldged user and got an error message back...the verbiage of the error stated that I could not run the command because I was not root.
If you have a test environment, try this out, but I am almost sure this is the case.