Operating System - HP-UX
1833049 Members
2374 Online
110049 Solutions
New Discussion

Re: Allowing non-superuser to run cmhaltpkg

 
SOLVED
Go to solution
Kirk Dahl
Regular Advisor

Allowing non-superuser to run cmhaltpkg

Is it possible to have a non-superuser run cmhaltpkg or cmrunpkg, such as Oracle?
4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: Allowing non-superuser to run cmhaltpkg

Hi Kirk,

This is exactly what sudo is designed to do. To let any specific user or group member run specific root-level commands & *only* those commands.
Highly, highly recommended.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
RAC_1
Honored Contributor

Re: Allowing non-superuser to run cmhaltpkg

Yes, you can.

A secure way to do this is using sudo.

Get sudo from here..
http://hpux.cs.utah.edu

Rem the man page. It is explained in details. Do visudo and give oracle perms to start cmrunpkg and cmhaltpkg.

Anil
There is no substitute to HARDWORK
A. Clay Stephenson
Acclaimed Contributor

Re: Allowing non-superuser to run cmhaltpkg

Yes, you could configure sudo to allow a regular user to run the commands although allowing someone who is a MC/SG novice to run any cmxxxx commands would scare me to death.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.7p5/
If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Allowing non-superuser to run cmhaltpkg

Hi,

One another way is to setup "Restricted SAM". Run "sam -r" as the root and give permissions for the user oracle to start and stop the packages.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try