Windows XP – Fix Access Denied for 1GB .zip File on Local Network

file-sharingnetwork-sharespermissionswindows xp

I have two computers on our local network both running Windows XP. My main computer has local network sharing setup for \etc\install.

I have a folder with two 1GB .zip files, one of which I've had for a while, and one of which is new — let's call them OLD.zip and NEW.zip. Using Windows Explorer drag & drop, I'm trying to copy the new file NEW.zip from my main computer to my lab computer. But it won't work; I get an error message:

Cannot copy NEW.zip: Access is denied.

Make sure the disk is not full or write-protected and
that the file is not currently in use.

which is really odd, because I don't get that error message when I try to copy OLD.zip; it works fine. (And there's 38GB free on my lab computer hard drive, so I'm not running out of space.)

I've tried restarting my main computer, and it still has the problem.

What could be causing this, and how can I fix it?

Best Answer

It likely is a permission issue, but here's why it might be confusing. What I'm assuming might have happened is the following:

  • You originally had the NEW.zip file in a location with more restrictive permissions (at the NTFS level) such that the network user attempting the copy wouldn't have access.
  • You moved the NEW.zip file to the network-accessible folder having less restrictive permissions for the network access, fully intending for the file to be accessible to the network user.
  • However, when files are moved in Windows on the same drive, they retain their previous permissions. Refer to this Microsoft KB article. Quote:

By default, an object inherits permissions from its parent object, either at the time of creation or when it is copied or moved to its parent folder. The only exception to this rule occurs when you move an object to a different folder on the same volume. In this case, the original permissions are retained.

  • In copying the file locally within the same folder to Copy of NEW.zip, you reset the permissions to inherit from the parent folder (the less restrictive ones)
  • Thus, you could copy the copy of the file, but not the original still retaining the more restrictive permissions.

I see this happen often at work, when some of the less experienced developers extract a ZIP archive to their desktop, then move the folder to wwwroot\inetpub, and then are puzzled why they can't access the folder via their web server. All because permissions move with a moved item when on the same drive. Copies (or moves across drives) get a new set of permissions from the parent folder.

Does that make sense? Is that the likely scenario here?

Related Question