<p><br>
On May 1, 2012 7:49 PM, "Alex Rønne Petersen" <<a href="mailto:xtzgzorex@gmail.com">xtzgzorex@gmail.com</a>> wrote:<br>
>><br>
>> Also, is there a way to require the root password of the user when going<br>
>> create the directory in a restricted folder (like /usr) AFTER the<br>
>> application has started?<br>
><br>
><br>
> No idea, sorry.<br>
><br>
>><br>
>> Thank you.<br>
><br>
><br>
> -- <br>
> - Alex</p>
<p>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.<br>

</p>