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

19 Apr 2013   #1

windows 7 64bit professional
 
 
Access denied editing text files to root C drive

I thought i had all my permissions and sharing done correctly until i tried to edit a text file across my network on another windows 7 machine. When i go to save the file it ask me "save as" which it never did while trying to do the same thing on a windows xp machine. Well after the save as i try to save over the existing file and it as if i wanna replace the file then after hitting ok i get Access Denied message.

-I have sharing on the drive and the file set to Everyone with full access
-I have security tab setup so Everyone and Administrators have full access on both drive and file
-I tried changing ownership of the file several times and that has done nothing on both drive and file
-Also tried owership with inheritance turned off and on
-Even tried with firewalls/av software turned on and off
-The file is not blocked or anything like that
-UAC is turned off on both machines
-I can edit the file locally
-I have notepad set to "Run as Administrator" on both windows 7 machines
-I can write to the root C: such as copying over a .exe file or something like that. The issue is editing a text file only.

I can edit a text file on the root C drive on a windows xp machine but not any windows 7 machines across network. I am guessing i must of missed some windows 7 permissions policy some where to enable this. Now i can edit a file on windows 7 machines if it's not on the root of the drive say C:\testfolder\testfile.txt

My System SpecsSystem Spec
.

19 Apr 2013   #2

Windows 7 Pro. 64/SP-1
 
 

Just a thought; would that file be set read only on the Windows 7 computer?
My System SpecsSystem Spec
19 Apr 2013   #3

windows 7 64bit professional
 
 

How do i check that?
My System SpecsSystem Spec
.


20 Apr 2013   #4

Windows 7 Pro. 64/SP-1
 
 

Go to the program, file or folder and right click and choose properties. See if the Read Only is darkened.
My System SpecsSystem Spec
20 Apr 2013   #5

windows 7 64bit professional
 
 

Quote   Quote: Originally Posted by Layback Bear View Post
Go to the program, file or folder and right click and choose properties. See if the Read Only is darkened.
No it's not.
My System SpecsSystem Spec
20 Apr 2013   #6

Windows 7 Pro. 64/SP-1
 
 

The only other thing I can think of is while in properties of that program on the problem computer is to tick Security and make sure every one you want to have permission has the control you desire.
Everyone isn't everyone. At least on my system.
Look in Group of user Names.

Notice that Everyone has all check marks but when JACK (BLACK/JACK) is selected their are no check marks. So ever Everyone does not mean Everyone.
I would have to select each individually and give the permission of my choice.

Access denied editing text files to root C drive-cpuid-2.png

Access denied editing text files to root C drive-cpuid-1.png

Looks like this this when I give JACK (BLACK/JACK) full permission.

Access denied editing text files to root C drive-cpuid-3.png

I hope this helps.

This might also help.

Sharing and Permissions


My System SpecsSystem Spec
20 Apr 2013   #7

windows 7 64bit professional
 
 

Quote   Quote: Originally Posted by Layback Bear View Post
The only other thing I can think of is while in properties of that program on the problem computer is to tick Security and make sure every one you want to have permission has the control you desire.
Everyone isn't everyone. At least on my system.
Look in Group of user Names.

Notice that Everyone has all check marks but when JACK (BLACK/JACK) is selected their are no check marks. So ever Everyone does not mean Everyone.
I would have to select each individually and give the permission of my choice.

Attachment 264921

Attachment 264922

Looks like this this when I give JACK (BLACK/JACK) full permission.

Attachment 264923

I hope this helps.

This might also help.

Sharing and Permissions
Went back and double checked all of that on both computers. Program, folder, and file. This has to be a windows 7 root drive only problem cause i can edit text file from all other places well except from places like c:\windows and such. Did they change some from xp to win 7 about writing or modifying files on the root of the system drive?
My System SpecsSystem Spec
20 Apr 2013   #8

Windows 7 Pro. 64/SP-1
 
 

I really don't know. I haven't used XP for a long time so my memory is falling short.
I will go back to the Ranch and see if I can find some help.
Should be some folks by when they get a chance.
Hang in there.

Did you look through the Tutorial I posted.

Sharing and Permissions
My System SpecsSystem Spec
21 Apr 2013   #9

windows 7 64bit professional
 
 

Quote   Quote: Originally Posted by Layback Bear View Post
I really don't know. I haven't used XP for a long time so my memory is falling short.
I will go back to the Ranch and see if I can find some help.
Should be some folks by when they get a chance.
Hang in there.

Did you look through the Tutorial I posted.

Sharing and Permissions
Yes and everything is setup like that.

Here is a test for you or who ever. If you have to windows 7 machines in your home on the same workgroup(not homegroup) just try and open a text file on the root of of OS drive across the network and modify and try saving it to the same location. It should be a pretty simple test.
My System SpecsSystem Spec
21 Apr 2013   #10

Microsoft Community Contributor Award Recipient

Win 7 x64 Home Premium (and x86 VirtualBox VM)
 
 

I find it easier to read ICACLS output for permissions.

ICACLS <pathname>\<filename>

(e.g. ICACLS C:\Windows\System32\slui.exe )

You can try running it locally by remote, and running it remotely, and see if there's a difference.

Post the results, and I'll try and interpret them
My System SpecsSystem Spec
Reply

 Access denied editing text files to root C drive




Thread Tools



Similar help and support threads for2: Access denied editing text files to root C drive
Thread Forum
Random Files Created in System Root Drive General Discussion
Solved The root drive (C:\) is shared, nevertheless there is no access to sub Network & Sharing
no writing/editing access to my documents and program files. General Discussion
Solved Access denied when editing .ini files General Discussion
Cannot save files directly to root C:\ drive anymore System Security
.Log text files on root of "C" drive Installation & Setup
cant access root drive - lost admin rights 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 06:56 PM.
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