Bug 261809

Summary: KDEsudo asks for permission to run one command in a script, but does not ask about the next ones.
Product: [I don't know] kde Reporter: rockachu2
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: cfeck
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:

Description rockachu2 2011-01-01 20:27:36 UTC
Version:           unspecified (using KDE 4.5.90) 
OS:                Linux

If you accidentally start a partially-malicious script, that requires root priveledges, kdesudo will ask fro the password  for root, as it should. It also says the command that is running under kdesudo. BUT it does not say that it will run more kdesudo commands from the script without asking for a password.

Reproducible: Always

Steps to Reproduce:
create a script with kdesudo apt-get update, and apt-get upgrade:

kdesudo apt-get update;kdusudo apt-get upgrade

Actual Results:  
kdesudo asks fro a password to run apt-get update. It does not inform the user about the 'upgrade' command.

Expected Results:  
Told the user that it will allow all further calls from that script to run under root, and give an option to ask again for a root password the next time it is run from the same script (ex case, it would ask for a password for apt-get upgrade) 

I've made a few mistakes with busted repositories (I edit my sources a LOT) and this would have saved me every time.
Comment 1 Christoph Feck 2011-01-01 21:20:46 UTC
"kdesudo" is not part of the KDE Software Compilation (only "kdesu" is), but a distribution specific add-on. Please report this bug to https://launchpad.net/kdesudo