Ubuntu – Running upstart jobs as unprivileged users

setuidUbuntuupstart

What's the canonical way to have an upstart job change its userid and run the script as an unprivileged user?

Obviously one can use su or sudo, but this seems hacky (and can generate needless log lines).

Best Answer

With upstart v1.4, setuid and setgid are supported natively in config file.