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 09:50:05 -0500
Reply-to: linux-help@xxxxxxxxx

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


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