Temp folder writing permission by itself

Page 2 - Seeking answers? Join the Tom's Hardware community: where nearly two million members share solutions and discuss the latest tech.
Status
Not open for further replies.

JohnnyR2D2

Distinguished
Jan 19, 2009
40
0
18,530
Hello,

I have just recently clean - re-installed my system - it's Windows 8 Pro x64. I have one dedicated SSD hard drive to be used by the OS and most of the applications which means Disk C is the system drive where I keep all installed programs and it's about 250 gigs in size. All the other HDs are used to keep all my documents, games, backups and other stuff. Now, from time to time when I try to run WinZip or an installer of some sort I get different kinds of error message which always come to this: the app has no access to temp folder. I went to the Temp folder located at C:\Users\<Username>\AppData\Local\Temp and noticed that the Security Tab of that folder only contains the following users:

Everyone with low permissions (read and write)
Administrators with Full control.

I've checked in two other different computers in my home with the same OS installed and those computers has three users instead of two listed in the security Tab (SYSTEM, Administrators and the machine user with full access to that folder).

I then changed the security permissions of that folder to match the other computers meaning that I removed the Everyone and added the SYSTEM and the machine user (myself).

Now the funny part - everything works perfectly after that change but couple hours again all of the sudden the issue returns and guess what? it changes the permission by itself back to what were before (Everyone and Administrators).

I ran the Kaspersky which is my AV and other malware programs such as Spybot and Malwarebytes and they couldn't find anything in my computer.

I'm at a loss here. I consider myself to be fairly experienced computer user, but that kind of behavior is beyond my comprehension. Does anyone have any clue what I might be doing wrong? Maybe some policy in the registry or GPedit?

As a tip - nothing new was installed in my computer that was not installed in my previous version which was Windows 7 Ultimate x64.

Here is a quick log for the paths I have in my system

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\Gabriel>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Gabriel\AppData\Roaming
CLASSPATH=.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=R2-D2
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Gabriel
LOCALAPPDATA=C:\Users\Gabriel\AppData\Local
LOGONSERVER=\\R2-D2
NUMBER_OF_PROCESSORS=8
OS=Windows_NT
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-St
atic;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Media Too
ls\MKVToolNix;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Fil
es (x86)\Intel\OpenCL SDK\2.0\bin\x64
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2a07
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
QTJAVA=C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip
SAN_DIR=C:\Program Files\Hardware and Drive Tools\SiSoftware Sandra Business 201
3
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Gabriel\AppData\Local\Temp
TMP=C:\Users\Gabriel\AppData\Local\Temp
USERDOMAIN=R2-D2
USERDOMAIN_ROAMINGPROFILE=R2-D2
USERNAME=Gabriel
USERPROFILE=C:\Users\Gabriel
windir=C:\Windows

C:\Users\Gabriel>


Thanks in Advance,

J
 
Solution
CONFIRMED SOLUTION:

Had my head spinning over the same issue ... and after a long and thorough investigation I CAN CONFIRM that I now have gotten to the bottom of the issue.

The issue ONLY happens when Acorbat XI has been activated using the dll method. (check it out for yourself if you have the time: ... after a clean install leave it unactivated and you'll notice the Temp folder permissions are never edited. The moment you activate it using the dll method, and open the user interface ... only a few seconds then voila! Temp folder permissions changed!

This is therefore NOT an Acrobat XI bug, no wonder Adobe has been completely silent on the issue.

The solution is to activate Acrobat XI via the internet, or using the offline method...
And I believe this is only a problem on the 64bit version of windows, which is funny because Acrobat is in the x86 folder. That means the same version of Acrobat is used for both the 32bit and 64bit OS's, right?
 
CONFIRMED SOLUTION:

Had my head spinning over the same issue ... and after a long and thorough investigation I CAN CONFIRM that I now have gotten to the bottom of the issue.

The issue ONLY happens when Acorbat XI has been activated using the dll method. (check it out for yourself if you have the time: ... after a clean install leave it unactivated and you'll notice the Temp folder permissions are never edited. The moment you activate it using the dll method, and open the user interface ... only a few seconds then voila! Temp folder permissions changed!

This is therefore NOT an Acrobat XI bug, no wonder Adobe has been completely silent on the issue.

The solution is to activate Acrobat XI via the internet, or using the offline method :). When Acrobat XI is properly activated in either of those two ways the issue does not occur. Things go wrong when you use a patch or dll.
 
Solution
I might have found a solution. Go to Acrobat.exe Properties, Security and Edit System permissions by clicking under Deny Full Control and will mark all the entries under, once saved go click Properties on the user temp folder in C:\Users\[user]\AppData\Local\, Security, Advance, Enable inheritance and tick Replace all child object permissions entries etc... apply Ok and it should be done. Reboot and no message.

It worked so far for me under Win 8 64bit
 


Day 2 no Temp error message, everything works fine. :)

