[PyKDE] Run program as root

Hans-Peter Jansen hpj at urpla.net
Wed Feb 15 19:29:22 GMT 2006


Am Mittwoch, 15. Februar 2006 12:30 schrieb Tina Isaksen:
> Tina Isaksen wrote:
> >> Try running kdesu "ps auxww" to get a nice password request UI..
> >>
> >> Pete
> >
> > Oh for crying out loud! Of course...
> >
> > "I wish I could see the woods but all those darn trees are in the
> > way..." :P
> >
> > Thanks Pete!
> >
> > Tina
>
> I was too quick it seems, or it still is too many trees obscuring the
> woods.
>
> I set optimistically out to use 'kdesu' but that was easier said than
> done. I looked at the PyKDE API reference and there it is actually
> listed a 'kdesu' module, but the link gives a 404. Also the 'kdesu'
> seems to be nonexcistent in PyKDE??
>
> So I guess I'm left with using a shell script or something to start
> my main program through 'kdesu'...

Yup, you will want to run your script as an argument to kdesu from a 
small helper shell script. 

Even if kde bindings would be still available, it imposes way to much 
ways to screw yourself security wise and won't pay off, than this 
pragmatic and easily audited approach.

Pete




More information about the PyQt mailing list