[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.
>
> Regards.
>
> 2008/5/7 pablosantosluac at terra.es <pablosantosluac at terra.es>:
>
>> Hi,
>>
>> 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
terminal.
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
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080509/28fd9027/attachment.html
More information about the Mono-devel-list
mailing list