Search $PATH failure?

Bart Kus me at bartk.us
Thu Dec 1 22:40:20 UTC 2011


Slight correction: the "ls" commands were ran in a different session, 
apologies for the confusion.

--Bart

On 12/1/2011 2:38 PM, Bart Kus wrote:
> Hello,
>
> Does anyone know what might be causing this behavior?
>
>
> eo at jo /tmp $ mkdir ram
> eo at jo /tmp $ cd ram
> eo at jo /tmp/ram $ gunzip < /boot/initramfs | cpio -idm
> cpio: dev/tty1: Cannot mknod: Operation not permitted
> cpio: dev/console: Cannot mknod: Operation not permitted
> cpio: dev/null: Cannot mknod: Operation not permitted
> 37624 blocks
> eo at jo /tmp $ su -
> Password:
> jo ~ # cd /tmp
> jo tmp # PATH= /usr/bin/chroot ram /bin/busybox ash
> / # uname
> ash: uname: not found
> / # echo $PATH
>
> / # PATH=/bin
> / # uname
> ash: uname: not found
> / # cd bin
> /bin # uname
> Linux
> /bin # PATH=
> /bin # uname
> Linux
> /tmp/ram # ls -l bin/uname
> lrwxrwxrwx    1 eo       eo               7 Dec  1 03:39 bin/uname -> 
> busybox
> /tmp/ram # ls -l bin/busybox
> -rwxr-xr-x    1 eo       eo         2087264 Dec  1 01:03 bin/busybox
>
>
> My busybox version is 1.19.3 and my config is attached.
>
> Thanks for any insight,
>
> --Bart
>



More information about the busybox mailing list