Operating System - HP-UX
1826658 Members
2339 Online
109695 Solutions
New Discussion

Starting scripts as other users from the rc*.d directories

 
SOLVED
Go to solution
Nickolas A Gray
Advisor

Starting scripts as other users from the rc*.d directories

Hi Folks,

FIrst time here. I am trying to start such things as Weblogic, Clarify, etc when the system boots to run level three. For security reasons we have chosen to create users
and groups for each product and we want the owner of the process to remain these users.

Can someone point me to a way to do this using S* scripts. during the boot process
2 REPLIES 2
Andreas Voss
Honored Contributor

Re: Starting scripts as other users from the rc*.d directories

Hi,

boot scripts in HP-UX 10.20/11.00 are located at /sbin/init.d
They have symlinks from /sbin/rc.[01234}.d
Within these files you can change the user with:su - -c ""
Typically this is the case to ie. start oracle database.
You can do a SEARCH in the forums for this topic.

Regards
James R. Ferguson
Acclaimed Contributor
Solution

Re: Starting scripts as other users from the rc*.d directories

Hi:

Take a look at these:

http://docs.hp.com/hpux/onlinedocs/os/boot.html

"HP-UX 10.x Startup and Configuration (HP-UX 10.x)" in PDF format at:

http://docs.hp.com/hpux/10.x/

...and/or:

/usr/share/doc/start_up.txt

...JRF...