Permissions corrupted on temp folder?

6

1

I tried to run a game on a family member's computer and go a strange error: Apparently it got an Access Denied error message when creating a file in the temp folder. Since permissions should be standard user profile permissions I went into the permissions editor for the folder, set it to replace all permissions on child objects to the current permissions, an hit apply.

This is what I got

enter image description here

There were a couple of other files that had this issue as well. I'm extremely puzzled by this error though as the user should have access to everything in the folder. This complicated by the fact that I can create a text document, edit, and save it no problem but my game even running as an administrator can't create its temp file

Things I've tried

  1. Reboot (clears the temp folder and also fixes a lot of windows problems)
  2. Running Explorer as an administrator
  3. Checked that there were no viruses with Security Essentials

I'm puzzled on how to continue. Does anyone have any suggestions?

TheLQ

Posted 2012-05-28T17:53:12.853

Reputation: 2 738

Answers

2

You can't apply new security permissions without having ownership of the folder first.

You need to take ownership, and then click OK all the way out of there, before you can go in and change the security as you want it in your screen capture.

user3463

Posted 2012-05-28T17:53:12.853

Reputation:

Hmm, strange. Took ownership of the folder, applied permissions successfully, aaand... access denied. Fired up Procmon and aw that a bunch of other temp folder reads and writes went through but only creating a single temp file failed. Absolutely no idea why – TheLQ – 2012-05-28T22:57:44.970

1Did you try with the TAKEOWN /F <path> /R /A command line? – None – 2012-05-28T23:00:17.717

Yep, same result. – TheLQ – 2012-05-29T00:22:09.667

I've just tried it and it works on my machine. Perhaps you need to run a CHKDSK /F on the drive to make sure the partition is ok. – None – 2012-05-29T02:12:13.170

1

Try creating a new Temp folder. Personally, I hate that Microsoft moved the Temp folder to be umpteen subfolders deep, so I always create a new one at C:\Temp.

Change the TMP and TEMP environment variables for both the user and the system to C:\Temp, then reboot. Then try to play your game again.

Once the game has been fixed, delete the old Temp contents. There will be one under each login under C:\Users, and one under C:\Windows.

Tom

Posted 2012-05-28T17:53:12.853

Reputation: 1 321

0

Just delete the entire contents of %Temp% folder, ignore any file that refuses to be deleted, try to take permissions again.

Shahmir Khan

Posted 2012-05-28T17:53:12.853

Reputation: 1