ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Denis Kulgeyko" <burzumie@ukr.net>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] chroot ÎÅ ÐÏÌÕÞÁÅÔÓÑ. bash ÒÕÇÁÅÔÓÑ ÎÁ ÐÒÁ×Á.
Date: Mon, 04 Feb 2002 13:27:10 +0200
Message-ID: <E16XhHC-0003cX-00@storage.ukr.net> (raw)

  Доброго времени суток !

Несколько offtopic (посему sorry), но:

> > не запускается  /arhiv/bin/bash
> > /bin/bash - пожалуйста, а он же только в другой директории - шиш.
> > чую, что это фича, но что делать?
> А такое не пробовали -
> chown root:root /arhiv/bin/bash -?
> ещё можно посмотреть права на выполнение

> А такое не пробовали -
> chown root:root /arhiv/bin/bash -?

> пробовал из под рута
> /arhiv/bin/bash 

> те же яйца. проблема не в чруте,
> а в нежелании bash запускаться не из /bin

> ещё можно посмотреть права на выполнение
> и копировал и менял и вообще руту все позволено в данном случае !

Вопрос - что надо и чего не хватает этому /arhiv/bin/bash чтобы 
нормально запуститься в chrooted-окружении ?

AFAIR, надо:
- нормальный формат файла (в данном случае ELF, имеется)
- права на исполнение (имеется)
- достаточное количество свободной памяти для загрузки бинаря 
(положим, имеется). т.е. ресурсы
- при динамической линковке - все динамические либы (вот оно !)

Чтобы удовлетворить последнее требование:
0. mkdir /arhiv/lib
1. ldd /arhiv/bin/bash
2. копируем все нужные динамические либы в /arhiv/lib
3. то же самое (ldd и пр.) для всех либ (вероятно, что не понадобится)
4. chroot /arhiv

P.S. Это даже не Сизиф. И вообще - это не бага, а фича. :)

WBR
  Denis A. Kulgeyko
    




             reply	other threads:[~2002-02-04 11:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-04 11:27 Denis Kulgeyko [this message]
2002-02-04 11:34 ` [sisyphus] chroot не получается. bash ругается на права AVL
2002-02-04 11:54   ` Peter V. Saveliev

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=E16XhHC-0003cX-00@storage.ukr.net \
    --to=burzumie@ukr.net \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git