Martin Michlmayr <[EMAIL PROTECTED]> writes:

> * Roger Leigh <[EMAIL PROTECTED]> [2006-07-15 13:47]:
>> Could I have a copy of the full build log?
>
> Attached.
>
>> > When I go into the chroot I get this:
>> > sh-3.1# /bin/su -p root -c 'ls -la' ; echo $? 127
>> 
>> What command did you run to go into the chroot?  i.e., what is the
>> context of this output?
>
> This is when I enter the chroot manually, but the commands sbuild runs
> has the same problem.
>
> 247:[EMAIL PROTECTED]: ~/build] sudo chroot chroot-unstable1 bin/sh
> sh-3.1# /bin/su -p root -c 'ls -la' ; echo $?
> 127
> sh-3.1#

This works for me:

[EMAIL PROTECTED]:~$ schroot -c sid -u root
I: [sid chroot] (rleigh→root) Running login shell: ‘/bin/bash’
hardknott:/home/rleigh# /bin/su -p root -c 'ls -la' ; echo $?
total 373336
-rwxr--r-T   1 rleigh rleigh     97763 Jul 15 14:12 #.newsrc-dribble#
drwxr-xr-x 157 rleigh sbuild     12288 Jul 15 14:10 .
drwxrwsr-x   9 root   staff       4096 Jul  5 07:55 ..
[...]
-rw-r--r--   1 rleigh rleigh   1662946 Jul 13  2004 yaboot_1.3.13.orig.tar.gz
drwxr-xr-x   4 rleigh rleigh      4096 Mar 24  2005 {archives}
0
hardknott:/home/rleigh#

Running the same command as in the log:

[EMAIL PROTECTED]:~$ /usr/bin/sudo /usr/sbin/chroot /srv/chroot/sid /bin/su -p 
root -c '/bin/ls /'
bin   build  etc   initrd  lost+found  mnt  proc  sbin  sys  usr
boot  dev    home  lib     media       opt  root  srv   tmp  var

What does "sudo chroot chroot-unstable1 /bin/pwd" show?  I get '/':

$ sudo chroot chroot-unstable /bin/pwd
/


It looks like su is not functioning correctly.  I don't see why.

In the chroot:
Does /bin/su exist?
Does root exist in /etc/passwd?

Is anything logged to syslog/auth.log?


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please sign and encrypt your mail.

Attachment: pgpXQYtrVwtpY.pgp
Description: PGP signature

Reply via email to