Magisk-Modules-Repo / zsh_arm64

9 stars 2 forks source link

zsh not executable as non-root. #2

Open ianmacd opened 5 years ago

ianmacd commented 5 years ago

Thanks for compiling this. I've tried before, but always ran into ncurses issues and couldn't get ncurses to compile properly for ARM, due to too many dependencies.

I don't think this is covered by the warning that zsh won't work for the system user.

On my S10+:

$ adb shell
bash-5.0$ zsh
bash: zsh: command not found
bash-5.0$ ls -l /system/xbin/zsh
ls: /system/xbin/zsh: Permission denied
bash-5.0$ ls -l /system/xbin    
ls: /system/xbin/zsh: Permission denied
total 1508
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 [ -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 [[ -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 acpid -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 adjtimex -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 ar -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 arch -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 arp -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 arping -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 ash -> busybox
lrwxrwxrwx 1 root root        7 2019-08-14 13:29 awk -> busybox
...

I'm not sure what's going on with the permissions of zsh here. Possibly SELinux interference. I can't even list the binary under /system/xbin.

Zackptg5 commented 4 years ago

Confirmed on my op5t too. Tried changing group to shell but didn't change anything. @ianmacd you can compile ncurses for arm with my gnu tools build script

Zackptg5 commented 4 years ago

@partcyborg I took at stab at it and got to it work but not ideal - it still doesn't detect /system/etc/.zshrc among other things but it at least runs. Attached my build script for you - it builds a bunch of dependencies too build.zip

Zackptg5 commented 4 years ago

Have a working build script up here: https://github.com/Zackptg5/Zsh-For-Android-Build-Script