mkdir(2) on System V

Doug Gwyn gwyn at brl-smoke.ARPA
Mon Apr 28 14:12:25 AEST 1986


In article <663 at imag.UUCP> paire at imag.UUCP (Eric PAIRE) writes:
>UNIX system V users may have remarqued there is no "mkdir(2)" system call. It
>is replaced by "mknod(2)", but must be executed only by super-user. Why
>is it necessary to be super-user for creating an own directory ?

Because mknod() does not create the "." and ".." entries.
A non-privileged user on UNIX System V needs to run the "mkdir"
command to create a directory.  You can do this using system().



More information about the Comp.unix.wizards mailing list