[Mono-dev] Run process as a different user
Miguel Ángel Pérez
mangelp at gmail.com
Fri May 9 12:53:42 EDT 2008
2008/5/9 Andreas Färber <andreas.faerber at web.de>:
> Am 08.05.2008 um 20:47 schrieb Miguel Ángel Pérez:
> System.Diagnostics.Process is the way to go.
> 2008/5/7 pablosantosluac at terra.es <pablosantosluac at terra.es>:
>> What's the best way to start a process as a different user in Mono/Linux
>> using framework 1.1?
> Starting sudo -u user commandtorun ?
Yes, but you need to edit sudoers file to give access to the users of the
app to execute sudo or it won't work, and it also needs to specify the -S
switch to pass the password using the standard input instead of the
It's a bit tricky but maybe is the only solution for 1.1
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list