How to Change Users in Ubuntu

To change users in Ubuntu, you can use the following methods:

Switch User from the GUI:

  • If you’re using a desktop environment like GNOME, Unity, or KDE, you can simply click on your username at the top-right corner of the screen. Then, select “Switch User” from the dropdown menu. This will take you to the login screen where you can choose another user and log in.

Using the Terminal:

  • You can also switch users using the terminal. Open a terminal window by pressing Ctrl + Alt + T or searching for “Terminal” in the applications menu.
  • To switch to another user, use the su command followed by the username. Replace username with the username of the user you want to switch to. You will be prompted to enter the password for that user.
su username 
  • Alternatively, you can use the sudo -i -u username command to switch to another user with elevated privileges:
sudo -i -u username

Again, replace username with the username of the user you want to switch to. You will be prompted to enter your password.

Using the Fast User Switch Applet:

  • If you’re using a desktop environment like GNOME, you might have a “Fast User Switch” applet on the top panel or in the system tray. Clicking on this applet will allow you to quickly switch between users.

Remember, switching users will log out the current user and all their unsaved work will be lost. Make sure to save any important work before switching users.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *