Running rc.d programs under a different user

Andrew Benton b3nton at
Sun Feb 7 03:49:35 PST 2010

On 07/02/10 06:11, Charles Solar wrote:
> In the book we only used the apps config file to specify a different
> user, ex, svn, proftpd.  But I want to run Deluge under a different user
> and it does not have a config option for this.  So I am wondering if
> there is some way I am 'supposed' to setup the init script to do this.
> I am trying to avoid installing any more unnecessary programs like
> daemon and start-stop-daemon so any advice is appreciated.

Bind has a command line switch -u to run as a different user so the init 
script does
loadproc /usr/sbin/named -u named -t /var/local/named -c /etc/named.conf

Another approch that I use to start X is to use su -

su - andy -c xinit 2&> /var/log/x-session.errors


More information about the lfs-support mailing list