I got 'ls' to work in a chroot but
for something like Apache or Plone is seems
dang near impossible to chroot it....

You practically have to copy your entire OS into the chroot jail
and I can't find any command to find *just* the files you need
so this seems practically impossible.

Chris


On Fri, Sep 23, 2005 at 09:10:20AM -0700, John H. Robinson, IV wrote:
> [EMAIL PROTECTED] wrote:
> > Why doesn't this work??
> >
> > # /tmp/empty/kernelversion
> > 2.4
> > # chroot /tmp/empty /kernelversion
> > chroot: /kernelversion: No such file or directory
> >
> >
> > (I get the same error on Debian, Fedora and Knoppix.)
> >
> > (chroot man page says to do 'chroot <new-root> <command>'
> > so what am I doing wrong???)
>
> It could be a lot of things. First of all, does /tmp/empty/kernelversion
> exist? Guessing by the name of /tmp/empty, I am going to say no.
>
> The chroot(1) comamnd first makes the chroot to the new directory. Then
> it runs the command (or $SHELL if no command is specified). Once inside
> the chroot, the process cannot see out of it. That is the whole idea of
> the chroot.
>
> As others pointed out, you have to have all support files and libraries
> available for the program within the chroot.
>
> -john
>
>
> --
> [email protected]
> http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
>

--
_______________________________________

Christian Seberino, Ph.D.
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.

Phone: (619) 553-9973
Fax  : (619) 553-6521
Email: [EMAIL PROTECTED]
_______________________________________


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to