Q
Quentin Huo
Hi:
I am working in win 2003 and ASP.NET. I tried to modify the user rights from
an ASPX (writen in C#) page through running xcacls. But failed. What I did
is:
Process myProcess = new Process();
myProcess.StartInfo.FileName = "cmd.exe";
myProcess.StartInfo.Arguments = @"/C xcacls filename /T /E /G username:R;R
/Y";
myProcess.StartInfo.UseShellExecute=false;
myProcess.StartInfo.RedirectStandardOutput = true;
myProcess.StartInfo.CreateNoWindow = true ;
myProcess.Start();
However, it worked if only try to get the ACLs information:
myProcess.StartInfo.Arguments = @"/C xcacls filename /Y";
I think it might be caused by security setting of my system so that it did
not allow to change the security right.
Does anyone know where the problem is?
Thanks
Q.
I am working in win 2003 and ASP.NET. I tried to modify the user rights from
an ASPX (writen in C#) page through running xcacls. But failed. What I did
is:
Process myProcess = new Process();
myProcess.StartInfo.FileName = "cmd.exe";
myProcess.StartInfo.Arguments = @"/C xcacls filename /T /E /G username:R;R
/Y";
myProcess.StartInfo.UseShellExecute=false;
myProcess.StartInfo.RedirectStandardOutput = true;
myProcess.StartInfo.CreateNoWindow = true ;
myProcess.Start();
However, it worked if only try to get the ACLs information:
myProcess.StartInfo.Arguments = @"/C xcacls filename /Y";
I think it might be caused by security setting of my system so that it did
not allow to change the security right.
Does anyone know where the problem is?
Thanks
Q.