Link to home
Start Free TrialLog in
Avatar of walsh_stephen
walsh_stephenFlag for United States of America

asked on

Run a Solaris Shell Script as a startup service using specific user credentials

Let me preface - I'm somewhat new to the Unix world.

I am trying to run a Shell script upon boot on some Solaris 10 Systems but I need the scripts to execute in the backgroud as specific users. Is there a simple way to accomplish this ?
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

You may have a startup script in /etc/rc2.d or /etc/rc3.d

Startup script has the convention of its name starts with S

You many put in the script the command you want, e.g.

su - username -c command
ASKER CERTIFIED SOLUTION
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of walsh_stephen

ASKER

That worked as advertized. Thanks!