Re: ASP.Net 1.1, Win 2003, IIS6, System.Diagnostics.Process, run notep
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Mar 2006 16:16:26 +0000 (UTC)
If you are starting a new process while impersonating - the impersonated account will not be used, but the process will inherit the parent security token.
I guess the process account does not have the right access rights/privileges for what you are trying to do.
In 2.0 you can start processes using explicit credentials (but you need to know the password).
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Hi Dominick maybe you can help with this question.
System.Diagnostics.Process p = new Process();
p.StartInfo.RedirectStandardOutput=false;
p.StartInfo.FileName = p_DecryptSourcePath+"gpg_run.bat";
p.StartInfo.UseShellExecute = false;
p.StartInfo.WorkingDirectory = p_DecryptSourcePath;
p.StartInfo.RedirectStandardError = true;
p.Start();
p.WaitForExit();
String str = p.StandardError.ReadToEnd();
p.Dispose();
the above code will not run under the impersonated account no matter
what I try.
please help.
the batch file is supposed to decrypt some files that's it.
.
- Follow-Ups:
- References:
- Prev by Date: Signing documents with certificates
- Next by Date: Possibly a Permissions error, WIndows Installer using Sockets
- Previous by thread: Re: ASP.Net 1.1, Win 2003, IIS6, System.Diagnostics.Process, run notep
- Next by thread: Re: ASP.Net 1.1, Win 2003, IIS6, System.Diagnostics.Process, run notep
- Index(es):