Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > read-only files

Reply
Thread Tools Display Modes

read-only files

 
 
Mike
Guest
Posts: n/a

 
      07-21-2007
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
 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      07-21-2007
"Mike" <> wrote ...
> 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,
--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
Mike
Guest
Posts: n/a

 
      07-22-2007
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.

"Andrew McLaren" wrote:

> "Mike" <> wrote ...
> > 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,
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au
>
>
>

 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      07-22-2007
"Mike" <> wrote ...
> 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?)

--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
Mike
Guest
Posts: n/a

 
      07-22-2007
Thanks.
There is something wrong with the program I am trying to run then.

"Andrew McLaren" wrote:

> "Mike" <> wrote ...
> > 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?)
>
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au
>
>
>

 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      07-22-2007
"Mike" <> wrote in message
news:32DE6829-79FA-43A9-97CB-...
> 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/je.../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.

--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Files attributes Read Only in Program files Munteanu Gabriel Windows Vista File Management 4 04-24-2008 05:36 PM
Folders/files read only/can't create new folder in read only folde gshillitani Windows Vista Administration 9 09-25-2007 12:50 PM
Read-only files jjazz Windows Vista Security 1 12-04-2006 08:06 PM
Read me files PJ Windows Vista Installation 0 06-21-2006 02:36 AM
Read me files PJ Windows Vista Installation 0 06-21-2006 02:35 AM



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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59