termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
745 stars 161 forks source link

Warning: no /bin/su available in rootfs! #206

Closed essential-existence closed 2 years ago

essential-existence commented 2 years ago

There was no such error before:

proot-distro install alpine proot-distro login alpine Warning: no /bin/su available in rootfs! localhost:~#

termux 0.117

ghost commented 2 years ago

apk add shadow

essential-existence commented 2 years ago

apk add shadow

Yes it solved the problem! But why? Was the "shadow" package removed from this version of the distribution? Thanks!

ghost commented 2 years ago

PRoot Distro started to check /bin/su existence since 2.9.0, though this check didn't worked properly if /bin/su was a symlink. This should be fixed in proot-distro package version 2.9.3 and yes, Alpine Linux doesn't have lots of packages preinstalled (that's why it is so small).

Package shadow provides full version of utility.