Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Vista - File permissions in the Program Files directory

Reply
 
Old 03-20-2007   #1 (permalink)
kevincc


 
 

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.

My System SpecsSystem Spec
Old 03-20-2007   #2 (permalink)
Jimmy Brush


 
 

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/

My System SpecsSystem Spec
Old 03-20-2007   #3 (permalink)
kevincc


 
 

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/
>
>

My System SpecsSystem Spec
Old 05-02-2007   #4 (permalink)
Nevyn


 
 

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/
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Program Files x86 Permissions General Discussion
RE: Permissions for Folders in Program Files Vista networking & sharing
'Program Files' permissions? Vista General
Copying files to Program Files directory Vista file management
How to open a file for read/write access in Program Files directory Vista security


Vista Forums 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 Ltd

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