How to make a directory?

Kevin Cox kevincox.ca at gmail.com
Tue May 1 17:05:53 PDT 2012


On May 1, 2012 7:49 PM, "Alex Rønne Petersen" <xtzgzorex at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120501/af106ff6/attachment.html>


More information about the Digitalmars-d-learn mailing list