mkdir and access(2)

James Van Artsdalen james at bigtex.uucp
Mon Mar 28 09:40:14 AEST 1988


IN article <4190 at chinet.UUCP>, les at 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



More information about the Comp.unix.wizards mailing list