Article View: news.software.nntp
Article #71746Re: inndstart under daemontools's supervise(8)
From: Andrew Raines
Date: Wed, 01 Jun 2005 16:26
Date: Wed, 01 Jun 2005 16:26
33 lines
2290 bytes
2290 bytes
Russ Allbery <rra@stanford.edu> writes:
> I really don't know then. The error message that you're
> seeing indicates that inndstart isn't running as root
> (given that you're on Linux and the seteuid semantics
> work properly there).
This doesn't make any sense. rc.news runs inndstart via
eval ${WHAT} ${RFLAG} ${INNFLAGS}
and nobody complains. If I run inndstart from the command
line, I get an EPERM setgroups(). Furthermore, adding a
geteuid() call to inndstart.c, I see that the setuid root
isn't even working:
getuid32() = 9
geteuid32() = 9
setgroups32(1, [9]) = -1 EPERM (Operation not permitted)
write(2, "inndstart: ", 11inndstart: ) = 11
write(2, "can\'t setgroups (is inndstart se"..., 43can't setgroups \
(is inndstart setuid root?)) = 43
Again, inndstart is 4550:
$ ls -ld ~/bin/inndstart
-r-sr-x--- 1 root news 188325 Jun 1 11:17 /usr/local/news/bin/inndstart
I must be missing something obvious. What does rc.news do
that I can't do interactively?
--
aa@raines.ws (Andrew A. Raines)
Technical Details
Message-ID:
<ufyw2niw6.fsf@raines.ws>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<umzqgts2a.fsf@raines.ws> <877jhks1yi.fsf@windlord.stanford.edu> <usm08rzpx.fsf@raines.ws> <87y8a0p4oq.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <ufyw2niw6.fsf@raines.ws> Subject: Re: inndstart under daemontools's supervise(8) Date: Wed, 01 Jun 2005 11:26:01 -0500 From: Andrew Raines <aa@raines.ws> References: <umzqgts2a.fsf@raines.ws> <877jhks1yi.fsf@windlord.stanford.edu> <usm08rzpx.fsf@raines.ws> <87y8a0p4oq.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Lines: 33 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net 5T57IjtZ/rAHBYMfpZApeQ8CJV0XdNgfwfieYhW7g6Ad8keyao X-PGP-Key: http://raines.ws/pubkey.asc Mail-Copies-To: never User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:XRzG3ggTzk9qiPclHm1lrqkLl/U=