Skip to content

TechDirectArchive

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

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
  1. Home
  2. Breadcrumb-Yoast

[wpseo_breadcrumb]

How to switch users in Linux

Posted on 02/11/201615/08/2023 IT Expert By IT Expert 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, 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

  • zabbix
    Monitoring services using Zabbix Linux
  • systemd services
    How to use Systemd Timers on Linux Linux
  • fallocate
    What the Fallocate command does Linux
  • S3 Bucket 1
    How to delete AWS S3 Bucket and Objects via  AWS CLI from Linux AWS/Azure/OpenShift
  • dsdfg
    Create a Bootable USB Drive Using dd Command on Linux Linux
  • On ubuntu mariadb
    How to install MariaDB on Ubuntu Linux

More Related Articles

zabbix Monitoring services using Zabbix Linux
systemd services How to use Systemd Timers on Linux Linux
fallocate What the Fallocate command does Linux
S3 Bucket 1 How to delete AWS S3 Bucket and Objects via  AWS CLI from Linux AWS/Azure/OpenShift
dsdfg Create a Bootable USB Drive Using dd Command on Linux Linux
On ubuntu mariadb How to install MariaDB on Ubuntu Linux

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

Veeam Vanguard

  • Locate Find and Grep Required 1
    Locate, Find and Grep: Search for files and patterns in Linux or Unix-like OS Linux
  • screenshot 2020 03 13 at 20.24.17
    How to install Cygwin packages from the command line Windows Server
  • veeamONE integration with VBR
    Install Veeam ONE and Add VBR: Fix failed to connect to VBR Backup
  • fix frequent shutdown due to licensing issues   Windows
    Fix Windows Server frequent disconnects and shutdown Windows Server
  • How To Update WinPE Boot Images With Windows UEFI CA Cert
    Update WinPE Boot Images with Windows UEFI CA Certificates [Part 2] Windows Server
  • vmwarefrsd4
    CVE-2021-31693: VMware Tools for Windows update addresses a denial-of-service vulnerability Network | Monitoring
  • Screenshot 2020 05 14 at 18.00.59
    Linux Error 13: Permission denied – Are you root Linux
  • unnamed
    Add or delete users and set permissions in Azure AD AWS/Azure/OpenShift

Subscribe to Blog via Email

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

Join 1,803 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

AWS 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.