[Mono-list] Aquire Root Privileges

Enqueue danielku15 at yahoo.de
Mon Jun 20 12:24:16 EDT 2011


Robert Jordan wrote:
> 
> 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 ;)
> 
I thought that the OS hooks into such setuid requests and provides the OS
specific dialog to grant additional privileges to a process. My intention is
not to steal any passwords. Wouldn't be it a big security hole if you could
access the root password during entering to this "popup"? ;) 
I simply need to do some privileged actions. Think of using the ICMP class
which requires this privileges.  (see 
http://www.mono-project.com/FAQ:_Technical FAQ )


Robert Jordan wrote:
> 
> See the generic "xdg-su" that uses to invoke gksu for Gnome,
> kdesu for KDE, etc.
> 
Thanks, using this command I can extract my main executable and call it
using this command (Process.Start). For Mac OS X I simply use 
http://www.performantdesign.com/2009/10/26/cocoasudo-a-graphical-cocoa-based-alternative-to-sudo/
cocoasudo . If everything works I will provide the code here for future
purposes :D

Thanks

--
View this message in context: http://mono.1490590.n4.nabble.com/Aquire-Root-Privileges-tp3600287p3611843.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list