LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Run program as user (https://www.linuxquestions.org/questions/linux-newbie-8/run-program-as-user-252068/)

falcon 11-07-2004 11:08 AM

Run program as user
 
Hi,

I'm trying to setup a Linux install to start a program on boot, with the privilages of a non-su user. I've been googling for days and have been looking for a clue as to where to start on this.

Currently, I've got a startup script that starts up out of rc.local, but it runs as root. I don't want this program to run as root for two reasons. First I feel it is a security problem, and second the user can't access the program to stop / restart it.

If anyone could point me in the right direction, I would be gratefull until the end of time... if not, I'll still be gratefull *grin*.

Disto= Fedora Core 2

Thanks

Shannon

david_ross 11-07-2004 11:17 AM

You can do it with su:
su - SOMEUSER /path/to/program


All times are GMT -5. The time now is 12:43 PM.