After a few days the error windows started popping again at login

 



THANKS A TON ! Both ralf89 and eliot22 for identifying the culprit & providing the solution.

I had installed Acrobat and had been unable to Print from any app after that. Spent two days troubleshooting and reinstalling printers before stumbling upon this. Doing it fixed my problems.
 


I tried to follow your solution but I'm lost. The Acrobat.exe part I did it without problem. But the part of the Temp folder I don't understand your instructions very well. I open the Properties of the folder, go to Security tab, click on Advance, a new window opens with several tabs and then, what?

I am using Windows 7 64bit so maybe the steps are a little different from here.
 
^ On the window that opens when you click on 'Advanced', look to the left bottom and there will be a Button or Check Box called "Enable Inheritance" OR "Disable Inheritance".

You have to click it so that it says "Enable Inheritance".

Then select the check box below it called "Replace all child object permissions with this......"
 


IT WORKED FOR NOW .. I WILL CHECK IF THAT IS NOT GOING BACK
THANK YOU ^^


 


 
The fixes provided here worked for me to. (For Windows 64-bit Home Premium)
I thank all of you who helped in finding this fix!
Just to make it clear for some people who might doubt if this is what they are looking for (because I did at first), for me it fixed:
-The python dll problem with Google drive,
-The shockwave flash plugin problem in google chrome,
-The winrar extracting problem,
-A problem where my logitech gaming software couldn't find my g700s mouse
-And will possibly many more problems that are related to the Temp folder.

But still I have one more problem with my logitech mouse software, the mouse is being detected and works fine now, but I still get this annoying popup. Any thoughts on how to fix this? I've added a link to a screenshot of the problem.
Thanks in advance!
(ps. The text is in dutch, but it basically says that It can't get access to the file because I don't have the needed permission.)
https://docs.google.com/file/d/0BxCDifPT5-GNdlJ5aW9zUjJ5UU0/edit?usp=sharing
 
I don't have an answer but I can confirm the problem is not just confined to windows x64 it also occurs on my x86 (32 bit windows 8). I suspected Adobe acrobat had something to do with it, however this thing about activating acrobat XI using a fixed dll only can not be right as I did not use this method.
 


I can confirm your solution works in Win 7 x64. Thanks man

 


How do I boot with full admin rights?
 


After this procedure, do I need to move the UAC slider back to where it was?
 


I tried this and it didn't work. Is it possible that you forgot a step? My problem continued after I made all these changes. I went back into the properties for Acrobat.exe and noticed that the owner of the file was still "System." I changed it to Administrators. I'll restart it soon and see if your fix along with changing the owner worked.

EDIT: Yeah that did it! Make sure you remember to change the owner of Acrobat.exe as well. Boca2605, yes, you will want to restore your UAC permissions back to where they were or else your system will be extremely vulnerable to outside threats.

EDIT 2: Four days later, it happened again. I got the Python DLL error for Google Drive. I'm tried the more thorough instructions on changing Temp folder permissions here: https://productforums.google.com/d/msg/drive/zbazK_MeKRs/g5WlCDP_IcMJ. However this is a temporary fix as well since once Acrobat is opened, the Temp directory permissions are altered once again. The only solution seems to be to remove the faulty amtlib.dll activation version of Acrobat.

EDIT 3: The alternate non-DLL activated version of Acrobat Pro XI did it. I use the software for hours a day and my Temp folder permissions have remained exactly the same as before I installed it. Unfortunately there is no getting around the DLL activation changing your Temp permissions. Just get rid of it. Thanks to all the people who are much smarter than me for the guidance!
 


I have been having all of the same problems as everyone here, and I did a bit of searching; I am no computer programmer but decided the best solution was to write a batch file which starts on Windows startup using the icacls command reseting the folder permissions each time on startup granting "Everyone" full control. I then delayed the startup of programs using the Temp folder e.g. Google Drive and Box.net etc and since then no problems. here is the batch file code:-

@echo off
cls
title Temp File Permissions
icacls %c%:\Users\%user%l\AppData\Local\Temp /grant Everyone: (OI)(CI)F

I am sure there are much neater ways of using icacls i.e. getting folders to inherit the properties etc and making it more secure, but this works. So, create a .txt file, drop this code into it (changing the drive and user name accordingly), save as a .bat file somewhere on your computer (i put in root of c drive), create a shortcut and drop that into your startup folder, delay any programs which have problems with accessing the Temp folder and hey presto.

Cheers.



 
I'm using Windows 7 OS 64Bit and i am having problems with the Dropbox permissions each time i tried to start it.
I followed the guide dropbox give you and tried to change the permissions at %user%\AppData\Local\Temp etc etc with no luck the error continued to appear.
But then i added my user account giving full control to my user account at C:\Windows\Temp and it works now!
Not sure for how long but it works, will report if the error happens again.

KP
 
Status
Not open for further replies.

TRENDING THREADS