From: cornet <cornet@zmail.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] chroot
Date: Wed Sep 5 09:51:12 2001
Message-ID: <3B95BE23.658162FF@zmail.ru> (raw)
In-Reply-To: <20010905033931.A901@localhost.localdomain>
AT wrote:
>
> Здравствуйте.
>
> Junior 1.0, возникла проблема:
>
> [root@localhost root]# chroot /home/www
> chroot: cannot execute /bin/bash: No such file or directory
> [root@localhost root]# chroot /
> [root@localhost /]# exit
> [root@localhost root]#
>
> [root@localhost root]# ls -al /bin/bash
> -rwxr-xr-x 1 root root 418844 Май 22 18:17 /bin/bash
> [root@localhost root]# ls -al /home/www/bin/bash
> -rwxr-xr-x 1 root root 418844 Сен 5 02:51 /home/www/bin/bash
> [root@localhost root]#
>
> Обновил sh-utils, ничего не изменилось. Почему не работает chroot? В чем
> может быть причина, как сделать диагностику?
Посмотрите любое приложение работающее через chroot.
В том каталоге, куда переназначается корень, всегда есть кроме
bin еще и lib etc sbin и в них лежат необходимые к исполнению
бинарники и конфиги.
Ну так создайте их, а потом уже туда chroot можно делать :-))
[cornet@smart cornet]$ rpm -qR `rpm -qf /bin/bash`
ld-linux.so.2
libc.so.6
libc.so.6(GLIBC_2.0)
libc.so.6(GLIBC_2.1)
libc.so.6(GLIBC_2.1.3)
libc.so.6(GLIBC_2.2)
libdl.so.2
libdl.so.2(GLIBC_2.0)
libdl.so.2(GLIBC_2.1)
libhistory.so.4.1
libreadline.so.4.1
libtermcap.so.2
Видите, ему наверняка эти либы нужны.
--
******** FIRE & STEEL ********
next prev parent reply other threads:[~2001-09-05 9:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-05 3:49 AT
2001-09-05 9:51 ` cornet [this message]
2001-09-05 12:17 ` Dmitry V. Levin
2001-09-05 17:26 ` AT
2001-09-05 18:45 ` AT
2001-09-05 19:23 ` Dmitry V. Levin
2001-09-05 20:33 ` [mdk-re] chroot solution AT
2001-09-05 20:52 ` [mdk-re] " Alexander Bokovoy
2001-09-05 21:32 ` [mdk-re] " Dmitry V. Levin
2001-09-05 23:58 ` [mdk-re] chroot solution=>escape from chroot cornet
2001-09-06 2:28 ` [mdk-re] chroot solution AT
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B95BE23.658162FF@zmail.ru \
--to=cornet@zmail.ru \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git