Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to switch users in Linux

Posted on 02/11/201617/08/2026 Christian By Christian No Comments on How to switch users in Linux
  1. Home
  2. Linux
  3. How to switch users in Linux
Linux user switching

Learn how to switch users in Linux with ease. One simple method is using the ‘su’ command, allowing swift transition to the admin account within your current session. This proves helpful, particularly when the root user faces login issues via SSH or the GUI display manager. Here are some other articles relating to automatic logon: How to enable or disable automatic login on macOS, how to prevent MacBook from automatically Logging out, and Implementation of Kiosk Mode using Local Settings: Single App Kiosk Setup.

Als, see how to start an application automatically on macOS, and how to disable automatic screen lock on Ubuntu Desktop with the GUI and dconf Editor.

How to switch users in Linux on the command line using "sudo su"

Looking to enhance your Linux skills? Discover the power of Su, also known as substitute user or switch user. Learn how to switch users in Linux effectively, allowing you to execute commands with different user privileges. When using Su, you can invoke a shell without altering the working directory or the user environment.

root@test-VirtualBox:~# su test
test@test-VirtualBox:/root$

Changing to the root user

test@test-VirtualBox:/$ sudo -i

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Linux Tags:Linux distro, Ubuntu, Ubuntu 20.04 LTS

Post navigation

Previous Post: How to enable ssh via ASDM on Cisco ASA
Next Post: HA-Proxy Configuration File: Copy Between Nodes on Proxmox VE

Related Posts

  • trip wire feature
    How to install and configure Tripwire on Ubuntu Linux
  • 517443 637084112713220326 16x9 1
    How can I tell if a password is set for a user account on Linux Linux
  • chamedk8s featured
    Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
  • SUBVERSION FEATURE
    How to Install Apache Subversion on a Linux System Linux
  • dns
    How to setup a cache-only DNS server Linux
  • posfix as an smtp server
    How to Install and Configure Postfix as a Send-Only SMTP Server Linux

More Related Articles

discorddd Discord Installation Guide for Linux System Linux
chamedk8s featured Install CNF Certified Kubernetes in AWS AWS/Azure/OpenShift
Synergy software kvm Why Software KVMs such as Synergy is replacing Hardware KVMs Linux
Add User to Sudoers Add a User to the Sudoers List in Linux Linux
sdf Creating an offline local repository in Linux Linux
2FA For SSH in Linux Set Two-Factor Authentication for SSH in Linux Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • Featured image batch rename
    Batch rename multiple files on Windows Windows
  • powershell logo
    Connecting to a remote server failed and WinRM cannot process the request: Error code 0x8009030e occurred while using Kerberos authentication, and a specified logon session does not exist Scripts
  • update Docker desktop
    How to manually update Docker desktop Containers
  • disable camera in Windows
    How to disable Camera Access in Windows Windows
  • Azure Stack 1
    How to create a load balancer for Azure Stack Hub Network | Monitoring
  • ccsC
    NTuser.dat file: How to correctly load Windows Registry Hive Windows
  • How to upgrade domain controllers e1775563888303
    Build a New DC vs Swing Migration: Upgrade Server OS Correctly Windows Server
  • Featured image This network connection does not exist
    How to fix this network connection does not exist Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.