I have an issue where every once in a while I get an access denied error when attempting to delete or rename an executable. I'm running Windows 7 Ultimate 64-bit and I'm only working with files within my user's directory (documents, downloads, etc.).
When I get the access denied error in Windows Explorer, it will say that it is in use by another application. So I open up Process Explorer and search for anything that has that file opened and nothing ever does. However, it appears that this is a file permission issue.
If I right-click the file and go to Properties -> Security, I see a message that says:
"To continue, you must be an administrative user with permission to view this object's security properties. Do you want to continue?" Note that I am an admin user and I am the user that created the file (UAC is enabled). If I click the Continue button I get another dialog with this message: "You do not have permission to view this object's security properties. To view its security properties, you can try taking ownership of the object. As the owner, you can also control who gets permissions on the object. Please note that once you take ownership, the previous owner might not have access to the object. To try taking ownership of the object, select an account from the list, and then click OK."
So I select my user account, click OK and I get an access denied error.
Somehow the file permissions on this file has been completely removed. This is so strange since the files that I'm working with are often files that I've created myself (compiled from Visual Studio, downloaded an installer via Firefox, copied a file from a network drive or USB stick, etc).
What's even stranger is that if I had tried to delete the file initially, which resulted in the access denied error, I'll end up poking at the permissions for a bit, Google for a couple minutes, and finally I notice that the file is all of a sudden gone. So I'm stuck with this broken permission and I can't do anything with the file until about 5 or 10 minutes later when it magically disappears.
At first I suspected that my antivirus software was the issue (I'm running Microsoft Security Essentials). However, I've tried disabling it and completely uninstalling it and I still have the problem.
Any ideas of what might be going on here?