1

We occasionally observe damaged permissions on folders with the error: No permissions have been assigned for this object

The affected systems are mostly Windows 7 but also Terminal Server 2008 and later, not affected is Server 2003 Terminal Server.

No permissions have been assigned for this object

Problems
Problems come up when a sub folder is created. Because the sub folder does not inherit any permissions, it gets only the default permissions (owner etc.)

Already done
We compard the affected systems but they have no significant matches in installed software or drivers.

Currently we look for a method how to detect those faults before our software runs on an error. Tools like AccessEnum doesn't reveal it. Chksk doesn't find any errors.

But our most important is the question what is the cause of this?

Does anybody have experience with that?

Edit:
Mostly the local temp folder (C:\Users\[user]\AppData\Local\Temp) itself is affected by the error. At least our sofware gets the errors there. But I know, that other folders can also be affected.

We saw the error on about 40 customer systems and, once fixed, it seems not to come back again.

The fix is quite easy. Add system - full control (or something else) to the permissions and the old permissions reappear again.

Edit2

How dows the problem look like exactly:

  • The permissions on the temp folder are corrupted (as shown in screenshot)
  • In this state everybody can do anything in the folder (delete, create etc.)
  • Our installer runs elevated and creates a subfolder .\temp\ProgramInfos. That works (see above).
  • Because the temp folder hase no active permissions, the ProgramInfos folder does'nt inherit anything. So ProgramInfos gets only the rights for Administrators, System
  • The installed application later is running not elevated
  • The not elevated user can't access the folder - in not elevated state he isn't administrator.

It's not a general error. We are installed on ten thousands of computers and till today only about 40 had that error.

(In lack of an english system with that error the screnshot does not show an authentic message but in german it's the same)

13
  • When you look at the security tab of the parent folder and go to advanced, what do you see in the Apply To section is it set to Apply To this folder, subfolders and files?
    – CharlesH
    Dec 30, 2014 at 11:23
  • @CharlesH no everything is blank. Before the permissions got damaged they were set. After making any change to the permissions of such a folder (like add system - full control) the previous permissions reappear again and everything is fine) Dec 30, 2014 at 11:28
  • 2
    Where are these files stored? Are they stored in one place and accessed throughout multple places through the network? If so, it might be that a harddisk is dying.
    – LPChip
    Dec 30, 2014 at 11:34
  • Hmm anything in the system event logs when this happens (anything relating to filesystem corruption) might be worth running a CHKDSK to see if there are any bad clusters. I've not heard of anything like this being OS related normally hardware. However might be worth running a SFC /SCANNOW to fix any OS system file issues.
    – CharlesH
    Dec 30, 2014 at 11:35
  • 1
    @boboes Really odd one.. The only suggestion I can make going forward is to investigate turning on Folder Audit for any new/unaffected customers and see if you can capture the event in the audit log to try and see what the cause was...
    – CharlesH
    Dec 30, 2014 at 11:58

1 Answer 1

1

That Temp folder is about as close to a free-for-all as you're going to get on Windows. By default the "Users" group of the PC have full control of it, so you can't trust it to be in any expected state.

The only answer is to alter your installer to ensure it's applying the permissions it needs to the folders it's creating, instead of depending on (possibly missing/incorrect) inherited permissions.

2
  • Yes, that's what the developers did. But you pointed out the main problem so you can't trust it to be in any expected state. From my internet seraches I know that it can happen to any folder. So I (primary not a developer) look for the cause and a way to indentify such constellation. In this case it's only annoying. On other folders it can be a serious security leak. Dec 30, 2014 at 14:41
  • Yes, the permissions can be removed from any folder, or set however the computer's owner feels like setting them. You can't trust an OS that isn't yours, and you can't trust it will be setup the way you expect it to be. If you want to figure out specifically why folders you use/have access to lose these permissions, it'll take file auditing as CharlesH suggested in his comment. Dec 30, 2014 at 14:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .