Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs > craigevil's random words of wisdom
User Name


Ramblings about Debian GNU/Linux
Rate this Entry

Howto enable sudo in Debian

Posted 09-20-2012 at 11:21 AM by craigevil
Updated 09-21-2012 at 10:20 AM by craigevil

Debian unlike other distros like Ubuntu does not come with sudo enabled by default. That said it is easy enough to set it up.

How to setup sudo:

1) Use visudo to edit your sudoers file
2) Add your user to the sudo group
adduser foo sudo
3) Or you can use gksu, or kdesu on KDE.

Or you can follow the simple steps here:
Debian Reference Chapter 1. -

Other helpful sudo links:
Another more detailed sudo howto
Visudo Manual -
Add a User To Group -
Proper way to open apps as root in X -
sudo - Debian Wiki -

HOWTO - get kdesu back to normal in KDE4 -
This one is actually pretty easy. In a terminal here is what you do:
Anywhere you see ## just after that is instructions you do NOT have to type the text directly AFTER the ## signs,
what you have to type will either be BEFORE the ## on a line or the line will have NO ## signs.
   ##first type in:

    ##after you hit enter you will see
    Password:         ##<----------- type in your root password here.

    ##Now you will see your prompt change from a $ to a # sign

    ##Don't worry, almost done now...


    ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu

    ##hit enter, then type:

    ##You are now back to your regular user in your terminal. Lets test that puppy out!

    kdesu dolphin

    ##The normal kdesu dialog should pop up asking for roots password with the explanation that the program 
    ##dolphin needs root permissions. You can just cancel the dialog box since it was only a test to see if the link
Someone just recently pointed out that the correct way to get kdesu is to run:
dpkg-reconfigure --priority=low kdesudo
using that you choose which you want to use kdesu or kdesudo. Learn something new everyday.
Posted in Uncategorized
Views 5700 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 05:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration