with the following commands we can become A root user in Termux.
$ cd termux-sudo
$ pkg install ncurses-utils
$ pkg install tsu
$ cat sudo > /data/data/com.termux/files/isr/bin/sudo
$ chmod 700 /data/data/com.termux/files/usr/bin/sudo
$ sudo su
$ sudo tsu
$ cd termux-sudo
$ pkg install ncurses-utils
$ pkg install tsu
$ cat sudo > /data/data/com.termux/files/isr/bin/sudo
$ chmod 700 /data/data/com.termux/files/usr/bin/sudo
$ sudo su
$ sudo tsu