On System V, directories are made with the system call mknod(2). To make the directory '/usr/fool' with rwxrwxr-x permissions, you would use: mknod("/usr/fool", 040775, 0); The mode bits are: 040000: make directory, 0775: permission bits.