[Mono-dev] Run process as a different user

Jacob Gladish jacobgladish at yahoo.com
Fri May 9 12:23:10 EDT 2008


Agreed assuming it was implemented. I tried a small test and it didn't work. Ultimately there's a call to CreateProcessWithLogonW which is implemented as
gboolean CreateProcessWithLogonW (const gunichar2 *username,
                                  const gunichar2 *domain,
                                  const gunichar2 *password,
                                  const guint32 logonFlags,
                                  const gunichar2 *appname,
                                  const gunichar2 *cmdline,
                                  guint32 create_flags,
                                  gpointer environ,
                                  const gunichar2 *cwd,
                                  WapiStartupInfo *startup,
                                  WapiProcessInformation *process_info)
{
        /* FIXME: use user information */
        return CreateProcess (appname, cmdline, NULL, NULL, FALSE, create_flags, environ, cwd, startup, process_info);
}

This is 1.9 source. I'm guessing this implies no go for 1.1 either.


----- Original Message ----
From: Miguel Ángel Pérez <mangelp at gmail.com>
To: "mono-devel-list at lists.ximian.com" <mono-devel-list at lists.ximian.com>
Sent: Thursday, May 8, 2008 2:47:25 PM
Subject: Re: [Mono-dev] Run process as a different user

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?

Thanks,

pablo

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080509/9d8fb613/attachment-0001.html 


More information about the Mono-devel-list mailing list