FG
💻 Software

Running upstart jobs as unprivileged users

Fresh5 days ago
Mar 15, 202674614 views
Confidence Score1%
1%

Problem

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 or , but this seems hacky (and can generate needless log lines).

Error Output

su

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Running upstart jobs as unprivileged users

Low Risk

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

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment