Linux: RunAS with System.Diagnostics.Process fails

<[email protected]>
Newsgroups gmane.comp.gnome.mono.general
Message-ID <!&!AAAAAAAAAAAYAAAAAAAAAOosgHnoPqdNlUO2DUrQ/[email protected]>
Hello !

I am just trying this:

Process p = new Process();
ProcessStartInfo psi = new ProcessStartInfo();
SecureString password = ReadPassword();
psi.UserName = args[0];
psi.FileName = args[1];
psi.UseShellExecute = false;
psi.Password = password;
.....

This works naturally on Linux too - but the required user is NOT the
executing user of that process - it is the same as the starter.

This looks like a bug in the mono classlib/runtime. It is not
a professional solution to run it via a "shell'ed" sudo.
What workarounds are availabe to solve this problem ?

Thanks,
Manfred



_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.