Difference Between su and sudo and How to Configure sudo in Linux

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Avishek Kumar

I am a major in computer science, love to research nix. I love to write codes and scripts, review distros, experiment Foss Technologies, write technical articles, Hack, of course Ethically. I am working as System Administrator (nix) for a NGO.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

18 Responses

  1. Mushthaq says:

    Hi friends,

    I have two user accounts. let test1 and test2. How can I switch to test2 from test1 without prompting password.
    :$su test2

    Any idea, please contact me at mushthaq089@gmail.com

    • Ravi Saive says:

      @Mushthaq,
      That’s not possible, because both are different users with different home directories, you must enter password to login to user account..

      • kannan says:

        What if the password is not set for neither of the users? It still prompting for password and what we have to give?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Join Over 80000+ Linux Users
  1. 53,676
  2. 2,838
  3. 20,639

Enter your email to get latest Linux Howto's