read-only files

G

Guest

if I try to change a file in the program files, an message pops up saying it
can't create the file. I am the admin and the file says it isn't read only
but all the folders
are read only. when I try to change this the properties it says it is read
only again. and even though the files say they are not read only i can't
change them. does anyone knows what is going on?

thanks
 
A

Andrew McLaren

Mike said:
if I try to change a file in the program files, an message pops up saying
it
can't create the file. I am the admin and the file says it isn't read
only
but all the folders
are read only. when I try to change this the properties it says it is
read
only again. and even though the files say they are not read only i can't
change them. does anyone knows what is going on?


Hi Mike,

Are you trying to change the Read Only property for an individual file, or
for a folder?

You should be able to change individual files, as long as you have
permission to the file.

You canot change the Read Only setting for a folder (well, not in Explorer,
anyway). The Read Only property on a folder is totally ignored by Windows,
for determining whether you can read, write or modify the contents of the
folder. You canot prevent or allow access to files by changing the Read Only
flag on a folder.

(so, why does the Property exist? well, Explorer needed a flag to control
how it interacts with folders which exist on network shares. The Read Only
flag for folders already existed and wasn't being used for any purpose, so
Explorer "hijacked" it to work out whether to read remote desktop.ini or
not. This has nothing whatever to do with reading or writing the files in
the folder).

Hope it helps,
 
G

Guest

There is more to the problem. When I try to save a file in program files
(x86) it won't allow me. A message says,"You don't have permission to save
in this locate. Contact the administrator to obtain permission" Also if I
try to modify a file in proram files it says, "Can't create <...> Make sure
the path and file name are correct."
Do you know if it is possible to modify program files or save files in
program files.
 
A

Andrew McLaren

Mike said:
There is more to the problem. When I try to save a file in program files
(x86) it won't allow me. A message says,"You don't have permission to
save
in this locate. Contact the administrator to obtain permission" Also if I
try to modify a file in proram files it says, "Can't create <...> Make
sure
the path and file name are correct."
Do you know if it is possible to modify program files or save files in
program files.

Hi Mike

That's correct. By default, standard users do not have permissions to write
or modify files under the C:\Program Files tree. This is by design, and is
one of the security measures in Vista. Writing to and modifying executable
program files is one of the main ways in which computer viruses work. By
preventing this, Vista is cutting off a major attack vector for viruses.

If you have user data of your own, like documents, databases, photos, music,
etc, you should save it under your own user directory. Why are you trying to
write to the Program Files directory?

(Note that some old, poorly designed applications try to write to the
Program Files directory. This is bad design, and the "Designed for Windows"
guidelines have prohibited this for several years before Vista made it
really mandatory. In Vista there is a so-called "virtualisation" mechanism
which is suppoed to kick in when old applications try to modify files under
Program Files - but maybe not working, in your case?)
 
A

Andrew McLaren

Mike said:
Thanks.
There is something wrong with the program I am trying to run then.

Here's a good overview of file system virtualisation in Vista:
http://windowsconnected.com/blogs/jerry/archive/2005/12/19/86.aspx

If you know what file and/or directory teh app is trying to write to, you
can grant yourself permissions to that specific file on a file-by-file
basis. Highlight the sub-folder in Explorer, right-click, choose Properties,
then Security, and adjust the permissions using the dialogue which appears.
You have to be very careful, when using this permissions editor - it is easy
to make a mistake and totally trash your system; or worse, weaken the
protection in Vista and leave yourself vulnerable to viruses, trojans etc.
But it can be done - I've had to do this for a few old apps I run.

Alternatively, contact teh vendor of the application you're using, and ask
them how to make their app run on Vista. They may have a patch or upgarde
available.

Good luck with it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top