[Mono-list] Aquire Root Privileges

Steve Lessard s_lessard at yahoo.com
Mon Jun 20 11:40:01 EDT 2011


Calling POSIX functions like setuid and setgid will never result in OS X popping up the authorization dialog because OS X's Authorization Services is not part of POSIX. To get that auth dialog you need to call Authorization Services APIs.  If you don't want to or don't have time to learn those APIs here's something that might still do what you want...

http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/


-SteveL

-SteveL


On Jun 16, 2011, at 1:48 AM, Robert Jordan <robertj at gmx.net> wrote:

> On 16.06.2011 00:40, Enqueue wrote:
>> I expected some kind of "Mono wants to access administrator
>> privileges"-Popup of the keychain but nothing happened. I would still need
> 
> Did you actually read the man pages of the functions you're invoking?
> Hint: they don't state that a popup will appear out of nowhere
> to steal root passwords ;)
> 
>> to do some chown and chmod stuff (chown root.root, chmod +s) to allow the
>> application accessing root privileges and therefore I still have the same
>> problem. How do all those installers solve this problem?
> 
> See the generic "xdg-su" that uses to invoke gksu for Gnome,
> kdesu for KDE, etc.
> 
> Robert
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110620/69d4d7de/attachment.html 


More information about the Mono-list mailing list