cswl / tsu

Gain root shell on Termux.
ISC License
626 stars 154 forks source link

/system/bin/sh: env: not found #84

Open ghost opened 3 years ago

ghost commented 3 years ago

Every time I run the "tsu" command to root termux I get the following error "/system/bin/sh: env: not found" I have no idea how to solve it, and I really need this problem solved. Capture+_2021-08-31-17-21-43-1

mihas1984 commented 2 years ago

There was the same problem. I solved it by deleting the PATH = $ BB_MAGISK line. Reason: if a su from a magisk is installed in the system, then it is considered that the system should also have a busybox respectively. Which is generally not true, I installed mtk easy su from the magisk, while the magisk itself was not installed, which led to an error when the required busybox could not be found.

qidian2 commented 7 months ago

Deleting PATH=$BB_MAGISK will cause sudo -u function error. The better way to solve it is to change it to PATH=$BB_MAGISK:/system/bin:/system/xbin