How to make sudo ask for a password?

Olafur Arason olafra at gmail.com
Sat Dec 10 20:53:26 UTC 2005


Add you self to the admin group by doing:
 adduser theusername admin
then take your self out of the sudoers file.
Hope it helps.
Also you are not allways promted for the password
it has a limted lease so you don't have to repeatedly
supply your password.

Olafur Arason
2005/12/10, Bertilo Wennergren <bertilow at gmail.com>:
> 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>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list