[ale] chroot oddity?

Robert L. Harris Robert.L.Harris at rdlg.net
Sun Jul 13 10:54:39 EDT 2003



  It should be /usr/chroot/named in all cases, I was trying to remove
the "named" so as to cut out a level of confusion ("why are you trying to
use /bin/bash in a named chroot?")...  The original info is all correct
except in reality it would be /usr/chroot/named...  I did try chaning
all the paths and directories to remove the named, no change.

  Robert




Thus spake Joseph Knapka (jknapka at earthlink.net):

> 
> >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/>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/>chroot /usr/chroot/ bin/bash 
> > chroot: bin/bash: No such file or directory
> > 
> > root at wally
> > {127}:/usr/chroot/>chroot /usr/chroot/ /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

: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

 PGP signature




More information about the Ale mailing list