[PyKDE] Run program as root

Patrick Stinson patrickkidd at gmail.com
Tue Feb 14 08:45:23 GMT 2006


Even though this is more of a python question than a pykde question,

#!/bin/sh

# wrapper shell script
sudo /path/to/python $@



On 2/13/06, Tina Isaksen <tina at bestemselv.com> wrote:
>
> Noob question:
> As a learning project I'm making some system tool frontends for kde
> (using Qt), but for the life of me I can't find how to make a script run
> as root (superuser)... and prompt for the root password first of course?
>
> Thanks
> Tina
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>



--
Patrick Kidd Stinson
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060214/8ecb6c5a/attachment.html


More information about the PyQt mailing list