LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > craigevil's random words of wisdom
User Name
Password

Notices


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
Code:
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. - http://www.debian.org/doc/manuals/de..._configuration

Other helpful sudo links:
Another more detailed sudo howto http://forums.debian.net/viewtopic.php?f=16&t=45390
Visudo Manual - http://www.gratisoft.us/sudo/visudo.man.html
Add a User To Group - http://www.cyberciti.biz/faq/ubuntu-add-user-to-group/
Proper way to open apps as root in X - http://forums.debian.net/viewtopic.php?f=16&t=53366
sudo - Debian Wiki - http://wiki.debian.org/sudo

HOWTO - get kdesu back to normal in KDE4 - http://forums.debian.net/viewtopic.php?f=16&t=40158
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.
Code:
   ##first type in:
    su

    ##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...

    ##type:

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

    ##hit enter, then type:
    exit

    ##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
    ##worked.
Someone just recently pointed out that the correct way to get kdesu is to run:
Code:
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 5724 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 06:11 AM.

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