From: AT <alexey_tourbin@mail.ru>
To: ALT Linux Spring mailing list <mandrake-russian@altlinux.ru>
Subject: Re: [mdk-re] chroot
Date: Wed Sep 5 18:45:01 2001
Message-ID: <20010905182023.A12674@localhost.localdomain> (raw)
In-Reply-To: <20010905170353.A1902@localhost.localdomain>; from alexey_tourbin@mail.ru on Wed, Sep 05, 2001 at 05:03:53PM +0400
Нет, всё равно проблемы.
[root@localhost root]# ls -al /home/www
total 32
drwxr-xr-x 8 at at 4096 Сен 5 17:46 .
drwxr-xr-x 4 root root 4096 Авг 6 22:33 ..
drwxr-xr-x 2 root root 4096 Сен 5 17:57 bin
drwxr-xr-x 2 root root 4096 Сен 5 17:19 etc
drwxr-xr-x 2 root root 4096 Сен 5 17:59 lib
drwxr-xr-x 9 at at 4096 Авг 21 14:41 sasta.ru
drwxr-xr-x 2 at at 4096 Авг 24 15:27 test
drwxr-xr-x 3 root root 4096 Сен 5 17:46 usr
[root@localhost root]# chroot /home/www /bin/ls -al
total 32
drwxr-xr-x 8 501 501 4096 Sep 5 13:46 .
drwxr-xr-x 8 501 501 4096 Sep 5 13:46 ..
drwxr-xr-x 2 0 0 4096 Sep 5 13:57 bin
drwxr-xr-x 2 0 0 4096 Sep 5 13:19 etc
drwxr-xr-x 2 0 0 4096 Sep 5 13:59 lib
drwxr-xr-x 9 501 501 4096 Aug 21 10:41 sasta.ru
drwxr-xr-x 2 501 501 4096 Aug 24 11:27 test
drwxr-xr-x 3 0 0 4096 Sep 5 13:46 usr
[root@localhost root]#
То есть не видно нормальных имен, только id. Кроме того, в одном из
приложений, которое использует chroot(2), не работает getpwnam(3)
(возвращает 0) и т.п. Из /etc все файлы скопировал и пока не изменял:
[root@localhost root]# chroot /home/www /bin/ls -al /etc
total 20
drwxr-xr-x 2 0 0 4096 Sep 5 13:19 .
drwxr-xr-x 8 501 501 4096 Sep 5 13:46 ..
-rw-r--r-- 1 0 0 878 Sep 5 13:19 group
-rw-r--r-- 1 0 0 1528 Sep 4 22:44 passwd
-rw------- 1 0 0 1048 Sep 5 13:18 shadow
[root@localhost root]#
В чем тут может быть дело?
> > Проверьте, все ли необходимое есть в chroot'е; как минимум, там должны
> > быть библиотеки (см. ldd /home/www/bin/bash).
>
> Спасибо, всё заработало!
__
AT
next prev parent reply other threads:[~2001-09-05 18:45 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
2001-09-05 12:17 ` Dmitry V. Levin
2001-09-05 17:26 ` AT
2001-09-05 18:45 ` AT [this message]
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=20010905182023.A12674@localhost.localdomain \
--to=alexey_tourbin@mail.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