On May 1, 2012 7:49 PM, "Alex Rønne Petersen" <xtzgzo...@gmail.com> wrote: >> >> Also, is there a way to require the root password of the user when going >> create the directory in a restricted folder (like /usr) AFTER the >> application has started? > > > No idea, sorry. > >> >> Thank you. > > > -- > - Alex
You could execute a system command and change your apps privileges but this is a bad/risky way to do it. I would use sudo or gksudo and launch the command externally so that you don't grant your app root permissions and then do something stupid. If those actions are common I would only allow root to use your app.