"You don't have permission to copy files to this location over the network" error

35,122

Solution 1

I ended up finding a very detailed explanation here. It seems, in a nutshell, the problem lies in the fact that while my user account has been authenticated with the XP machine, my administrative account has not.

Network logins are stored by individual login sessions, meaning that as a user the network credentials are stored, but any elevated processes do not have the credentials. This creates a problem when trying to copy the file over the network, because to retrieve the file I must be a user, but to put the file in the D drive I must be an administrator.

User token:

  • Can access network share
  • Can't save in admin folders

Admin token:

  • Has no stored credentials for network share
  • Can save in admin folders

Adding my plain-old-user self (mymachine\tanner) to the permissions solved the problem.

Solution 2

Open up an administrative command prompt, then map the share again in this administrative context.

net use \\destserver\share /user:destserver\username password

Retry the copy/move in explorer.

Share:
35,122

Related videos on Youtube

rtf
Author by

rtf

Updated on September 18, 2022

Comments

  • rtf
    rtf over 1 year

    I'm trying to copy a ~5 GB file to a folder on my D:\ drive from an XP machine and getting the following error:

    You don't have permission to copy files to this location over the network.

    enter image description here

    It then suggests I copy to the Documents folder first. Copying to the Documents folder first would be all fine and dandy if I had 5 GB to spare on C, but I don't.

    The D drive contains my old Windows 7 installation, and copying to these folders requires elevated permissions. Why am I prevented from copying directly to these folders?

    • Nullpointer42
      Nullpointer42 over 11 years
      To clarify, the source file is on the XP machine, and you're attempting to perform the copy from a Windows 8 machine, with the destination as the root of the D:\, running as admin, correct? Can you create files in your D:\ locally?
  • rtf
    rtf over 11 years
    I'm authenticating through the domain with admin privileges, so it looks like this has nothing to do with the privileges on the XP machine.
  • corwin01
    corwin01 over 11 years
    Yea. Can you check your permission on that folder and see what you do have?
  • rtf
    rtf over 11 years
    I have full control. Only thing that is different is that I'm not the owner.
  • corwin01
    corwin01 over 11 years
    Can you take ownership?
  • rtf
    rtf about 11 years
    If you came here from Google: Please let me know if this answer explained the problem to you! This question is getting a lot of traffic, but I can't tell if I explained it well enough.
  • Daniel K
    Daniel K over 2 years
    This is a better solution as it does not require any change to the destination share.