If you know the root password, you can switch to root user simply with: su Since we are discussing the su command here, let's use that only. There are several ways to switch to the root user. You can switch back to your logged-in user by entering: exit If you are running as the root user, you can simply switch to the other user with its name: su other_username You can list the users in Ubuntu with the following command and get the desired username from the bottom of its output: compgen -u Switching to a normal user from root user □️ You need to know the exact username to which you need to switch to. Intrigued? Let's see all the above in detail, along with a few additional tips and use cases on switching users in Ubuntu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |