So I have a pyGTK app going on nicely, but it requires sudo permission (under Linux) to perform a BASH operation.
If I prompt for a password using a GUI, is there any way I can do my BASH stuff without sudo asking the user for a password in the console?
# example # ... from os import system # ... system("sudo mkdir /dev/home")
Given a password, and using pyGTK, how could I run that system() operation without even touching a terminal?
ps; ive seen this done in Tk, but the code was too obfuscated to make out what the heck they did...
If you've got time to kill; check out KleanSweep (its a KDE app). When you start it, it asks for your root password and then it does what it needs to.