Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417425 - app-admin/sudo-1.8.5_p1 does not look at $SUDO_ASKPASS
Summary: app-admin/sudo-1.8.5_p1 does not look at $SUDO_ASKPASS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.sudo.ws/pipermail/sudo-wor...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-24 22:25 UTC by Iftikhar Rathore
Modified: 2012-05-30 05:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iftikhar Rathore 2012-05-24 22:25:51 UTC
I cannot use SUDO_ASKPASS anymore

irathore@mygen2 ~ $ export SUDO_ASKPASS=/usr/lib64/misc/ssh-askpass
irathore@mygen2 ~ $ sudo  -A bash
sudo: no askpass program specified, try setting SUDO_ASKPASS

It does not matter what I set the SUDO_ASKPASS varable to, e.g. I will set it to a non-existant binary

irathore@mygen2 ~ $ export SUDO_ASKPASS=/usr/lib64/misc/ssh-askpa
irathore@mygen2 ~ $ sudo  -A bash
sudo: no askpass program specified, try setting SUDO_ASKPASS

See above, it is same output (It should complain about (unable to run /usr/lib64/misc/ssh-askpa: No such file or directory)

H E R E   I    D O W N G R A D E   T O :    sudo-1.8.4_p4

mygen2 portage # emerge =app-admin/sudo-1.8.4_p4

Now that I downgraded to 1.8.4_p4

irathore@mygen2 ~ $ export SUDO_ASKPASS=/usr/lib64/misc/ssh-askpa   
irathore@mygen2 ~ $ sudo  -A bash
sudo: unable to run /usr/lib64/misc/ssh-askpa: No such file or directory
sudo: pam_authenticate: Conversation error

Above shows that it is looking at $SUDO_ASKPASS

Now I will set it to point to correct binary:

irathore@mygen2 ~ $ export SUDO_ASKPASS=/usr/lib64/misc/ssh-askpass 
irathore@mygen2 ~ $ sudo  -A bash
Got a popup (entered my password)
mygen2 irathore # 

Bingo!
Comment 1 SpanKY gentoo-dev 2012-05-26 18:09:11 UTC
new sudo version hooks getenv() which causes it to look only in the cleansed environment where SUDO_ASKPASS as removed.  posted upstream to see how they want to fix it.
Comment 2 SpanKY gentoo-dev 2012-05-30 05:01:34 UTC
should be all set now in the tree; thanks for the report!

Commit message: Version bump to fix SUDO_ASKPASS regression
http://sources.gentoo.org/app-admin/sudo/sudo-1.8.5_p2.ebuild?rev=1.1