How to make sudo ask for a password?
Peter Garrett
peter.garrett at optusnet.com.au
Sun Dec 11 03:06:50 UTC 2005
On Sat, 10 Dec 2005 13:06:00 +0900
Bertilo Wennergren <bertilow at gmail.com> wrote:
> 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.
An unlikely but possible scenario is that your user has somehow been added
to the "sudo" group. If so, sudo will never ask for a password.
The cure would be to remove your user from that group.
Peter
--
Linux User #343161
More information about the ubuntu-users
mailing list