Open Smankusors opened 4 years ago
Ah.. sorry.. I had written the implementation but it was buggy.. So I removed it.. and I forgot to change the help text..
I will rewrite it later tonight... Also it's not possible to run Termux binaries as another user only system shell.. since beside root and Termux no other uid can access Termux data dir
Sorry for your confusion..
oooh right I just realized that... you mean if I'm using uid other than root and Termux, I still cannot call application from /data/data/com.termux/files/usr/bin/
? Well... not if I set it with permission 777 right?
Please try this version and see if USER and -u works for you
curl -L "https://raw.githubusercontent.com/cswl/tsu/next/dist/tsu" > "$PREFIX/bin/tsu"
I set it with permission 777 right?
What is your use case? It might be possible.. but that might cause other weird issues when on Termux only
Please try this version and see if USER and -u works for you
curl -L "https://raw.githubusercontent.com/cswl/tsu/next/dist/tsu" > "$PREFIX/bin/tsu"
it works, but I lost the PATH
environment variable.
What is your use case? It might be possible.. but that might cause other weird issues when on Termux only
Actually was, but then I abandoned it.
I want to run particular program with access to external SD card. But Termux doesn't have the permission, so I logged in as root. It succeed, but I don't trust giving root to this program, so I back logged in as termux uid instead.
It can access external sd card, but another problem comes. It cannot access the internet because I don't run it with group inet
. It would be nice if tsu
can run as group, but with Android architecture like this, it this even possible? I can't find any references on the internet about run as group...
Note that this external SD card permission problem is kinda happen only on certain version of Android I think. Maybe there's some Magisk/kernel/app configuration that prevent Termux accessing external SD card.
I guess termux-setup-storage` only works for Internal storage..
There are magisk modules that enable full access to external sdcard.. but it depends on which Android version..
You could also just bind mount /mnt/runtime/default/STORAGE-UUID
So, in the show usage, I see that we have
[USER]
argument. So I think I use that to change another user other than "root".well it's not. Alright, so I try with sudo. I see that we have
-u [user]
argument. So............ nope.kinda funny it's written on help but.... not implemented? 😨
Is there's something wrong? Or I misunderstood something? Is this because I use old Magisk? I rarely update it because it needs to be updated via recovery, or else I lost my root.