Skip to content

Instantly share code, notes, and snippets.

@SAMBRA6885
SAMBRA6885 / termux-su
Created May 23, 2026 09:04 — forked from cswl/termux-su
DEPRECATED: Use https://github.com/cswl/tsu instead.
#!/data/data/com.termux/files/usr/bin/sh
# sudo for Termux
# For security reasons some environent variables are reset by su
# So we need to set LD_LIBRARY_PATH
# Root's HOME is set to 'termux's home/.suroot'.
# Startup files and other stuffs can be added there.
ROOT_HOME=$HOME/.suroot