[pacman-dev] [PATCH 10/11] makepkg: do not ask sudo password twice
Andres P
aepd87 at gmail.com
Thu Jun 17 09:49:44 EDT 2010
On Thu, Jun 17, 2010 at 9:17 AM, Allan McRae <allan at archlinux.org> wrote:
> On 17/06/10 23:35, Andres P wrote:
>>
>> On Thu, Jun 17, 2010 at 9:04 AM, Allan McRae<allan at archlinux.org> wrote:
>>>
>>> Um... no it does not... sudo -l does not ask for a password even with
>>> timestamp_timeout=0.
>>>
>>> Allan
>>
>> Yes it does... man sudoers
>>
>> Defaults timestamp_timeout=0, passwd_timeout=0
>>
>> sudo -l /bin/true&& sudo /bin/true
>>
>> will ask you twice... come on now :/
>>
>
> allan at mugen ~
>> sudo -l
> Matching Defaults entries for allan on this host:
> timestamp_timeout=0, passwd_timeout=0
>
> User allan may run the following commands on this host:
> (ALL) ALL
>
> allan at mugen ~
>> sudo -l /bin/true && sudo /bin/true
> /bin/true
> Password:
>
> allan at mugen ~
>>
>
> I count one password request...
>
I advice that you create a new user with a fresh leash.
I'm using sudo 1.7.2p7-1 and could go through the trouble of naggging
folks to post their sudo output just to get this fixed ;)
My sudoers verbatim:
# Defaults specification
Defaults rootpw, timestamp_timeout=0, passwd_timeout=0
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
%wheel ALL=(ALL) ALL
Nothing exotic... the only relevant setting is timestamp
Andres P
More information about the pacman-dev
mailing list