How to Switch Users in Ubuntu and Other Linux Distributions [Quick Beginner Tip]

It is really simple to switch users in Ubuntu or any other Linux distribution using the terminal.

All you need to do is to know the unsername and its account password and you can switch users with su command.

Youll be asked to enter the password of the user you want to switch to.

As you can see in the screenshot above I changed to user prakash from user abhishek in the terminal.

There are some minor details with this method that Ill share with you in a moment. Ill also share the graphical way of switching users in Linux if you are using desktop Linux.

Switching to root user.

If you want to switch to the root user in Ubuntu you can use the following commandsudo suYoull have to enter your own user password here.

Lets see things a bit in detail. To switch users you need to first know the exact username because tab competition doesnt work here. You can list all the users in Linux command line by viewing the content of the etcpasswd file.

...

Read Full Post

News Link: https://itsfoss.com/switch-users-ubuntu/.
RSS Link: https://itsfoss.com/feed/.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.