init script

Alan Horn ahorn at deorth.org
Sun Dec 12 07:47:33 UTC 2004


Not knowing what your initi script looks like.. but you probably need to 
replace the piece that runs your command with :

/bin/su user -c "command"

Cheers,

Al

On Sun, 12 Dec 2004, Jake McHenry wrote:

>Date: Sun, 12 Dec 2004 02:41:45 -0500
>From: Jake McHenry <linux at nittanytravel.com>
>Reply-To: For users of Fedora Core releases <fedora-list at redhat.com>
>To: fedora-list at redhat.com
>Subject: init script
>
> Hi everyone. I made up my own init script for an IM server, just wondering how 
> I can set it to run as a user instead of root? If I log into the user who is 
> going to run it, the server runs fine, and it runs fine as root, but for 
> security reasons I want to run it as another user. Is there a way I can do 
> this in the init script?
>
>
> Thanks,
> Jake McHenry
> Nittany Travel MIS Coordinator
> http://www.nittanytravel.com
> (570) 748-6611 x108 
>




More information about the fedora-list mailing list