when gksudo is rejected current operation is not cancelled

Bug #237177 reported by TAC one
2
Affects Status Importance Assigned to Milestone
Remote Apache Management tool
Fix Released
High
TAC one

Bug Description

Depending on what he's doing, when user refuses to enter root's password, the current operation is not cancelled and the program will ask user password for every next command in the current operation.

How to reproduce:
$ sudo -k
$ ./rapache.py
click "new", enter a domain name and press Return.
When the gksudo dialog pops out click "cancel".
The program will ask the user for root's password 2-3 times.

Expected behaviour:
Once cancelled the gksudo, the program should cancel the entire vhost creation without asking the password anymore

Tags: need-help
Revision history for this message
KillerKiwi (killerkiwi2005) wrote :

there is a python module called import gksu2 in python-gnome2-extras

This should give you what you need

Revision history for this message
KillerKiwi (killerkiwi2005) wrote :
Revision history for this message
KillerKiwi (killerkiwi2005) wrote :

Basic class i've been playing with

Grabs the password opens a pipe and feeds in password to sudo returns code, stdout and any error text.

Also logs the command

Revision history for this message
KillerKiwi (killerkiwi2005) wrote :

Theres a sudo bug that effects here

https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/46890

This means that after a first successful sudo password an incorrect password succeds

Revision history for this message
TAC one (tacone) wrote :

New notes by KillerKiwi:

(11:20:21 PM) KillerKiwi2005: its a bit ugly.. if you pipe stdout and stderr than the process loses its tty hooks so sudo ticket is created under 'undefined'
(11:22:21 PM) tacone: did you find a workaround ?
(11:22:47 PM) KillerKiwi2005: yeah dont capute stderr or run sudo -K with piping

TAC one (tacone)
Changed in rapache:
importance: Undecided → High
milestone: none → stage0
status: New → Triaged
TAC one (tacone)
Changed in rapache:
milestone: stage0 → early-eagle
TAC one (tacone)
Changed in rapache:
assignee: nobody → tacone
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.