About Linux FAQ

Browse More FAQs:

Avoid typing sudo on Ubuntu Linux

Posted by Vivek Gite [Last updated: November 21, 2006]

Q. How do I disable sudo command? I prefer old way to become super-user i.e use of 'su -' command.

A. New Ubuntu Linux v6.06 (LTS) Server is here and one of the annoying feature is use sudo (which is good for Desktop systems) for each command. On a dedicated Linux server I prefer to use su to become a super user and then run command and log out.

So after installation type following commands to setup root account:
sudo passwd root
Input root password.

Now use su for rest of your work:
$ su -
Then carry out all your work.

Please note that I personally recommend using sudo, which is much more secure and better to use. But, since you asked for it I had give you all the instructions.

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. Anonymous Says:

    I understand your question.

    as root , open the file /etc/sudoers
    with vi or run the command visudo

    in this file are users and groups and their permissions.

    comment with # at all lines without # (commonly user root and the group %admin and others)

    save ! :)

  2. jrm Says:

    Instead of ’su -’ you can use ’sudo -s -H’ to get you root environment…

    A nifty alias would be ‘alias god=”sudo -s -H”‘. Typing ‘god’ and entering you password will give you almighty powers…

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.