Public bug reported:

Binary package hint: sudo

I have set up a 32 bit chroot environment on my 64 bit system using
schroot. In this environment I have a problem using sudo:

  kolon:~/doc> schroot 
  I: [chroot-32 chroot] Running login shell: ‘/bin/tcsh’
  kolon[i686]:~/doc> sudo ls
  [sudo] password for mast:
  Broken pipe
  kolon[i686]:~/doc> sudo ls
  Broken pipe

All I get from sudo from this point on is this "Broken pipe" error. As
can be seen above, sudo manage to ask for and verify my password (if I
type in the wrong password, sudo correctly asks again), the problem
occur later.

I suspect this is due to a mistake I've made in setting up this 32 bit
chroot environment. I use a lot of bind mounts to share as much as
possible between the chroot environment and my real 64 bit environment:

/dev                    /chroot-32/dev                  none bind 0 0
/etc/apt                /chroot-32/etc/apt              none bind 0 0
/etc/group              /chroot-32/etc/group            none bind 0 0
/etc/gshadow            /chroot-32/etc/gshadow          none bind 0 0
/etc/passwd             /chroot-32/etc/passwd           none bind 0 0
/etc/resolv.conf        /chroot-32/etc/resolv.conf      none bind 0 0
/etc/shadow             /chroot-32/etc/shadow           none bind 0 0
/home                   /chroot-32/home                 none bind,rshared 0 0
/proc                   /chroot-32/proc                 none bind 0 0
/sys                    /chroot-32/sys                  none bind 0 0
/tmp                    /chroot-32/tmp                  none bind 0 0
/var/run                /chroot-32/var/run              none bind 0 0
/var/tmp                /chroot-32/var/tmp              none bind 0 0

Note that the bug here might not be that the error happens, but rather
that it's reported with a bad error message that doesn't give me any
hint about what to look for.

sudo version is 1.6.8p12-5ubuntu2

Thanks.

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Cryptic error from sudo in chroot environment
https://bugs.launchpad.net/bugs/193516
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to