Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ames!mindcraft.com!karish From: karish@mindcraft.com (Chuck Karish) Newsgroups: news.software.b Subject: Re: Help on Relaynews Summary: setuid() Message-ID: <675469204.26884@mindcraft.com> Date: 28 May 91 22:20:03 GMT References: <1991May17.003758.17351@bpdsun1.uucp> <1991May18.212857.21302@zoo.toronto.edu> <8028@auspex.auspex.com> <2072@ecicrl.ocunix.on.ca> Organization: Mindcraft, Inc. Lines: 30 In article <2072@ecicrl.ocunix.on.ca> clewis@ferret.ocunix.on.ca (Chris Lewis) writes: >In article <8028@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>>You said "yes" when build asked whether you could do setuid(geteuid()). >>>Wrong. (On SunOS, yet... sigh.) >>exactly what "setuid(geteuid())" is supposed to do. > >I installed cnews on a Sun 4/470, and consulted the setuid() manual on this >very question. There is apparently a configuration parameter that enables/ >disables this. It was called something like _POSIX_SUID. The Sun manual page gives both a DESCRIPTION and a SYSTEM V DESCRIPTION. It also provides the following NOTE, which may apply to either or both of the DESCRIPTIONs: For setuid() to behave as described above, {_POSIX_SAVED_IDS} must be in effect (see sysconf(2V)). {_POSIX_SAVED_IDS} is always in effect on SunOS systems, but for portability, applications should call sysconf() to determine whether {_POSIX_SAVED_IDS} is in effect for the current system. {_POSIX_SAVED_IDS} is a property of the operating system. It may or may not be settable as a kernel parameter, depending on the OS. There, is that all clear now? -- Chuck Karish karish@mindcraft.com Mindcraft, Inc. (415) 323-9000