Xref: utzoo comp.unix.questions:9177 comp.lang.c:12515 Path: utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions,comp.lang.c Subject: Re: General Unix/C question Keywords: userid Make su segmentation core Message-ID: <1377@solo7.cs.vu.nl> Date: 9 Sep 88 18:23:14 GMT References: <641@jura.tcom.stc.co.uk> <794@philmds.UUCP> Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Informatica, Amsterdam Lines: 15 In article <794@philmds.UUCP> leo@philmds.UUCP (Leo de Wit) writes: \ 2) when you start the program the input/output redirection is \done, perhaps by your shell. This means that these input/output streams \must be readable/writable by the current uid/gid; when you setuid & \setgid the process may not be allowed anymore to write these \descriptors. That is simply not true: if you have an open file descriptor, you can write to it (presuming it has been opened for writing). Concerning the original problem: maybe an example will shed some light upon the matter? -- Alles klar, |Maarten Litmaath @ Free U Amsterdam: Herr Kommissar? |maart@cs.vu.nl, mcvax!botter!maart