[FFe] sudo do not remember password when std(in|out|err) are not connected to a terminal

Bug #979319 reported by Etienne Goyer
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

sudo will not remember the password (and thus prompt for it) when none of stdin, stdout and stderr are connected to a terminal. In certain use-cases, this could be problematic. For example, in a build script where std(in|out|err) are all connected to pipes. See discussion at http://code.google.com/p/chromium-os/issues/detail?id=18393 for such a use-case.

There is a commit upstream that resolve this problem:

    http://www.sudo.ws/repos/sudo/rev/b9dfce12af85

Would it be possible to consider the above commit for inclusion in precise?

Changed in sudo (Ubuntu):
importance: Undecided → Low
Revision history for this message
Steve Langasek (vorlon) wrote :

This is a new feature, so should go to the release team for sign-off.

I've reviewed the patch myself and it looks safe.

Changed in sudo (Ubuntu):
status: New → Triaged
summary: - sudo do not remember password when std(in|out|err) are not connected to
- a terminal
+ [FFe] sudo do not remember password when std(in|out|err) are not
+ connected to a terminal
Changed in sudo (Ubuntu):
status: Triaged → New
tags: added: css-sponsored-p
Revision history for this message
Martin Pitt (pitti) wrote :

Nice! This indeed has bothered me for some time as well. The patch looks fine to me, approved.

Changed in sudo (Ubuntu):
status: New → Triaged
Revision history for this message
Stefano Rivera (stefanor) wrote :

Doesn't look like anything actually happened here for precise. But the upstream version of sudo in quantal does include this patch (and a zillion follow-ups)

Changed in sudo (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.