This Wiki explains SUDO for TERMUX
Installing sudo in termux makes ur android device possible to execute a command as another user.
It will install ubuntu where u can use sudo...
After install it will create new folders:
- ubuntu-fs
- ubuntu-binds
Its gonna take cca 300+ mb...
In ubuntu-fs folder will be:
- bin
- etc
- lib
- mnt
- proc
- run
- srv
- tmp
- var
- boot
- home
- media
- opt
- root
- sbin
- sys
- usr
So evry time u need doing sumthig as root user u can use this...
Ur prompt changes in:
root@localhost:~#
thats how u know u r in sudo mode.
! Note: It doesnt root ur device just makes possible u act as root...
Normaly when u try use sudo in termux its wont let u, showing this kinda msg:
$ sudo --list
No superuser binary detected.
Are you rooted?
But when u run as root@localhost:~#
root@localhost:~# sudo --list
sudo: unable to resolve host localhost: Name or service not known Matching Defaults entries for root on localhost:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin,
use_pty
User root may run the following commands on localhost:
(ALL : ALL) ALL
root@localhost:~#
sudo working...
WHAT sudo DO ?
Binary package “sudo” in ubuntu:
sudo
Provide limited super user privileges to specific users Sudo is a program designed to allow a sysadmin to give limited root privileges to users and log root activity. The basic philosophy is to give as few privileges as possible but still allow people to get their work done.
Many linux users allrdy know sudo, but if u r new with linux, sudo is mother for all kinda types of linuxes...
Todays allmost evry android device runs under linux, but if ur **no rooted no sudo ** use for u... termux app makes this possible...
Where to find sudo
Before building sudo, make sure you have the current version. The latest sudo may always be gotten via anonymous ftp from ftp.sudo.ws in the directory /pub/sudo/ or from the sudo web site, https://www.sudo.ws/
The distribution is sudo-M.m.tar.gz where M is the major version number and m is the minor version number. Beta versions of sudo may also be available. If you join the sudo-workers mailing list you will get the beta announcements (see the Mailing lists section below).
What's new
See the NEWS file for a list of major changes in this release. For a complete list of changes, see the ChangeLog. For a summary of major changes to the current stable release, see https://www.sudo.ws/releases/stable/.
If you are upgrading from an earlier version of Sudo, read docs/UPGRADE.md for information on changes in behavior that may affect you.
For a history of sudo see docs/HISTORY.md. You can find a list of contributors to sudo in docs/CONTRIBUTORS.md.
Sudo web page
There is a sudo web page at https://www.sudo.ws/ that contains documentation, downloads, a bug tracker, the source repo, the sudo blog, information about beta versions and other useful info.
Copyright
Sudo is distributed under an ISC-style license. Refer to LICENSE.md for details.