Complete.Org: Mailing Lists: Archives: linux-help: May 2000:
[linux-help] Re: 'chroot' help.
Home

[linux-help] Re: 'chroot' help.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: linux-help@xxxxxxxxx
Subject: [linux-help] Re: 'chroot' help.
From: Jonathan Hall <jonhall@xxxxxxxxxxxx>
Date: Sat, 20 May 2000 10:53:29 -0500
Reply-to: linux-help@xxxxxxxxx

Did the linked file get copied as well, or just the link?  (ls -la /tmp/bin)

I'm guessing it did not...

Try:  cp /bin/bash /tmp/bin
then: chroot /tmp /bin/bash


On Sat, May 20, 2000 at 11:34:56PM +0000, Wang Min wrote:
> Dear Sir,
> I've already done that, I did it by 'cp -a /bin/sh /tmp/bin' (I think I 
> should do a -a because 'sh' is a linked file), it still gives that error 
> message, I want to know what I have done wrong.
> Regards.
> 
> Wang
> ----- Original Message -----
> >You need to do this first:
> >
> >mkdir /tmp/bin
> >cp /bin/sh /tmp/bin
> >
> >chroot attempts to exececute /bin/sh relative to /tmp.  Unless you copy it
> >there first, chroot cannot find /bin/sh, and gives that error message.
> >
> >
> >On Sat, May 20, 2000 at 10:25:31PM +0000, Wang Min wrote:
> >> Dear fellows,
> >> 
> >> I am testing the chroot function, I think 'man chroot' talking about
> >> nothing, I test the following commands 'chroot /tmp /bin/sh', the error is
> >> 'chroot: cannot execute /bin/sh: No such file or directory', as a matter
> >> of fact, there is bin, sbin, usr, usr/sbin...sub-directory in /tmp, and
> >> there are the appropriate files in the directories, what should I do to
> >> implement chroot? Thanks.
> >> 
> >> Wang
> >> 
> >> 
> >> -- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
> >> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
> >
> >--
> >"The concept is interesting and well-formed, but in order to earn better
> >than a 'C,' the idea must be feasible." -- A Yale University management
> >professor in response to Fred Smith's paper proposing reliable overnight
> >delivery service. (Smith went on to found Federal Express Corp.)
> >--
> >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >  Jonathan Hall  *  jonhall@xxxxxxxxxxxx  *  PGP public key available
> > Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
> >         http://www.futureks.net  *  PGP Key ID: FE 00 FD 51
> >                  -=  Running Debian GNU/Linux  =-
> >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> >-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
> >visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
> 
> 
> -- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi

--
"We don't like their sound, and guitar music is on the way out." -- Decca
Recording Co. rejecting the Beatles, 1962.
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Jonathan Hall  *  jonhall@xxxxxxxxxxxx  *  PGP public key available
 Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
         http://www.futureks.net  *  PGP Key ID: FE 00 FD 51
                  -=  Running Debian GNU/Linux  =-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]