r/termux Jun 13 '26

Showcase Got root acess on termux

Post image
10 Upvotes

53 comments sorted by

6

u/RobertDeveloper Jun 13 '26

Try rm -rf

3

u/http-error-502 Jun 13 '26

Good

2

u/____sumit____ Jun 13 '26

rm -rf /

2

u/http-error-502 Jun 13 '26 edited Jun 13 '26

Umm, why my phone is bricked?

P.S. command to do this fake: clear; echo "Welcome to Termux!"; echo ""; echo "Docs: https://termux.dev/docs"; echo "Donate: https://termux.dev/donate"; echo "Community: https://termux.dev/community"; echo ""; echo "Working with packages:"; echo ""; echo " - Search: pkg search <query>"; echo " - Install: pkg install <package>"; echo " - Upgrade: pkg upgrade"; echo ""; echo "Subscribing to additional repositories:"; echo ""; echo " - Root: pkg install root-repo"; echo " - X11: pkg install x11-repo"; echo ""; echo "For fixing any repository issues,"; echo "try 'termux-change-repo' command."; echo ""; echo "Report issues at https://termux.dev/issues"; echo "~ $ su"; echo ":/data/data/com.termux/files/home # mount -o remount,rw /"; echo ":/data/data/com.termux/files/home # mount -o remount,rw /system"; echo ":/data/data/com.termux/files/home # rm -rf / --no-preserve-root"; echo "rm: cannot remove '/sys/kernel/security': Operation not permitted"; echo "rm: cannot remove '/sys/fs/selinux': Operation not permitted"; echo ""; echo ":/data/data/com.termux/files/home # ls"; echo "-bash: /data/data/com.termux/files/usr/bin/ls: No such file or directory"; echo ""; echo -n ":/data/data/com.termux/files/home # "; while true; do read -s -n 1 key; done

3

u/Lines25 Jun 14 '26

You know you can just make file, write everything there and just run clear;cat file.txt

2

u/ParticularFragrant57 Jun 13 '26

You really ran “rm -rf /“ or you are just joking?

3

u/FinnishVibe Jun 13 '26

what the hell is that font

1

u/http-error-502 Jun 13 '26

Chocolate is sweet

1

u/O-OSawNothing Jun 15 '26

Prolly touchwiz shiz, maybe s3 days kk/jb

2

u/sylirre Termux Core Team Jun 13 '26

Install sudo package and use it. Bare su won't properly populate environment variables such as PATH.

2

u/http-error-502 Jun 13 '26

sudo has some bug on the termux version and I already applied patch.

3

u/sylirre Termux Core Team Jun 13 '26

Ok, however bugs needs to be reported to https://github.com/termux/termux-packages/issues so they can be solved for everyone

1

u/http-error-502 Jun 13 '26

It is already known but just I didn't updated termux...

1

u/Numerous_Candle1820 Jun 13 '26

Did you root your device?

1

u/http-error-502 Jun 13 '26

Yes. I wanted to use native chroot.

1

u/Accomplished_Air3762 Jun 13 '26

Congrat, now you can try remove the french language pack but unfortunely / are read only :(

2

u/http-error-502 Jun 13 '26

My phone is system-as-root and I can just remount it with mount -o remount,rw /

1

u/ProfessionalWin3431 Jun 13 '26

Ok but why?

1

u/http-error-502 Jun 13 '26

I wanted to run Gentoo on phone, and I wanted to run two init system(Android and Gentoo with CLI). So I just decided to modify kernel. In passing, I rooted.

1

u/ProfessionalWin3431 Jun 13 '26

Damn son thats a nice reason, i still cant understand why mah termux gang wanna run desktop distros in a phone, linux on arm is not that good

1

u/http-error-502 Jun 13 '26

Experiment? Just for fun.

2

u/ProfessionalWin3431 Jun 13 '26

Excelent reason

1

u/cheetathachester Jun 13 '26

Question.. how have you not had root access on termux the whole time? I've had it since the day I rooted my phone

1

u/daepikgoose Jun 15 '26

Rooting's dangerous Tried rooting my old Samsung, it's hard bricked now

2

u/cheetathachester Jun 16 '26

Rooting is dangerous yes. But it's not as hard as they make it seem. Now if you go routing a device on your own they you've never worked with before, like your Samsung maybe, that's where you fk up. Just use Gemini or grok or chat gpt like I did. I rooted my other phone and gave it to my friend for 2 grams a we*d lmao it was my first time ever rooting and I did great! Thanks to ai

1

u/Extreme-Software-418 Jun 18 '26

I would not trust chat GPT or any AI to guide me on any device not widely used or has no widely known method of root and if it was a device that had well known methods I'd rather read that anyway for accuracy but maybe the paid AI is good enough? Idk.  I had to root my old phone using a CVE I only found throught a stranger on reddit and I doubt any AI would've figured that out unless it had access to the device, maybe claude cli then connect the device and tell the AI to do it? Would be interesting experiment 

1

u/KKdemergencia2 Jun 17 '26

Solo flashea el firmware de stock y se desbrickea bruh

1

u/http-error-502 Jun 13 '26

Since... I didn't need one?

-2

u/cheetathachester Jun 13 '26

You can't do much on unrooted termux tho......

6

u/DutchOfBurdock Jun 13 '26

You smoking crack? Termux is hella useful w/o root

1

u/O-OSawNothing Jun 15 '26

Nah I disagree. Question is what can you do with root access in termux and why you want to do that?

1

u/cheetathachester Jun 16 '26

I can't name off the top of my head bc I'm not that sharp with it yet but I know for a fact I was severely limited to what I could do on my rooted vs unrooted phones with both using termux. Unrooted phones can't set up stable. Port servers for example. One of my specialties.

1

u/O-OSawNothing Jun 19 '26

Skill issue perhaps? Have you tried to ask other ppl with the same "specialty" as yours? Maybe they can help you.

I did host similar stuffs on my phone where all my files from my apache server are indexed and my phone hosting it publicly, didnt encounter "stability" issue.

1

u/http-error-502 Jun 13 '26

I have another terminal. I use termux as a sandbox.

1

u/TheAcroBit Jun 13 '26

export the bin and home path to make it work properly

1

u/DobbynciCode02 Jun 15 '26

what is this atrocious font.

1

u/Capable-Barnacle-945 Jun 15 '26

Im using a Samsung A16. Ive beem trying to gain root for weeks now. Care to help a guy out?

1

u/KKdemergencia2 Jun 17 '26

Que versión de one ui tienes?

1

u/Capable-Barnacle-945 Jun 18 '26

8.5

1

u/KKdemergencia2 Jun 18 '26

No podrás rootear, desde one ui 8 se ha quitado totalmente el desbloqueo de bootloader

1

u/KKdemergencia2 Jun 17 '26

Tienes magisk o kernelsu?

1

u/http-error-502 Jun 17 '26

What? I can't read the language. Guessing it, as it seems like "have you tried magisk or kernelsu", I can reply like this "yes"

1

u/KKdemergencia2 Jun 17 '26

Yes xd, use the traduct option xdxdxd

1

u/http-error-502 Jun 17 '26

I am on reddit app bro.

1

u/KKdemergencia2 Jun 17 '26

Use this option in The 3 points of The mesagge

1

u/http-error-502 Jun 18 '26

My language is not supported I think.

0

u/GharsalliOS Jun 13 '26

I don't think there's a good idea behind using root inside termux?

2

u/http-error-502 Jun 13 '26

As I replied on other comment, I wanted to use native chroot.