[Mono-list] How to: start a process which shows a password window

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Dec 17 20:28:54 EST 2010

On Fri, Dec 17, 2010 at 7:48 PM, Dimitar Dobrev <dpldobrev at yahoo.com> wrote:
> I need to start a process on Mac OS X with root privileges which must prompt
> the user for a password. In Windows Vista and above this is achieved by
> setting Process.StartInfo.Verb to "runas". Unfortunately, this didn't work
> on the mac, the password window did not appear. I guess it won't work in
> Linux as well. Any ideas? Is this possible in any way (as far as Linux is
> concerned, gksudo is not desirable because it's not guaranteed to be
> available in KDE)?

On a recent Linux system you should be able to use xdg-su:

On MacOS there seem to be a few options:

Michael Hutchinson

More information about the Mono-list mailing list