[linux-help] Re: 'chroot' help.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
- [linux-help] Re: 'chroot' help.,
Wang Min <=
|
|