starting a process as another user during startup

john.urban urban at cbnewsl.att.com
Fri May 17 01:31:15 AEST 1991


In article <8646 at alpha.cam.nist.gov> coleman at cam.nist.gov (Sean Sheridan Coleman X5672) writes:
> DELETED STUFF
>
>What I would like to do is have the rc.local run this script
>and start up this monitoring program as a part of its startup 
>but I want it to start the process so the user is nbsnet not
>root. Is there a way to do this and if so, how?
>
>

Try:
	su nbsnet -c "This command to run"

Since you're running as root, the su(1) command will not prompt you for the password.

Sincerely,

John Ben Urban



More information about the Comp.unix.internals mailing list