Windows 8 permissions

0

1

I am having this really weird problem with Windows 8 where it won't let me edit or save to my program files folder in my C: drive. It keeps telling me access is denied, even when I have taken ownership of the folder and am logged in as an administrator. I can save to my other drives just fine.

The new menu item is even missing the regular items and only allows me to create a folder.

enter image description here

Can someone please help me out? This is really frustrating.

Here is what the file looks like after I edited the permissions:

enter image description here

I gave myself full control yet I can't edit or create files in the directory.

TheGateKeeper

Posted 2013-01-12T00:13:33.030

Reputation: 109

I have taken ownership of [my Program Files folder] Oh boy... – ta.speot.is – 2013-01-12T00:51:51.200

That picture is too small to make out anything. If my added instructions below aren't sufficient, consider posting shots of individual windows rather than the whole screen at once to keep them readable. – Nicole Hamilton – 2013-01-12T16:11:19.577

Paste this in your address bar: http://i.stack.imgur.com/woKZf.jpg

– TheGateKeeper – 2013-01-12T18:31:31.083

@NicoleHamilton: Large images inserted via the imgur uploader can always be viewed at their original size by accessing their URL directly. In Firefox at least it's easy - simply right-click and select "View Image". – Karan – 2013-01-13T22:25:54.080

@Karan Thanks! I did not know that. – Nicole Hamilton – 2013-01-13T23:19:30.967

Talking about viewing images is cool, but did the image actually give you any insight into my problem? – TheGateKeeper – 2013-01-14T21:26:42.890

I made both images clickable in my suggested edit. Makes the full-size images nice and easy to access. – Keen – 2013-03-12T01:53:21.170

Answers

2

Being the owner does not automatically grant you the right to modify a file or directory. There's an ACL (access control list) that's preventing you from doing what you want. You can display or edit the ACL using the cacls command. For example, here's the ACL on my own Program Files directory:

12 C% cacls '\Program Files'
C:\Program Files NT SERVICE\TrustedInstaller:F
                 NT SERVICE\TrustedInstaller:(CI)(IO)F
                 NT AUTHORITY\SYSTEM:C
                 NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
                 BUILTIN\Administrators:C
                 BUILTIN\Administrators:(OI)(CI)(IO)F
                 BUILTIN\Users:R
                 BUILTIN\Users:(OI)(CI)(IO)(special access:)
                                           GENERIC_READ
                                           GENERIC_EXECUTE

                 CREATOR OWNER:(OI)(CI)(IO)F

Unless you have a really good reason you haven't mentioned, you probably don't want to change the ACL on this directory. But if you really, really do, here's how you'd give yourself full control:

cacls '\Program Files' /E /G userid:F

Added:

That cacls command modifies the ACL on just that directory, not the contents. If you'd like to edit a config file somewhere in your Program Files directory tree, you'll need to use the cacls command on that file itself. For example:

cacls '\Program Files\FooBarGame\ConfigDirectory\ConfigFile' /E /G userid:F

Nicole Hamilton

Posted 2013-01-12T00:13:33.030

Reputation: 8 987

I simply want to edit a configuration file for a game. Why are there all these restrictions? I never had problems like this on Windows 7 and earlier. – TheGateKeeper – 2013-01-12T01:16:20.580

1Uhm, you sure should have had problems under Win7. The ACL above is on a Win7 machine and I guarantee, it does prevent me from editing anything in that directory unless I'm elevated. One big reason not to edit stuff in your Program Files is because it'll screw up any uninstall of an application you've modified. – Nicole Hamilton – 2013-01-12T01:19:29.350

Is there any way to modify these cacls from the windows interface? The commands you pasted don't seem to work on Windows 8. I took ownership of the file and gave myself full permissions to them, but still I can't edit them. – TheGateKeeper – 2013-01-12T12:04:00.093

What do you see if you cacls the config file you're trying to modify? Your original question was how to modify the Program Files directory so I answered how to do that. But that only affects that directory, not everything it contains, so when you said it was a particular config file, perhaps I should have updated my answer as I just did. I don't have a Win8 machine to tell you how to use its GUI i/f. – Nicole Hamilton – 2013-01-12T16:09:39.387

0

All you have to do is make sure you open up notepad as administrator Start Menu > Right Click "notepad" app> choose "Run as administrator" on the task bar. Then edit and save you config file. I do it all the time with FSX.

Wingman

Posted 2013-01-12T00:13:33.030

Reputation: 1