[Ubuntu-x-swat] [Bug 716595] Re: consecutive root_command_output() calls ask for password each time

2011-02-14 Thread Martin Pitt
OK, this is definitively gksu breakage when searchign for the password
prompt. Let's fix it at the proper place.

** Changed in: apport (Ubuntu)
   Status: New => Invalid

** Package changed: xorg (Ubuntu) => gksu (Ubuntu)

** Changed in: gksu (Ubuntu)
 Assignee: (unassigned) => Martin Pitt (pitti)

** Summary changed:

- consecutive root_command_output() calls ask for password each time
+ gksu ask for password each time with stdout redirection

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.
https://bugs.launchpad.net/bugs/716595

Title:
  gksu ask for password each time with stdout redirection

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 716595] Re: consecutive root_command_output() calls ask for password each time

2011-02-14 Thread Martin Pitt
(Note that "sudo whoami > /tmp/o" just works fine).

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.
https://bugs.launchpad.net/bugs/716595

Title:
  consecutive root_command_output() calls ask for password each time

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 716595] Re: consecutive root_command_output() calls ask for password each time

2011-02-14 Thread Martin Pitt
That seems to be a rather interesting gksu bug or misbehaviour: "gksu
whoami" does cache the password through sudo, but "gksu whoami > /tmp/o"
doesn't. So the output redirection breaks this somehow.

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.
https://bugs.launchpad.net/bugs/716595

Title:
  consecutive root_command_output() calls ask for password each time

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp


[Ubuntu-x-swat] [Bug 716595] Re: consecutive root_command_output() calls ask for password each time

2011-02-14 Thread Martin Pitt
Indeed it works when running without $DISPLAY, i. e. apport calls sudo
directly. But it doesn't seem to cache credentials when using gksu, as
this creates new PTYs (to run sudo in) every time.

We could provide a new API root_commands_output to accept a keyname ->
[command list] and slurp in all command outputs in one go. The xorg hook
could then use that.

** Summary changed:

- Apport hook prompts 3 times for password
+ consecutive root_command_output() calls ask for password each time

** Also affects: apport (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to xorg in ubuntu.
https://bugs.launchpad.net/bugs/716595

Title:
  consecutive root_command_output() calls ask for password each time

___
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : ubuntu-x-swat@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help   : https://help.launchpad.net/ListHelp