Skip to content
Linux TLDR
  • 🏠 Home
  • 🐧 Topic
    • All in One
    • DevOps
      • Ansible
      • AWS
      • Docker
      • Git
      • Jenkins
      • Kubernetes
    • Hardware
      • Raspberry Pi
    • How to
    • Linux Commands
      • Builtin Commands
      • Curl Commands
      • Homebrew Commands
      • MySQL Commands
      • SSH Commands
    • Linux Distributions
      • Alma Linux
      • Debian
      • Fedora
      • Kali Linux
      • Linux Mint
      • Manjaro
      • Red Hat
      • Ubuntu
    • News & Updates
    • Package Installer
    • Programming
      • Bash Scripting
      • C/C++
      • Go Lang
      • Java
      • Javascript
      • Node Js
      • Php
      • Python
      • Ruby
    • Reviews
    • Tools
    • Troubleshooting
    • Tutorials
    • Weekly Roundup
    • What is
  • 🕵️ Privacy Policy
  • 📧 Contact Us
  • 📖 About
    • 🪶 Write an Article
    • 🔗 Follow Us
    • 🎁 Donate

How to Switch to Root or Normal User Account on Linux

Linux TLDR
Last Updated: December 17, 2023
Reading time: 2 minutes

If you are a root user and interested in switching to another user account, you can easily do it without requiring to know their password because you are a penguin.

However, if you are the user with sudo privileges and are interested in switching to another user account or root user, you are required to know your current password.

If you are a standard user without sudo privileges, you are still able to switch to another user account or to the account of the root user, but only if you know their password.

This is all done using the “su” command in Linux.

Table of Contents

Toggle
  • Tutorial Details
  • Switch from Root to Another User Account
  • Switch from Sudo User to Root User Account
  • Switch from Sudo User to Normal User Account
  • Switch from Normal User to Root User Account
  • Switch from Normal User to Normal User Account
  • Exit from the Current Logged-in User Account

Tutorial Details

DescriptionSwitching to Another User
Difficulty LevelModerate
Root or Sudo PrivilegesYes
OS CompatibilityUbuntu, Manjaro, Fedora, etc.
Prerequisitessu
Internet RequiredNo

Switch from Root to Another User Account

If you are a root user and interested in logging into another user’s account, use the following command with their username.

$ su [USERNAME]
  • Difference Between Su, Sudo Su, Sudo -i, and Sudo -s

Switch from Sudo User to Root User Account

If you are a user with sudo privileges, you can easily login to the root user account by knowing your current password, as shown.

$ sudo su

Output:

Switching from normal to root user
  • How to Block ‘su’ Access for Sudo Users

Switch from Sudo User to Normal User Account

If you want to peek into another user’s account, find out their username and know your current password, and specify both as shown.

$ sudo su jake

Output:

Switching from current user to different user
  • How to Add Normal User to Sudo Group

Switch from Normal User to Root User Account

If you are not a sudo user, you are still able to switch to the root user account only if you know the root account password as shown.

$ su

Output:

Switching from non sudo user to root user

Switch from Normal User to Normal User Account

If you are interested in switching to another user account from your current account, which does not have sudo privileges, you must know their username and account password in order to login.

$ su jake

Output:

Switching from non sudo user to different user
  • How to Create Normal User in Linux

Exit from the Current Logged-in User Account

After switching to another user account to get back to your actual account, execute the exit command in your current terminal session.

That’s all for now. Bye bye.

SHARE:

Recommended Articles

🔗How to Install Zabbix Server on Ubuntu 24.04 (Noble Numbat)
🔗Stellar Repair for MySQL – Product Review
🔗How to Install RQuickShare (NearbyShare/QuickShare) on Linux
🔗How to Install RabbitMQ Server on Linux (Quick Guide)
🔗How to Use Chattr Command in Linux (for Beginners)
🔗How to Setup SOCKS5 Proxy Server on Linux Using MicroSocks
🔗Reset the WordPress Admin Password Using CLI (via 2 Methods)
🔗How to Check Python Version in Linux (via 3 Methods)
🔗How to Check PHP Version in Linux (via 4 Methods)
🔗[Fixed] pkg-config script could not be found in Linux

Latest

Install zabbix server on ubuntu

How to Install Zabbix Server on Ubuntu 24.04 (Noble Numbat)

mysql database recovery tool

Stellar Repair for MySQL – Product Review

RQuickShare Linux

How to Install RQuickShare (NearbyShare/QuickShare) on Linux

Install RabbitMQ Server on Linux

How to Install RabbitMQ Server on Linux (Quick Guide)

chattr command

How to Use Chattr Command in Linux (for Beginners)

Newsletter

Explore the latest Linux news, tutorials, tips, and resources to master open-source technology.

Social Handles

quora

Your help is needed

AI and ad blockers are significantly impacting advertising revenue. Donate now to support funding for this independent site.

🎁 Make a Donation
Linux TLDR © 2026 - Discover, Learn, and Master Linux with Us 🐧