← Back to team overview

rapache-devel team mailing list archive

[Bug 237177] Re: when gksudo is rejected current operation is not cancelled

 

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

** Attachment added: "commandhandler.py"
   http://launchpadlibrarian.net/15491603/commandhandler.py

-- 
when gksudo is rejected current operation is not cancelled
https://bugs.launchpad.net/bugs/237177
You received this bug notification because you are a member of Rapache
Developers, which is subscribed to Remote Apache Management tool .

Status in rapache: New

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