Avoid typing sudo on Ubuntu Linux
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:
- Ubuntu Linux root password - default password
- Ubuntu Linux how to set the date and time via Network Time Protocol (NTP)
- Ubuntu Linux Configure DNS Name Server IP Address ( DNS Client )
- How to use shutdown command under Ubuntu Linux
- Install Multimedia Codecs For Ubuntu Linux
Discussion on This FAQ
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!


June 11th, 2006 at 7:20 am
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 !
June 12th, 2006 at 3:28 pm
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…