Run program as another user
Hi I have an Apache webserver set up on a Fedora Core 1 machine and have been using gnump3d to serve mp3s over my network.
The problem is that if there's a power cut or something and the machine shuts down, I have to manually log on and start gnump3d again. I decided to fix it yesterday after another power cut and tried adding
/usr/bin/gnump3d
to /etc/rc.local (I think)
It worked and gnump3d was started but the problem is that it was started by user 'nobody' (checked using ps aux).
I need to have gnump3d started by user 'stu' for example so is there a way to do this perhaps using 'su' although I don't want a shell opening.
Thanks, Stu
|