Xref: utzoo comp.unix.questions:31219 comp.lang.c:39193 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!clout!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.questions,comp.lang.c Subject: Re: UNIX commands in C Message-ID: <1991May11.034015.7556@chinet.chi.il.us> Date: 11 May 91 03:40:15 GMT References: <751.imc@uk.ac.ox.prg> Organization: Chinet - Chicago Public Access UNIX Lines: 12 In article subbarao@phoenix.Princeton.EDU (Kartik Subbarao) writes: >Ha! Using system() in any setuid program itself, regardless of how you invoke >the program, leaves a major security hole. In what way is doing a fork() and having the child do a setuid(getuid()) before the system() call any less secure than it would be if the program were not setuid? Some unix versions offer less drastic ways to do it, but that way should work even from a setuid root program under SysV. Les Mikesell les@chinet.chi.il.us