guardianproject / lildebi

UNMAINTAINED please adopt! we can no longer maintain this
https://guardianproject.info/code
GNU General Public License v3.0
226 stars 55 forks source link

chroot enviroment missing $PATH #183

Open krysopath opened 8 years ago

krysopath commented 8 years ago

Hello, after installing Lil'Debi on lg-p880, I execute /debian/shell and get # as prompt.

However most of the expected commands arent found in PATH, so after exporting like this: export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH I have 538 executables found by bash.

However adding a user via adduser $USERNAME I get caught by: passwd: pam_start() failed, error 26 Try again? (y/N)y passwd: pam_start() failed, error 26 Try again? (y/N)N chfn: PAM: Critical error - immediate abort adduser: '/usr/bin/chfn $USERNAME' returned error code 1. Exiting

retrying the above yields: adduser: The user $USERNAME already exists.

su - $USERNAME yields: su: pam_start: error 26

also no apt-get anywhere in $PATH

What/Why/How?

I feel that this is a problem of Lil'Debi, because a selfmade debian.img works just fine. Is this possibly an error of my own? How can I avoid it?

krysopath commented 8 years ago

ldd /usr/bin/passwd

    libpam.so.0 => /lib/arm-linux-gnueabihf/libpam.so.0 (0x400c3000)        libpam_misc.so.0 => /lib/arm-linux-gnueabihf/libpam_misc.so.0 (0x40190000)
    libaudit.so.1 => /lib/arm-linux-gnueabihf/libaudit.so.1 (0x4001e000)
    libselinux.so.1 => /lib/arm-linux-gnueabihf/libselinux.so.1 (0x4005d000)
    libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x401a3000)
    /lib/ld-linux-armhf.so.3 (0x4009a000)
    libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x40084000)
    libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0x40127000)                                                                              libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x400dd000)