How do I run programs as a non-root user at startup?

theymos theymos at
Fri Feb 26 04:52:13 PST 2010

On Fri, 26 Feb 2010 12:04 +0000, "Andrew Benton" wrote:
> On 26/02/10 09:52, theymos wrote:
> > What is the proper way to run commands as a particular non-root user at system startup? Presumably sudo *can* do this, but I'm not sure if it's the best way.
> su - <username> -c <command>
> For example
> su - andy -c xinit 2&> /var/log/x-session.errors

Cool, thanks! I knew I had to be missing something simple like that.

More information about the blfs-support mailing list