Gaming industry under DDoS attack. Get DDoS protection now. Start onboarding

Products

  1. Home
  2. Developers
  3. How to Change Users in Ubuntu

How to Change Users in Ubuntu

  • By Gcore
  • August 31, 2023
  • 2 min read
How to Change Users in Ubuntu

In the Ubuntu ecosystem, while the system’s design predominantly centers on single-user operations, there are moments when toggling between users becomes a necessity. Whether it’s for specific task delegation, maintaining security partitions, or experimenting with varying permissions, the ability to switch users is a critical tool in the Ubuntu user’s belt. This guide will walk you through the straightforward steps to change users in Ubuntu seamlessly.

Changing Users in Ubuntu

Changing users in Ubuntu can be done via the graphical interface or the command line. Here’s a step-by-step guide for both methods.

Method #1: Using the Graphical Interface

1. Log Out or Switch User.  To switch user, click on the system menu, typically located at the top right corner of your screen. Choose the user icon.

Other option is to select either another user to switch directly (if available) or choose “Power Off/ Log Out” return to the login screen.

2. Log in as a Different User. At the login screen, click on the user you wish to switch to. Input the password for that user and press enter or click the login button.

Method #2: Using the Terminal

1. Open Terminal. Press CTRL + ALT + T to open a terminal window.

2. Switch User Using su Command. In the terminal, type this command:

su - username

Take note to replace “username” with the name of the user you want to switch to. Enter the password for that user when prompted.

3. Return to the Original User (Optional). If you want to revert to your original user, type exit and press enter.

Good work! Now, you’ve learned how to switch between users in Ubuntu, making things simpler and more organized.

Conclusion

Want to run Ubuntu in a virtual environment? With Gcore Cloud, you can choose from Basic VM, Virtual Instances, or VPS/VDS suitable for Ubuntu:

Choose an instance

Related articles

What Is a High Availability Server?

Every minute your servers are down, your business is bleeding. For e-commerce sites, healthcare platforms, and revenue-critical applications, an outage isn't just an inconvenience. It's a direct hit to your bottom line, your reputation, and

Cloud vs Dedicated Server: Which Is Right for You?

Your server choice could be quietly costing you, or quietly holding you back. Pick the wrong infrastructure for your workload and you're either overpaying for idle hardware every month or watching your site buckle under traffic spikes you c

VPS vs Dedicated Server
VPS vs Dedicated Server: Which One Do You Need?

Your site is humming along fine, until it isn't. Traffic spikes, page loads crawl, and your hosting plan buckles under pressure right when it matters most. Choosing between a VPS and a dedicated server isn't just a technical checkbox. It's

Multi-Cloud Plan: What It Is and How It Works

Your cloud provider goes down. Applications fail. Customers can't access your services. And because you've built everything around a single vendor, there's nothing you can do but wait. For organizations locked into one cloud platform, this

Vendor Lock-In in Cloud Computing: What It Is and How to Avoid It

Imagine discovering that migrating your company's data to a new cloud provider will cost hundreds of thousands of dollars in egress fees alone, before you've even touched the re-engineering work. Or worse, picture being in Synapse Financial

What Is Sovereign Cloud and Why Does It Matter?

Picture this: a foreign government issues a legal order forcing your cloud provider to hand over sensitive patient records, classified research data, or critical national infrastructure details. You can't stop it. This isn't hypothetical. G

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.