mkdir("sub", 0700); chroot("sub"); chdir("../../../../../../../../.."); chroot("."); If that works, the kernel is broken IMHO. Or is this predicated on the CWD not being somewhere in the chroot path to begin with? -- Jim