Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Linux » How to switch users in Linux

How to switch users in Linux

Posted on 02/11/201615/08/2023 Christian By Christian No Comments on 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, Implementation of Kiosk Mode using Local Settings: Single App Kiosk Setup, 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.

Rate this post

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
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
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

  • Screenshot 2021 02 14 at 00.35.50
    How to manage automatic login on Ubuntu Linux Linux
  • Screenshot 2022 03 21 at 18.06.30
    How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
  • Rport
    RPORT the free and open source remote management tool Linux
  • Header image
    How to setup a Third-Party DNS Server on a Linux Server Linux
  • feature image sublime text 4
    How to install Sublime Text 4 on Ubuntu Linux
  • Groovy
    How to install Groovy on Linux and Windows Configuration Management Tool

More Related Articles

Screenshot 2021 02 14 at 00.35.50 How to manage automatic login on Ubuntu Linux Linux
Screenshot 2022 03 21 at 18.06.30 How to Configure Virtual Host for Apache HTTP Web Server to Host Several Domains on Ubuntu 20.04 LTS Linux
Rport RPORT the free and open source remote management tool Linux
Header image How to setup a Third-Party DNS Server on a Linux Server Linux
feature image sublime text 4 How to install Sublime Text 4 on Ubuntu Linux
Groovy How to install Groovy on Linux and Windows Configuration Management Tool

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • zoom 2
    How to stop Zoom App from launching automatically at startup on Mac Mac
  • How To Backup Your WordPress Database banner
    How to Backup and Restore your WordPress Files and Database Backup
  • wds
    What are the differences between Lite-Touch and Zero-Touch installation? Windows
  • erroradkupdate
    An error has occurred in the script on this page: HTA applications report a Script error after upgrading to ADK for Windows 11, version 22H2 Windows Server
  • image 28
    How to monitor your website uptime and status using Uptime Configuration Management Tool
  • images 3
    Install Minimal Container Templates on Proxmox Server Virtualization
  • screenshot 2020 02 07 at 21.59.33
    Prerequisites for setting up a Single and Multi App Kiosk Windows
  • Office 2021
    Upgrade Microsoft Office 2019 to 2021 on Mac JIRA|Confluence|Apps

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.