Celeb Glow
general | March 31, 2026

How to switch from root to user in Ubuntu running in Termux?

I recently installed Ubuntu via Termux on my android phone.

This version is specified when I enter the username and password.Welcome to Ubuntu 20.04.2

I once went from root to user mode by adduser

root@localhost:~# <USER>@localhost:~#

But now I do not know how to switch to this mode again.

How to switch from root@localhost:~# to <USER>@localhost:~#

1

1 Answer

To switch to an user with username john, enter the command

su john

And the prompt would change from # to $ (root to ordinary user).

To get back to root, type exit.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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