LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   so su me (https://www.linuxquestions.org/questions/programming-9/so-su-me-84033/)

lackluster 08-20-2003 10:40 PM

so su me
 
how does KDE do that thing where when they need root permissions they ask for the password and then run the exec? how can one do that programmatically (yes, I could just look at the source, but there's just so much of it!)?

jschiwal 08-20-2003 11:35 PM

There is a program called kdesu that does what you are talking
about. If you look in the properties for such a program
dispatched from the desktop or menu, It probably has something
like 'kdesu <program>' in the execute field. So you are actually
running the kdesu program with the <program> as an argument.

Please take a look for yourself, what may be executed may be
different, but I think that the idea is the same.


All times are GMT -5. The time now is 03:46 AM.