Operating System - HP-UX
1827811 Members
1864 Online
109969 Solutions
New Discussion

package startup script and su

 
SOLVED
Go to solution
TVS MURTY
Advisor

package startup script and su


We have a 2 node cluster with SG. In the
package file control.sh, under the customer_defined_run_cmds
we do su - oracle to strat up the dbstart
script, then do another su to start the
application. And similarly for the shutdown of db
and the application in the halt_cmds .

Our system is not a trusted system. Now I want
to make these systems trusted systems by
running tsconvert on them. I believe that when
this is done we would need to provide a passwd
to any login with su even if you are root.

Then I would have a problem bringing up my
package unless I pass the password with su
in the script, which I wouldnot want to do.

How do I overcome this problem ?

Thank you for your help.

TV
3 REPLIES 3
T G Manikandan
Honored Contributor

Re: package startup script and su

Hello,
How about using a su - oracle -c

The "-c" option.
Sorry,I have not worked with the trusted system.

Thanks
TVS MURTY
Advisor

Re: package startup script and su

Dear Manikandan,
Yes. That is what we do.

su - ora816 -c "dbstart"

But since this is executed as
root I donot have to give a
password for the user ora816
but if I were to make this
system into a trusted system
I would need to provide a
passwd which I would like to
avoid.

Thank you for youe help.

TVS
Animesh Chakraborty
Honored Contributor
Solution

Re: package startup script and su

<to make these systems trusted systems by
running tsconvert on them. I believe that when
this is done we would need to provide a passwd
to any login with su even if you are root.>>>>>>>


If you are in root ,then no need to supply password in trusted system also.

Did you take a backup?