Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

File permissions in the Program Files directory

Closed Thread
 
Thread Tools Display Modes
Old 03-20-2007   #1 (permalink)
kevincc
Guest


 

File permissions in the Program Files directory

I am trying to modify a file in the Program Files directory (a properties
file for Visual C++ 2005 Express). It appears that the directory is read
only though. I am an administrator and I have UAC turned on. I also can't
modify files in my root directory (c:\). Why is this? I am an
administrator. I have tried running Windows Explorer as admin but the same
thing happens. It's a good thing I installed Vista as a dual boot with XP.
I think I will be going back to XP soon.
Old 03-20-2007   #2 (permalink)
Jimmy Brush
Guest


 

Re: File permissions in the Program Files directory

Hello,

In Windows Vista, even though you are an administrator, the programs that
run on your computer are not allowed to use your administrator power unless:

1- They prompt you for permission
2- You explicitly give them permission (right-click, run as administrator)

Additionally, Windows Explorer will not let you run it "as administrator" -
it should detect when it needs admin power and ask for your permission
accordingly.

The files in Program Files and your root C drive are not writiable by
non-administrative programs because the files in these areas affect every
user and the entire system.

Allowing unpriviliged programs write access to these areas would allow them
to overwrite/replace well-known programs or system-wide configuration data
used by windows or well-known programs, which is unacceptable for a program
that does not prompt.

There are a few solutions here:

1- (best) store your files in your user profile folder, or some other folder
you have created for your files, instead of in areas where system-wide files
are stored

2- Run the programs that need write access to that area "as administrator"

3- (worse) Change the security on the folder or files to explicitly give
your user account the desired permission - this will allow *any program that
runs on your computer* to have that permission to that area, so be careful
here, you could be opening your computer to attack.

--
- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/

Old 03-20-2007   #3 (permalink)
kevincc
Guest


 

Re: File permissions in the Program Files directory

Thanks Jimmy. I gave my user write privileges to the Visual C++ directory
that contained the properties files and now I can modify the files. Since
this file is installed by Visual C++, I don't think I could move it.

I will move my files from the c:\ drive to my documents folder.

"Jimmy Brush" wrote:

> Hello,
>
> In Windows Vista, even though you are an administrator, the programs that
> run on your computer are not allowed to use your administrator power unless:
>
> 1- They prompt you for permission
> 2- You explicitly give them permission (right-click, run as administrator)
>
> Additionally, Windows Explorer will not let you run it "as administrator" -
> it should detect when it needs admin power and ask for your permission
> accordingly.
>
> The files in Program Files and your root C drive are not writiable by
> non-administrative programs because the files in these areas affect every
> user and the entire system.
>
> Allowing unpriviliged programs write access to these areas would allow them
> to overwrite/replace well-known programs or system-wide configuration data
> used by windows or well-known programs, which is unacceptable for a program
> that does not prompt.
>
> There are a few solutions here:
>
> 1- (best) store your files in your user profile folder, or some other folder
> you have created for your files, instead of in areas where system-wide files
> are stored
>
> 2- Run the programs that need write access to that area "as administrator"
>
> 3- (worse) Change the security on the folder or files to explicitly give
> your user account the desired permission - this will allow *any program that
> runs on your computer* to have that permission to that area, so be careful
> here, you could be opening your computer to attack.
>
> --
> - JB
> Microsoft MVP - Windows Shell/User
>
> Windows Vista Support Faq
> http://www.jimmah.com/vista/
>
>

Old 05-02-2007   #4 (permalink)
Nevyn
Guest


 

Re: File permissions in the Program Files directory

What about when I try to run office update and it wants to install something
to the program files directory, but the system isn't prompting me for admin
rights ability to do what it wants?

Jan Michael


"Jimmy Brush" wrote:

> Hello,
>
> In Windows Vista, even though you are an administrator, the programs that
> run on your computer are not allowed to use your administrator power unless:
>
> 1- They prompt you for permission
> 2- You explicitly give them permission (right-click, run as administrator)
>
> Additionally, Windows Explorer will not let you run it "as administrator" -
> it should detect when it needs admin power and ask for your permission
> accordingly.
>
> The files in Program Files and your root C drive are not writiable by
> non-administrative programs because the files in these areas affect every
> user and the entire system.
>
> Allowing unpriviliged programs write access to these areas would allow them
> to overwrite/replace well-known programs or system-wide configuration data
> used by windows or well-known programs, which is unacceptable for a program
> that does not prompt.
>
> There are a few solutions here:
>
> 1- (best) store your files in your user profile folder, or some other folder
> you have created for your files, instead of in areas where system-wide files
> are stored
>
> 2- Run the programs that need write access to that area "as administrator"
>
> 3- (worse) Change the security on the folder or files to explicitly give
> your user account the desired permission - this will allow *any program that
> runs on your computer* to have that permission to that area, so be careful
> here, you could be opening your computer to attack.
>
> --
> - JB
> Microsoft MVP - Windows Shell/User
>
> Windows Vista Support Faq
> http://www.jimmah.com/vista/
>
>

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Permissions for Folders in Program Files oscar Vista networking & sharing 0 2 Weeks Ago 06:05 PM
wanting to delete .mui file in Program directory chatterbox General Discussion 3 02-23-2008 11:04 AM
'Program Files' permissions? JethroUK© Vista General 1 09-03-2007 07:42 PM
Copying files to Program Files directory Parrot Vista file management 13 08-23-2007 01:14 AM
How to open a file for read/write access in Program Files directory Michael Harvey Vista security 1 02-28-2007 05:10 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

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