start misbehaving deamons as another user than root
Scott James Remnant
scott at netsplit.com
Thu Jul 12 13:05:28 BST 2007
On Thu, 2007-07-12 at 13:18 +0200, Philippe De Swert wrote:
> > > I wondered if there was a way to get upstart to start daemons with another
> > > user than root. This because some daemons don't drop there privileges decently
> > > (or as in my case I need the init system to start them up, but I need them to
> > > be running with user privileges)
> > >
> > > I tried the following in the upstart scripts:
> > >
> > > su -l username -c daemon-command
> > >
> > su -l username -c exec daemon-command
>
> I tried this, unfortunately upstart complains about an unknown stanza
>
It has to be in an exec stanza, e.g.
exec su -l username -c exec daemon-command
Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20070712/5d22d5a1/attachment.pgp
More information about the upstart-devel
mailing list