How to make sudo ask for a password?

Bertilo Wennergren bertilow at gmail.com
Sat Dec 10 04:06:00 UTC 2005


I use Kubuntu Breezy. For some unknown reason I can do sudo
without a password. That doesn't seem very secure. How can I
change that? I want to be asked for a password.

Actually I don't even need to do sudo at all. If I just click on
e.g. the synaptic icon, the program starts without asking me
anything, and allows me to do anything.

I'm not running as root. But when I installed I chose expert mode
(to be able to de create a separate home partition), so a root
account was created. After that I had to add myself to the
sudoers file in order to use sudo.

My sudoers file has this:

  Defaults !lecture,tty_tickets,!fqdn
  root ALL=(ALL) ALL
  %admin ALL=(ALL) ALL

The only time I need to provide my password, is when I log in
to KDE or Gnome (I almost always use KDE).

Doing "sudo -k" does not change anything.

This problem started with Breezy. In Hoary everything worked as
documented. (But my Hoary was not installed in expert mode.)

What can I do? Please help.

--
Bertil Wennergren <http://bertilow.com>




More information about the ubuntu-users mailing list