In this post I am going to show, How to install sudo in termux. Installing sudo in termux is much more complex process. Sudo installation requires root but in this tutorial i am going to show you how to install sudo without rooting your device.
What is sudo?
Sudo is a command line utility for both linux and unix users to run commands as a root user. This command actually means superuser do (sudo). This command gives admin privileges to the user so he can get access to the more resources of the device. In linux most of the installation commands require sudo command to run.
How to install Sudo in termux?
Installing sudo in termux is a complicated process but if you are a root user or your device is rooted it is much easy as you to install tsu package only to run root. We can not install sudo in termux if we are not rooted so we will do this with the help of proot distro. Follow the below steps one by one to install sudo in termux.
Step 1: First of all open the termux and connect to the internet.
Step 2: Type pkg update && pkg upgrade -y
so that your termux updates would update and upgrade.
pkg update && pkg upgrade -y
Step 3: Now install proot distro in termux using apt install proot-distro
Command and wait for ut to get installed.
apt install proot-distro
Step 4: Install Ubuntu in termux using proot-distro install ubuntu
Command.
proot-distro install ubuntu
Step 5: Now login into the Ubuntu distro using proot-distro login ubuntu
Command.
proot-distro login ubuntu
Step 6: Update ubuntu using apt update
Command. It will took some time to update.
apt update
Step 7: Install sudo in termux ubuntu using apt install sudo -y
Command.
apt install sudo -y
Step 8: Check if the sudo has properly installed or not using sudo su
command.
sudo su
We have successfully installed sudo in termux using proot distro. We can run now sudo apps in termux in proot distro, we just have to login in to the ubuntu using proot-distro login ubuntu
Command and use sudo command.
How to install sudo in termux in rooted devices?
Installing sudo in termux in rooted devices is much easier than in unrooted devices. In rooted device you need to open termux and type pkg install tsu
to install sudo in termux.
pkg install tsu
Conclusion:
In the above tutorial we have discussed how to install sudo in termux in both rooted and non rooted devices. Remember rooting a device will void its waranty and security also. Make sure to know the consequences of rooting your device before rooting it. Installing sudo in termux is much usefull so i have showed you without rooting your device. I hope you have liked this tutorial, if you have any query regarding this tutorial you can tell me through contact us page. Thanks for reading
This Website Does Not Promote Any Harmful Activity And Also Not To Root Device. All The Things That A User Will Learn And Use Will Be On Their Own.
Frequently asked questions:
Can i install sudo in termux without root?
You can not install sudo in termux without root but you can install sudo in a distro that you will install on termux.
Does rooting your device breaks its security?
Yes, rooting your device can lead to the security risks.
What does sudo command do?
It enables a user to run any tool or command as an administrator or root user.
How to check if i am a root user or not?
You need to type whoami
command to check if you are root user or not. If the command says root then you are a root user otherwise it will show you your username.