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

Andrew Benton b3nton at
Fri Feb 26 04:04:54 PST 2010

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


More information about the blfs-support mailing list