Solved Access denied when editing .ini files

pjfarr

New member
Member
Local time
8:07 AM
Messages
78
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 Computer My Computer

Computer Manufacturer/Model Number
ASUSTeK Computer INC.
OS
Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
Motherboard
ASUSTeK Computer INC. P5N-D
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 9800 GT
Sound Card
(1) Creative Audigy Audio Processor (WDM)
Screen Resolution
1280 x 1024 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ST332062 0AS SCSI Disk Device (2) WDC WD32 00AAKS-00L9A SCSI Disk Device
Keyboard
Dell Media Keyboard (USB)
Mouse
MS Comfort Optical Mouse 3000 (USB)
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro x64, Windows 8.1 Pro x64, Windows 7 Ultimate x64 SP1,
CPU
INTEL i9-7920X LGA 2066
Motherboard
Gigabyte X299-WU8 F3
Memory
64 GB (4 X 16 GB) G-Skill V Series DDR4 3200 Quad Channel
Graphics Card(s)
EVGA GTX 1060 SC 3 GB
Sound Card
Realtek Onboard ALC1220
Monitor(s) Displays
2 x Samsung S27E310
Screen Resolution
1920x1080
Hard Drives
Samsung 2 x 970 EVO Plus 500 GB NVMe
1 x 6TB WD 6003FZBX SATA
1 x 6TB WD 60EFRX SATA
12 x 3TB WD 30EFRX SATA
PSU
Seasonic X-1050
Case
Thermaltake Armor+
Cooling
Corsair H80i V2 Liquid AOI Cooler
Keyboard
Logitech G510s
Mouse
Logitech MX Master 2S
Internet Speed
200 Mb/s
Antivirus
ESET NOD32 13.1
Browser
EDGE (Dev, Canary, Beta), Chrome
Other Info
ASUS RT-AC68U router
Malwarebytes 4.0.4
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 Computer My Computer

Computer Manufacturer/Model Number
ASUSTeK Computer INC.
OS
Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
Motherboard
ASUSTeK Computer INC. P5N-D
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 9800 GT
Sound Card
(1) Creative Audigy Audio Processor (WDM)
Screen Resolution
1280 x 1024 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ST332062 0AS SCSI Disk Device (2) WDC WD32 00AAKS-00L9A SCSI Disk Device
Keyboard
Dell Media Keyboard (USB)
Mouse
MS Comfort Optical Mouse 3000 (USB)
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro x64, Windows 8.1 Pro x64, Windows 7 Ultimate x64 SP1,
CPU
INTEL i9-7920X LGA 2066
Motherboard
Gigabyte X299-WU8 F3
Memory
64 GB (4 X 16 GB) G-Skill V Series DDR4 3200 Quad Channel
Graphics Card(s)
EVGA GTX 1060 SC 3 GB
Sound Card
Realtek Onboard ALC1220
Monitor(s) Displays
2 x Samsung S27E310
Screen Resolution
1920x1080
Hard Drives
Samsung 2 x 970 EVO Plus 500 GB NVMe
1 x 6TB WD 6003FZBX SATA
1 x 6TB WD 60EFRX SATA
12 x 3TB WD 30EFRX SATA
PSU
Seasonic X-1050
Case
Thermaltake Armor+
Cooling
Corsair H80i V2 Liquid AOI Cooler
Keyboard
Logitech G510s
Mouse
Logitech MX Master 2S
Internet Speed
200 Mb/s
Antivirus
ESET NOD32 13.1
Browser
EDGE (Dev, Canary, Beta), Chrome
Other Info
ASUS RT-AC68U router
Malwarebytes 4.0.4
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 W7, 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 Computer My Computer

Computer Manufacturer/Model Number
ASUSTeK Computer INC.
OS
Microsoft Windows 7 Home Premium 32-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
Motherboard
ASUSTeK Computer INC. P5N-D
Memory
4.00 GB
Graphics Card(s)
NVIDIA GeForce 9800 GT
Sound Card
(1) Creative Audigy Audio Processor (WDM)
Screen Resolution
1280 x 1024 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) ST332062 0AS SCSI Disk Device (2) WDC WD32 00AAKS-00L9A SCSI Disk Device
Keyboard
Dell Media Keyboard (USB)
Mouse
MS Comfort Optical Mouse 3000 (USB)
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 Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Back
Top