How to install sudo in Termux


Sudo installation in android using Termux app :-

Today in this video i am gonna teach you .How to install sudo in termux .

sudo is a program for Unix,Linux,Ubuntu,Termux that allows to users to Run program as a superuser. superuser means Root ,for installation of sudo in your android[Termux] your device must be root.the old versions of sudo were designed to run commands as only super user,but the latest version of sudo is support for Running commands not only as superuser. we can install sudo on our Android by using termux but,your device must be rooted.

Friends follow these steps :-


1. root your device 


2. install termux app from play store 


3.update your termux by this commands:- apt update && apt upgrade

4. install git :- pkg install git

5. Now git clone means download sudo in your termux by this command git clone https://gitlab.com/st42/termux-sudo

6. Now type this commands one by one  cd termux-sudo

  pkg install ncurses-utils

7. Now execute these commands :-

   cat sudo > /data/data/com.termux/files/usr/bin/sudo

  chmod 700 /data/data/com.termux/files/usr/bin/sudo

8. Now install tsu package :- pkg install tsu

9. now run sudo by this command ,it converts $ symbol into # symbol # means root

    sudo su

10.after sudo su command you must be type this command


   sudo tsu

thank you,


15 Comments

  1. cat sudo > /data/data/com.termux/files/usr/bin/sudo

    ReplyDelete
  2. It's say when I type tsu
    *CANNOT LINK EXECUTABLE: could not load library "libsqlite.so" needed by "/system/bin/su"; caused by cannot locate symbol "FIPS_rand_bytes" referenced by "libsqlite.so"...*
    I hope you can help me

    ReplyDelete
  3. Does not work correctly what so ever in arrch 64 unless unset LD_PRELOAD why are we not focusing on 64 bit architecture, with our phones.. It is 2018

    ReplyDelete
  4. Bit architecture problems! Mujeeb has guided me through some problems on Termux.... Arif-tech is also good. I need to root my phone!!

    ReplyDelete
  5. Cat cant open sudo no such file or directory error

    ReplyDelete
  6. /data/data/com.termux/files/usr/bin/sudo: Permission denied
    Please help

    ReplyDelete
  7. Erorrs su executable not found
    sudo requires su

    ReplyDelete
Previous Post Next Post