Xcopy /O Fails With ImpersonateLoggedOnUser
From: Phillip Galey (pgaley_at_starcalif.com)
Date: 02/19/04
- Next message: Herbert: "LicenseProvider step-by-step ?"
- Previous message: hotmail: "Re: Impersonate User asp.net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 19 Feb 2004 12:59:12 -0800
We're trying to copy folders, including ACLs, from one place to another on a
Windows 2000 Server. We've created a user that has the right to copy
folders, including ACLs. We're using the XCOPY command with the /O option
to signify that ACLs are to be included:
XCOPY /O /E /T /I FromPath ToPath
This command works wonderfully if authenticated using NET USE. However, if
instead of using NET USE, we use LogonUser and ImpersonateLoggedOnUser, then
the xcopy command fails because for some reason the right to write ACLs is
no longer there.
Is there a way to get the above command to work using impersonation? We
need to avoid using NET USE because it doesn't have the security
characteristics we need (it provides access outside of the program).
Thanks.
Phil
- Next message: Herbert: "LicenseProvider step-by-step ?"
- Previous message: hotmail: "Re: Impersonate User asp.net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|