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 

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 :)

  • 2
    What do you mean, you installed Ubuntu in another Linux system? Please edit your question and explain what you did, and what you're trying to do. – Carl H Jan 29 '17 at 15:10
  • @CarlH I edited my question. Sorry for not stating the question clearly. – Wedge Black Jan 29 '17 at 15:22
  • create new user with same username and pass – Pavlos Theodorou Jan 29 '17 at 15:36
  • @PavlosTheodorou I can't make it. All files are read-only to me. I am not allowed to create a new user. – Wedge Black Jan 29 '17 at 15:39
  • Control+Alt+F1 ? create new user with same username and pass using terminal. Then Control+Alt+F7 , logout , login to that user. Test it and tell us if you can login through that terminal interface – Pavlos Theodorou Jan 29 '17 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.