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 editing text files to root C drive

25 Apr 2013   #31
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
 
 

Best left to default - that way everything should be where it normally is expected to be - unless you have an actual need for it to be switched off?


My System SpecsSystem Spec
.
25 Apr 2013   #32
morpheus305

windows 7 64bit professional
 
 

Quote   Quote: Originally Posted by NoelDP View Post
Best left to default - that way everything should be where it normally is expected to be - unless you have an actual need for it to be switched off?
Right now w/e gets this working but i don't see why i would need this on to do something as simple as this. Right now it's set to default position. What else should I do?
My System SpecsSystem Spec
25 Apr 2013   #33
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
 
 

Lets have a look at the permissions again

ICACLS C:
ICACLS C:\
ICACLS C:\links.txt

(of course - there's always the option of not working in the root folder?? )
My System SpecsSystem Spec
.

25 Apr 2013   #34
morpheus305

windows 7 64bit professional
 
 

Quote   Quote: Originally Posted by NoelDP View Post
(of course - there's always the option of not working in the root folder?? :))
Surrender? Never!!

C:\Users\Me>ICACLS C:
C: NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
Andrew\Me:(OI)(CI)(F)
Andrew\HomeUsers:(RX)
Andrew\Me:(RX)

Successfully processed 1 files; Failed processing 0 files

C:\Users\Me>ICACLS C:\
C:\ NT AUTHORITY\SYSTEM:(F)
NT AUTHORITY\Authenticated Users:(AD)
NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)(F)
Everyone:(OI)(CI)(F)
NT AUTHORITY\Authenticated Users:(OI)(CI)(F)
Andrew\Me:(OI)(CI)(F)
BUILTIN\Administrators:(OI)(CI)(F)
NT AUTHORITY\SYSTEM:(OI)(CI)(F)
BUILTIN\Users:(OI)(CI)(F)
Mandatory Label\High Mandatory Level:(OI)(NP)(IO)(NW)

Successfully processed 1 files; Failed processing 0 files

C:\Users\Me>ICACLS C:\links.txt
C:\links.txt Everyone:(F)
Andrew\Me:(F)
BUILTIN\Administrators:(F)
NT AUTHORITY\SYSTEM:(F)
BUILTIN\Users:(F)
Mandatory Label\High Mandatory Level:(I)(NW)

Successfully processed 1 files; Failed processing 0 files
My System SpecsSystem Spec
25 Apr 2013   #35
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
 
 

Ah - a man (?) after my own heart

Too many beers tonight - if you haven't heard in 24 hrs, SHOUT!
My System SpecsSystem Spec
26 Apr 2013   #36
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
 
 

I need to test something...
please create a file on your desktop and then Move it to the root (do NOT copy it!)

then run ICACLS on it, and post the results.
now create a new file directly in the root folder and run ICACLS on that.

Try modifying both files - what happens?
My System SpecsSystem Spec
26 Apr 2013   #37
morpheus305

windows 7 64bit professional
 
 

Quote   Quote: Originally Posted by NoelDP View Post
I need to test something...
please create a file on your desktop and then Move it to the root (do NOT copy it!)

then run ICACLS on it, and post the results.
now create a new file directly in the root folder and run ICACLS on that.

Try modifying both files - what happens?
Ok i was able to make a text file and move it over to the C: drive. I was able to modify across network.

C:\Users\Me>ICACLS C:\test2.txt
C:\test2.txt NT AUTHORITY\Authenticated Users:(I)(F)
Everyone:(I)(F)
Andrew\Me:(I)(F)
BUILTIN\Administrators:(I)(F)
NT AUTHORITY\SYSTEM:(I)(F)
BUILTIN\Users:(I)(F)

Successfully processed 1 files; Failed processing 0 files


When i tried to make a text file on the C: it gave me this error message.


Attached Images
Access denied editing text files to root C drive-error1.jpg 
My System SpecsSystem Spec
26 Apr 2013   #38
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Are you logged on on winxp and trying to access win7's C:\ drive (root folder)?
My System SpecsSystem Spec
26 Apr 2013   #39
NoelDP

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
 
 

The results you got are pretty much what I expected.

The problem is that the C:\ folder has that odd permission "Mandatory Label\High Mandatory LevelOI)(NP)(IO)(NW)"
This means that you require local Admin permissions to create a new file there.
the NP means that the permissions are inherited by objects created in the C:\root - but the permissions don't propagate further down the hierarchy.

Moving a file into the folder, it brings its own set of permissions with it, and doesn't inherit the root permissions in the same way, so modification is allowed.
So the solution would appear to be to ensure that whatever file you need to use is created elsewhere, and then moved into the folder, at which point you should be able to modify it at will
(If not - move it out of root, modify it, then move it back!)



I've been unable to remove or modify that permission in my VM
My System SpecsSystem Spec
26 Apr 2013   #40
morpheus305

windows 7 64bit professional
 
 

Hmmm that sucks. I thought we were getting close to solving this.
My System SpecsSystem Spec
Reply

 Access denied editing text files to root C drive




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Changing Setting Security on root folder returns 'access is denied'
Hi, Changing setting Security on root folder returns access is denied for some sub-folders. I have an external HHD assigned with 'G' driver letter under my Computer. I have removed 'everyone' from the 'Groups and user names' on the root folder by choosing 'security tab' from the property...
Backup and Restore
The root drive (C:\) is shared, nevertheless there is no access to sub
The root drive (C:\) is shared, nevertheless there is no access to subfolders, How come that the root drive (C:\) is shared but no access is permitted to a particular subfolder (attached)? How to force the sharing for the root and ALL the subfolders Thank you Best
Network & Sharing
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...
General Discussion
all my files are access denied
can anyone help me... all my files are access denied even im the admin. tnx!
General Discussion
.Log text files on root of "C" drive
After installing Nvidia drivers, Realtek drivers, and JMicron E-sata drivers, I now have .log text files on the root of my "C" drive. Are these accessed next time I update the driver or can I get rid of them? I can't seem to find anything about these. I know they are there for a reason but I like...
Installation & Setup
cant access root drive - lost admin rights
Hi; I installed Windows7 recently. I was changing permissions and accidently denied authenticated users to C drive. I was logged in as admin which is the only account. Now I cant access anythig in C Drive and cant execute any thing. I tried through safe mode as well but of no use. How can I...
System Security


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 17:25.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App