Bug 261809 - KDEsudo asks for permission to run one command in a script, but does not ask about the next ones.
Summary: KDEsudo asks for permission to run one command in a script, but does not ask ...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 20:27 UTC by rockachu2
Modified: 2011-01-01 21:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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