I copied all Ubuntu system files to /home/ubuntu to obtain full Ubuntu operate system in Termux.
The Ubuntu system has a user with password. Termux is an app that provide part of Linux environment.
I use code below to start Ubuntu.
proot -0 -r ~/ubuntu -b /dev/ -b /sys/ -b /proc/ -b $HOME /usr/bin/env -i HOME=/home/wedge TERM="$TERM" PS1='[termux@ubuntu W]$ ' PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games /bin/login
However, I can't login to system with correct username and password.
I try to solve the problem by using
/bin/bash --login instead of
/bin/login . It will show errors below but I can access the system.
groups: cannot find name for group ID 9997 groups: cannot find name for group ID 50121
I now login with root account, but files seem read-only for me.
What should I do to login?
Sorry for my English :)