Operating System - HP-UX
1827124 Members
4004 Online
109714 Solutions
New Discussion

Re: Package startup by normal users

 
SOLVED
Go to solution
R.Suresh
Frequent Advisor

Package startup by normal users

Hi all,

Can any user, other than root start or halt
a package?

I need one of my package to be handled by
a user independently.

Thanks & Regards
R.Suresh
PDLS
9 REPLIES 9
LucianoCarvalho
Respected Contributor
Solution

Re: Package startup by normal users

hi,

You can try to create a script to halt and start that package 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.
Ravi_8
Honored Contributor

Re: Package startup by normal users

Hi,

depends on the application.
certain applications like oracle/DB2 will be started by the owner, if it's a script it can be made to execute by anyone by changing the permission(chmod)
never give up

Re: Package startup by normal users

Why not give them the serviceguard manager tool instead?

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8341BA

It's free...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
R.Suresh
Frequent Advisor

Re: Package startup by normal users

Hi Ravi,

Thanks for your response,

I have a doubt on your view.

Correct me , if I am wrong.

I hope, Individual Package's control script has to activate it's VGs & mount their filesystems. Can Any other user than root do this?

Thanks & Regards
R.Suresh.
PDLS
Geoff Wild
Honored Contributor

Re: Package startup by normal users

You can do this with "Restricted SAM"...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Christoph Rothe_3
Frequent Advisor

Re: Package startup by normal users

You could also use the sudo - Tool which allows normal users to execute a defined set of commands as root.

Unfortunately it is not support by HP but can be received here:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/
V. V. Ravi Kumar_1
Respected Contributor

Re: Package startup by normal users

hi,
best option is SUDO. Download SUDO and in sudoers file add the users and give permissions to them on cmrunpkg and related commands.
Ex:
ALL=NOPASSWD: /usr/sbin/cmrunpkg
u should use visudo command to open editor for sudoers file.

Regards
Never Say No
Chris Xu
Trusted Contributor

Re: Package startup by normal users

Sudo is a good work-around for your problem. However, you need to be very specific about what commands to allow your normal users to run. Special attentions need to be paid to not allow your normal users to stop/start other packages. Good luck.

Chris
Oleg_30
Occasional Advisor

Re: Package startup by normal users

You can also create a RO script which has the setuser permission, this permission gives tha ability to script to run under the permissions of it's owner rather it's runner, be careful and give the execute permission tnly to the user you want him to run it.

Regards,