Article View: news.software.nntp
Article #40992Re: inndstart: setreuid(222, 0) failed: Not owner
From: bill davidsen
Date: Wed, 20 Oct 1999 00:00
Date: Wed, 20 Oct 1999 00:00
34 lines
2472 bytes
2472 bytes
In article <876703mb00.fsf@erlenstar.demon.co.uk>, Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote: | The Unix 98 spec (which is downloadable from the opengroup website | somewhere, I think) says: | | The setreuid() function sets the real and effective user IDs of | the current process to the values specified by the ruid and euid | arguments. If ruid or euid is -1, the corresponding effective or | real user ID of the current process is left unchanged. | | A process with appropriate privileges can set either ID to any | value. An unprivileged process can only set the effective user ID | if the euid argument is equal to either the real, effective, or | saved user ID of the process. | | It is unspecified whether a process without appropriate privileges | is permitted to change the real user ID to match the current real, | effective or saved user ID of the process. Hopefully "appropriate privileges" are defined somewhere. The application of this to a program run by news, setuid root, is not obvious after the euid is set to news. And I think on AIX setuid programs would have ruid as news. I will continue to play with this, I *think* I can set ruid to root, then euid to news, and still get back, but I haven't had time to test since I did the initial bunch of tests. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc When taking small children to a carnival, always have them go potty *before* you let them go on the rides, and let them eat all the junk food and candy *after*.
Technical Details
Message-ID:
<7ukp0g$4di$1@newssvr02.news.prodigy.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<7u5k8b$3uu$1@newssvr02.news.prodigy.com> <87ogdvral7.fsf@erlenstar.demon.co.uk> <7uibaq$ke0$1@newssvr02.news.prodigy.com> <876703mb00.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <7ukp0g$4di$1@newssvr02.news.prodigy.com> Subject: Re: inndstart: setreuid(222, 0) failed: Not owner Date: Wed, 20 Oct 1999 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <7u5k8b$3uu$1@newssvr02.news.prodigy.com> <87ogdvral7.fsf@erlenstar.demon.co.uk> <7uibaq$ke0$1@newssvr02.news.prodigy.com> <876703mb00.fsf@erlenstar.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 538466769 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr02.news.prodigy.com 940435280 4530 199.4.137.118 (20 Oct 1999 16:01:20 GMT) Organization: TMR Associates, Schenectady NY Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com