Link to home
Start Free TrialLog in
Avatar of ForensMath
ForensMathFlag for United States of America

asked on

Write file to root

My simple question is, under Windows 7 how can I enable modification & adding of files to the root C:\ ?

History: I've always maintained a file C:\notes.txt which I use for all sorts of reminders etc & maintain with my standard text editor. When I first obtained my current Window 7 machine, I don't recall any particular trouble continuing the practice though I may have had to explicitly set permissions and/or sharing.

A few months ago I restored the machine, but never figured out how to enable root-writing.

Today I restored it again (for various reasons) and am still at a very early stage:
- None of my data copied in yet
- No software installed except virus and backup
- Only one user, Charles, which is of course an Administrator.

I try saving a test file from Notepad to C:\foo.txt, but "A required privilege is not help by the client."

I then set Sharing for C:, full access for everyone. Same result.

Thanks for help,

Charles
Avatar of LeeTutor
LeeTutor
Flag of United States of America image

If you right click the shortcut for Notepad, then select "Run as Administrator", you should then be able to save your text file to the root directory.  The reason this is normally prohibited is that the root is a common place for hiding malware that gets downloaded to your pc, and so User Account Control inhibits easy writing to the root.
or you can change permissions and allow authenticated users to write to this folder, but it is not recommended.
Do not confuse share and NTFS permissions.

Try this:

Right click on Local Disk (C:) -> Properties -> Security -> Permissions tab -> Change Permissions -> Add... (add your user or security group) -> Check the Allow box for Create files / write data

Apply to: This folder only

You will get a a bunch of Access denied errors but keep clicking continue.
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
I object.
I gave a solution that anyone can approve to be right.
I object as well.

My solution was tested and works.
Hi motnahp00, please note that your sol. only works on xp or on win7 without UAC on.