Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Access denied when editing .ini files


27 Dec 2011   #1

Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
 
 
Access denied when editing .ini files

All of a sudden when I'm trying to save an edited .ini file in a program folder (in C:\Program Files) I get blocked by an Access Denied message. First, on making the changes in the .ini using Notepad and then clicking File > Save, I get the "Save As" dialog instead. But even then when I click Save it will say I don't have permission to save in this location and to contact an administrator (which is me).

I have edited these same files in these same locations dozens of times without a problem before. This is something new that starting just this morning. System restore didn't help.

Anyone have any experience with this sort of thing?

My System SpecsSystem Spec
.

27 Dec 2011   #2

Windows 7 Ultimate x64 SP1, Windows 8.1 Pro x64
 
 

Open notepad at an elevated level (right click on notepad and select Run as administrator)
Then import the file you are editing, edit and then save.
My System SpecsSystem Spec
27 Dec 2011   #3

Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
 
 

Yes, that does work. Also copying the file to the desktop, editing, saving and moving it back works. However, I didn't have to do any of that before. I could change and save the file directly in its native folder. Something has changed in my security settings apparently. I would like to sleuth it out if possible.
My System SpecsSystem Spec
.


27 Dec 2011   #4

Windows 7 Ultimate x64 SP1, Windows 8.1 Pro x64
 
 

In all my Windows 7 systems, notepad cannot save to any system folder without running elevated.
If it worked for you before, then something had changed from the default permissions.
My System SpecsSystem Spec
28 Dec 2011   #5

Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
 
 

I think I've managed to tie it to the UAC settings, with a little more investigation.

I turned off UAC a long time ago. Within the first 24 hours of test driving Windows 7, actually. I went from XP to 7, skipping Vista, so a hadn't been initiated into the constant warnings and permission issues. I'm more of an advanced user, not an expert exactly, but I do a lot of tweaking. Having to click 4 times to delete something from the Start Menu? Seriously? (Right-click > delete > "Are you sure?" > "Yes" > "You need administrator privileges to make this change. Click 'continue' to complete the action' > "Continue"). Yeah, UAC was disabled pretty quickly.

Anyway, in delving deeper into this particular issue, I checked the UAC setting to see if it had mysteriously reasserted itself (in that way Windows has of doing things like that). It was still off. I turned it on again, then off, then rebooted and I'm now able to edit and save any .ini's in their native folders once again without any hassle.
My System SpecsSystem Spec
28 Dec 2011   #6

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro with Media Center
 
 

Quote   Quote: Originally Posted by pbcopter View Post
In all my Windows 7 systems, notepad cannot save to any system folder without running elevated.
If it worked for you before, then something had changed from the default permissions.
Correct. By default, UAC prevents user to save to system folders. Simple workaround is to run apps elevated as already mentioned in this thread, for instance opening Notepad elevated when files in Windows folder must be edited, or opening 7-Zip elevated if a zipped file must be extracted to Program Fileds folder.

Kari
My System SpecsSystem Spec
Reply

 Access denied when editing .ini files




Thread Tools



Similar help and support threads for2: Access denied when editing .ini files
Thread Forum
Access denied editing text files to root C drive General Discussion
Solved Access Denied to my own files... Network & Sharing
no writing/editing access to my documents and program files. General Discussion
Access Denied when opening files Network & Sharing
get access denied when i try to download files Network & Sharing
can't copy old windows files...access denied General Discussion
all my files are access denied General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:05 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33