Xref: utzoo comp.unix.questions:9167 comp.lang.c:12497 Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!bellcore!clyde!motown!vilya!lcuxlm!whuts!homxb!hropus!ki4pv!cdis-1!tanner From: tanner@cdis-1.uucp (Dr. T. Andrews) Newsgroups: comp.unix.questions,comp.lang.c Subject: Re: General Unix/C question Keywords: userid Make su segmentation core Message-ID: <7077@cdis-1.uucp> Date: 9 Sep 88 14:32:54 GMT References: <641@jura.tcom.stc.co.uk> <794@philmds.UUCP> Organization: CompuData Inc., DeLand Lines: 13 In article <794@philmds.UUCP>, leo@philmds.UUCP (Leo de Wit) writes: ) ...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... Nope. Not the case at all. Once the file is open, the file descriptor remains open, and usable, until such time is it is closed (explicitly, via close(2), or implicitly via exit(2) or exec(2) after ioctl(,,FIOCLEX)). -- ...!bikini.cis.ufl.edu!ki4pv!cdis-1!tanner ...!bpa!cdin-1!cdis-1!tanner or... {allegra killer gatech!uflorida decvax!ucf-cs}!ki4pv!cdis-1!tanner