Re: How to emulate 'chroot /jail/ su httpd -c' ?

From: Tetsuo Handa
Date: Thu Feb 26 2004 - 08:08:59 EST



Helge Hafting wrote:
> Tetsuo Handa wrote:
> >
> > daemon chroot /jail/ su httpd -c $httpd $OPTIONS
>
> Why don't you simply do the su first, and the chroot later?
>
> Helge Hafting
>

Thank you, Hafting.
But only root can chroot, so after su to httpd, can't chroot.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/