How to make sudo ask for a password?

Bertilo Wennergren bertilow at gmail.com
Sun Dec 11 03:01:56 UTC 2005


Olafur Arason:

> Add you self to the admin group by doing:
>  adduser theusername admin
> then take your self out of the sudoers file.

But I'm already in the admin group, and in the sudoers file only the
admin group (and root) are mentioned, not my own username. Actually
I've tried all variants of that, but it's always the same: If me or
the admin group are given sudoers rights, then I can do sudo without a
password. It also doesn't matter if I put in "NOPASSWD: ALL" or
anything like that. Either I can't do sudo at all, or I can do it
without a password. The option I want, the normal and secure one, just
doesn't happen.

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

I've also tried to add "timestamp_timeout=0". No difference. And I've
tried "sudo -k". No difference. It _never ever_ asks for the password.

And I'm most definitly not runninga as root.

As far as I can see, this is not supposed to happen. Something must be
severly broken in my system. I've already tried reinstalling the sudo
program. No difference...

I've already asked about this three times in "ubuntuforums.org". No
one has answered. So now I try here. Please help.

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




More information about the ubuntu-users mailing list