[ale] chroot oddity?
Joseph Knapka
jknapka at earthlink.net
Sat Jul 12 20:50:36 EDT 2003
>From your message, it's not clear whether you want to chroot
to /usr/chroot or /usr/chroot/named; nor is it clear whether
the directory /usr/chroot/named exists. If the first and
third listings below are correct, then
chroot /usr/chroot /bin/bash
should work.
-- Joe
"Robert L. Harris" <Robert.L.Harris at rdlg.net> writes:
> Ok, I'm missing something stupid here.
>
> root at wally
> {0}:/usr/chroot/>ls -la
> total 40
> drwxr-xr-x 10 root root 4096 Jul 12 21:12 .
> drwxr-xr-x 3 root root 4096 Jul 12 21:10 ..
> drwxr-xr-x 2 root root 4096 Jul 12 19:33 bin
> drwxr-xr-x 2 root root 4096 Jul 12 18:40 dev
> drwxr-xr-x 5 root root 4096 Jul 12 21:02 etc
> drwxr-xr-x 2 root root 4096 Jul 12 18:34 lib
> drwxr-xr-x 2 root root 4096 Jul 12 20:58 root
> drwxr-xr-x 2 root root 4096 Jul 12 21:12 tmp
> drwxr-xr-x 3 root root 4096 Jul 12 21:07 usr
> drwxr-xr-x 3 root root 4096 Jul 12 18:24 var
>
> root at wally
> {127}:/usr/chroot/named>ls -la dev
> total 8
> drwxr-xr-x 2 root root 4096 Jul 12 18:40 .
> drwxr-xr-x 10 root root 4096 Jul 12 21:12 ..
> crw-rw-rw- 1 root root 1, 3 Jul 12 18:40 null
> crw-rw-rw- 1 root root 1, 8 Jul 12 18:40 random
>
> root at wally
> {0}:/usr/chroot/>ls -la bin/bash
> -rwxr-xr-x 1 root root 690668 Jul 12 18:32 bin/bash
>
> root at wally
> {0}:/usr/chroot/named>chroot /usr/chroot/named/ bin/bash
> chroot: bin/bash: No such file or directory
>
> root at wally
> {127}:/usr/chroot/named>chroot /usr/chroot/named/ /bin/bash
> chroot: /bin/bash: No such file or directory
>
> /lib and /usr/lib have all the libraries needed however a missing
> library gives a different error.
>
> It's late on a Sat night so most likely it's something small and stupid.
>
> Any thoughts?
>
>
>
> :wq!
> ---------------------------------------------------------------------------
> Robert L. Harris | GPG Key ID: E344DA3B
> @ x-hkp://pgp.mit.edu
> DISCLAIMER:
> These are MY OPINIONS ALONE. I speak for no-one else.
>
> Diagnosis: witzelsucht
>
> IPv6 = robert at ipv6.rdlg.net http://ipv6.rdlg.net
> IPv4 = robert at mail.rdlg.net http://www.rdlg.net
--
Parents can only give good advice or put [their children] on
the right paths, but the final forming of a person's character
lies in their own hands. -- Anne Frank
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list