Xref: utzoo comp.unix.questions:6283 comp.unix.wizards:7407 Path: utzoo!utgpu!water!watmath!clyde!rutgers!im4u!ut-sally!utastro!bigtex!james From: james@bigtex.uucp (James Van Artsdalen) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: mkdir and access(2) Keywords: access(2), permissions, setuid/setgid Message-ID: <1412@bigtex.uucp> Date: 27 Mar 88 23:40:14 GMT References: <59@vsi.UUCP> <1056@stratus.UUCP> <70@vsi.UUCP> <305@wsccs.UUCP> <368@wsccs.UUCP> <10811@mimsy.UUCP> <4190@chinet.UUCP> Reply-To: james@bigtex.UUCP (James Van Artsdalen) Distribution: comp Organization: F.B.N. Software, Austin TX Lines: 12 IN article <4190@chinet.UUCP>, les@chinet.UUCP (Leslie Mikesell) wrote: > Cpio uses system(mkdir) which gives the directory to the real > user which happens to be the one who originally started the process > (even in SysVr3 where it doesn't have to!). /bin/mkdir on my SysVr3 system isn't suid to anything. Hence I assume it works by creating directories via mkdir(2) and then giving them away to the real uid and gid. I don't think much would break if you replaced /bin/mkdir with one that didn't give away the resulting directory. -- James R. Van Artsdalen ...!uunet!utastro!bigtex!james "Live Free or Die" Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746