![]() That opens the possibly for any app to gain access outside of it's allowed permissions. You can disable it, like you said but I wouldn't normally recommend people run without SELinux unless they really know what they're doing. I just assumed that couldn't get root access at all.Īs far as SELinux. But I should have said not to run apt as root. Generally I've fixed this with chown -R (tmuxuser) /data/data/com.termux/files/usr. This will screw everything up as far as ownership. I should have added in that you should NEVER update/upgrade or do any apt/dpkg package management whilst running as root. if you're using KingRoot, they block termux to make it harder for you to remove kingroot (as it's spyware.) Check your root management app to make sure it isn't kingroot and is allowing Termux root I should have been more clear in my post, I just didn't want to make it too long. I'm betting your root management app is not allowing termux root access. it's open source, kept up-to-date and easily flashed from recovery (like TWRP.)Īre you on old Android ≤5? If so, tsu has issues with LD_LIBRARY_PATH but su will always work if you have correctly rooted your device. Invoking su should give you a root shell on the phone, but without access to Tmux packages (that's what tsu is for.) If su says permission denied, then your root control app isn't allowing root access to Termux. ![]() I'm assuming you installed tsu and have upgraded your packages in Termux (apt install tsu & apt update -y & apt upgrade -y) The command to go to root is just "su" You can pass commands to root (say you want to view all networking processes with netstat) using "su -c netstat -tuepa" unless you put it in the system yourself, but even then it doesn't work well with Android. hopefully not KingRoot, etc.)įirst of all there is no "sudo" command in Android. I know this sounds harsh, but if you don't know what your doing, you may permanently damage your device.Are you still having this issue? What root management app are you using? (Magisk, SuperSU. And don't even touch a console emulator if you don't know shit about programming and operating systems. Don't complain about rooting your device if you don't know how it changes your android device. If your device isn't rooted, there is no possible way for a program / app to access / request these permissions, wich is why, ultimately, the sudo command in your terminal emulator (in this specific case termux) fails.Īnd one more thing: don't use sudo (or any other command) if you don't know what it is and what it does. So, to sum up, running a command / program using sudo gives it the permissions needed to access several restricted files and commands. By rooting your device you basically remove that restriction partially. Android has a restriction in place to prevent that apps from accessing features that require that permission level. The user that typically has this level of access on other Linux distributions is called "Root" or "Superuser". ![]() Sudo is a command intended to execute a program with full access rights to virtually everything. Nothing for answer how to fix it, but always neded su. data/data/com.termux/files/home/termux-sudo then "chmod +x sudo" then sudo ![]() Triage notifications on the go with GitHub Mobile for iOSĪll you need to do after script for termux-sudo is make sure your in You are receiving this email because you commented on the thread. Reply to this email directly, view it on GitHub On Mon, Mar 13, 2023, 3:30 AM androidlamine commented on this gist.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |