Facebook Twitter Instagram
    TECHZURE
    • Tech
      1. Hosting
      2. WordPress
      3. View All

      Building A Business With Unlimited Reseller Hosting

      January 24, 2021

      Resolve common HTTPS insecure site and mix-content warning Error

      June 18, 2020

      New Feature of Microsoft Edge: Constant Data Fetch from Chrome

      July 18, 2022

      Image and Video Date Fixer App: Complete Overview of Features and Benefits

      July 17, 2022

      Creating a Detailed Battery Report in Windows 10

      July 13, 2022

      Which Components needed for desktop

      July 10, 2022
    • Crypto

      How to Make an Account on Metamask

      July 21, 2022

      Crypto Testnet Faucets: How They Work and Should You Use Them?

      July 19, 2022

      Is Cryptocurrency The Future of Money?

      July 15, 2022

      Crypto and Blockchain Explained

      July 14, 2022

      Does NFT have a future?

      July 9, 2022
    • Gaming

      GTA Popularity Continues to Rising

      July 20, 2022

      Top Upcoming games and what to expect

      July 8, 2022

      Top Games of 2022

      July 7, 2022

      Play 2 Earn In Crypto

      July 3, 2022
    • How To

      How to Make an Account on Metamask

      July 21, 2022

      Creating a Detailed Battery Report in Windows 10

      July 13, 2022

      How to Resolve Error 1923 occurs when you try to update Adobe Acrobat DC

      July 12, 2022

      How to change name pattern in Sharex

      July 11, 2022

      How to make money on eBay

      December 9, 2021
    • Blog

      Crypto Testnet Faucets: How They Work and Should You Use Them?

      July 19, 2022

      The Rise of Private Trackers

      July 16, 2022

      Is Cryptocurrency The Future of Money?

      July 15, 2022

      Crypto and Blockchain Explained

      July 14, 2022

      Digital Marketing – The 21st century way of advertising

      May 16, 2022
    • News

      GTA Popularity Continues to Rising

      July 20, 2022

      The Rise of Private Trackers

      July 16, 2022

      Top Upcoming games and what to expect

      July 8, 2022

      Top Games of 2022

      July 7, 2022

      Is meta the future

      July 6, 2022
    • Reviews

      Best Grocery Shopping APP in India in 2020

      May 2, 2021
    TECHZURE
    Home»How To»How to switch another user to root user with Linux Commands
    How To

    How to switch another user to root user with Linux Commands

    By JainJuly 11, 2021Updated:July 16, 20222 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    SWITCH TO ROOT AND ANY OTHER USER
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Linux is the first choice of developers, and sometimes newcomers often get confused with switch another user to root user.

    Linux is really Sudo (su) command is a superuser privilege which grants you to perform tasks with administration rights, su can bypass any security privileges and helps you to avoid specific security measures to install the desired programmes or to make necessary changes.

    Sometimes people face problem switching to root user and not able to perform the tasks actively. We will discuss how easy it’s to change to root user and any other user.

    Switching to root user is different depending on the distribution you’re on, for example, Ubuntu, Linux, Kubuntu, Xubuntu and Lubuntu. Here’s the command:

    sudo su

    And, If you’re on a distribution which allows you to set a root user password when you’re installing a new distribution then you can use the below command:

    su

    To understand this simply if you will run the Sudo command then you will be asked to put the password, but if you use the su you will need to enter the root password.

    To confirm which username you’re currently on type the following command:

    whoami

    Now you know about root let’s discuss other users and adapt their environment.

    Su command is powerful, and you can easily switch to any other user, it is useful if you’re testing the user-account privileges and provisioning.

    If you need to switch from root user to another user, for example, your other user is Sara then issue this command:

    su Sara

    Now whatever you do on your system will be logged under the Sara and not in the default home folder but to if you need to log in as Sara and to adapt the full environment use this command:

    su – Sara

    I hope this clarifies your fundamental doubts and please comment below if you face any problem and need to suggest something.

    linux commands root user switch to root and any other user
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleEasily remove side strip from the Video Thumbnail in Windows 10
    Next Article How to Make Money on Youtube

    Related Posts

    How to Make an Account on Metamask

    July 21, 2022

    Creating a Detailed Battery Report in Windows 10

    July 13, 2022

    How to Resolve Error 1923 occurs when you try to update Adobe Acrobat DC

    July 12, 2022
    Add A Comment

    Leave A Reply Cancel Reply

    Editors Picks

    Binance And Its Uses

    July 1, 2022

    Ftx and why is it a good exchange?

    July 2, 2022

    Few Idea to Make Money In College

    September 6, 2021

    How to change name pattern in Sharex

    July 11, 2022

    The Top Ten Most Basic Linux Commands

    March 26, 2021
    techzure
    Facebook Twitter Pinterest Instagram Telegram RSS

    About Us

    • Techzure: Your Source for all things Techie Stuffs. We provide all the latest Tech, Games, Crypto news and reviews of World, Windows, Market & much more.

    Categories

    • Blog
    • News
    • Crypto
    • How To
    • Gaming
    • Reviews
    • Technology

    Services

    • Advertise with US
    • Cookies Policy
    • Copyright
    • Newsletters
    • Sponsored News
    • Work With Us

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    © 2023 All rights Reserved Techzure.
    • Privacy Policy
    • Terms
    • Contact

    Type above and press Enter to search. Press Esc to cancel.