From: Erik Hahn <erik_hahn@gmx.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] start-stop-daemon sets USER=root - expected behaviour?
Date: Sun, 5 Oct 2008 23:01:17 +0200 [thread overview]
Message-ID: <20081005210117.GA2897@eriks> (raw)
In-Reply-To: <48E90D61.5070009@gnoo.eu>
On Sun, Oct 05, 2008 at 08:54:25PM +0200, Jil Larner wrote:
> You may wish to specify the --user parameter. As this tool is for system
> daemons (therefore located in /sbin), it seems obvious it starts daemons
> as root by default. I checked on my system and I don't have a setuid bit
> on this program, no more it starts any program when my wheel user
> executes the command. I've no error code, but no process is spawned.
It doesn't run the command as root but as normal user (it isn't setuid
either. All it does is setting the *variables* $USER and $HOME to the
wrong values.
> If your non root user escalates privileges and is able to spawn a root
> process, *and* there is no setuid bit on /sbin/start-stop-daemon, you
> may fill a bug, if you have a procedure to reproduce it ;) Honestly, as
> it is a quite old debian tool, I don't think it's buggy ;)
This implementation is not by Debian:
> This is a complete re-implementation with the process finding code in
> the OpenRC library (librc, -lrc) so other programs can make use of it.
-Erik
--
hackerkey://v4sw5hw2ln3pr5ck0ma2u7LwXm4l7Gi2e2t4b7Ken4/7a16s0r1p-5.62/-6.56g5OR
next prev parent reply other threads:[~2008-10-05 21:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-05 12:01 [gentoo-user] start-stop-daemon sets USER=root - expected behaviour? Erik Hahn
2008-10-05 18:54 ` Jil Larner
2008-10-05 21:01 ` Erik Hahn [this message]
2008-10-06 6:41 ` Jil Larner
2008-10-06 11:43 ` Erik Hahn
2008-10-06 12:27 ` Daniel Pielmeier
2008-10-06 18:21 ` Erik Hahn
2008-10-06 19:09 ` Daniel Pielmeier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081005210117.GA2897@eriks \
--to=erik_hahn@gmx.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox