• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

chroot() Umgebung [gelöst]

xeon

Newbie
Hey ho!

ich hätte da mal ein problem ;)

ich habe vor, einen apache in einer chroot umgebung laufen zu lassen. habe mich, nahezu peinlich genau, an die anleitung von sebastian wolfgarten (webserver apache 2) gehalten. doch stehe ich mit dem letzten befehl vor einem rätsel:

chroot will nicht....

ich halte mich in dieser ausgabe im ordner /chroot/httpd auf.

Code:
linux:/chroot/httpd # tree -L 2
.
|-- bin
|   `-- bash
|-- dev
|   |-- null
|   `-- urandom
|-- etc
|   |-- group
|   |-- hosts
|   |-- ld.so.cache
|   |-- nsswitch.conf
|   |-- passwd
|   `-- resolv.conf
|-- lib
|   |-- libapr-0.so.0
|   |-- libaprutil-0.so.0
|   |-- libc.so.6
|   |-- libcrypt.so.1
|   |-- libdl.so.2
|   |-- libexpat.so.0
|   |-- libm.so.6
|   |-- libnsl.so.1
|   |-- libnss_compat.so.2
|   |-- libnss_files.so.2
|   |-- libpthread.so.0
|   |-- librt.so.1
|   `-- tls
|-- usr
|   |-- lib
|   |-- libexec
|   |-- local
|   `-- share
`-- var
    |-- lib
    `-- run

der befehl:

Code:
chroot .

gibt aus:
chroot: cannot run command `/bin/bash': No such file or directory

ebenso, wenn ich den apache starten will
Code:
chroot /chroot/httpd/ /usr/local/apache2/bin/httpd
chroot: cannot run command `/usr/local/apache2/bin/httpd': No such file or directory

obwohl:

Code:
ls -la /chroot/httpd/usr/local/apache2/bin/httpd
-rwxr-xr-x  1 root root 1397863 Jan 11 12:17 /chroot/httpd/usr/local/apache2/bin/httpd

ich seh dahinter einfach keine logik.... chroot in / funktioniert ;)

vllt hat ja einer von euch ne lösung!?

gruß, chris
 
OP
xeon

xeon

Newbie
k - habs selbst geschafft ;)

hab einfach /lib/* und /usr/lib/* in mein chroot dir gepackt - daran lags dann auch.

gruß, chris
 
Oben