473,569 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

All Users Application Data Permissions

I use the Documents and Settings\All Users\Applicati on Data\AppName folder
to store xml settings that are applicable to all user who log onto a
machine. (The uers personal settings associated with my application are
stored in the system registry's HKEY_CURRENT_US ER section)

When the xml file and news folder are created by my application running
under Windows XP, the new folder and the xml file have permissions set for
Everyone to read and write to the file and folder by default.

When the xml file and new folder are created by my application running under
Windows 2000, the new folder and xml file cannot be written to by Everyone,
only read.

Is there a way to change the permissions programmaticall y for file and
folders created by the application when running under Windows 2000 to behave
like Windows XP?

Thanks,

Dennis
Nov 17 '05 #1
13 12706
Correction:

The XP machine I was looking at apparently has a corrupted All Users
profile. Other XP machines I test on have the same schema as the W2K
machines, i.e. the user must have at least a member of the Power User group
to write to a file and folder in the All Users Application Data folder.

Is it the default behavior of the All Users Application Data folder to
restrict write access for all members of the User group and Everyone group?
I would have thought that the All Users profile was for all users.

Dennis

"Dennis C. Drumm" <dc******@commu nity.nospam> wrote in message
news:uX******** ******@TK2MSFTN GP15.phx.gbl...
I use the Documents and Settings\All Users\Applicati on Data\AppName folder
to store xml settings that are applicable to all user who log onto a
machine. (The uers personal settings associated with my application are
stored in the system registry's HKEY_CURRENT_US ER section)

When the xml file and news folder are created by my application running
under Windows XP, the new folder and the xml file have permissions set for
Everyone to read and write to the file and folder by default.

When the xml file and new folder are created by my application running
under Windows 2000, the new folder and xml file cannot be written to by
Everyone, only read.

Is there a way to change the permissions programmaticall y for file and
folders created by the application when running under Windows 2000 to
behave like Windows XP?

Thanks,

Dennis

Nov 17 '05 #2
Correction:

The XP machine I was looking at apparently has a corrupted All Users
profile. Other XP machines I test on have the same schema as the W2K
machines, i.e. the user must have at least a member of the Power User group
to write to a file and folder in the All Users Application Data folder.

Is it the default behavior of the All Users Application Data folder to
restrict write access for all members of the User group and Everyone group?
I would have thought that the All Users profile was for all users.

Dennis

"Dennis C. Drumm" <dc******@commu nity.nospam> wrote in message
news:uX******** ******@TK2MSFTN GP15.phx.gbl...
I use the Documents and Settings\All Users\Applicati on Data\AppName folder
to store xml settings that are applicable to all user who log onto a
machine. (The uers personal settings associated with my application are
stored in the system registry's HKEY_CURRENT_US ER section)

When the xml file and news folder are created by my application running
under Windows XP, the new folder and the xml file have permissions set for
Everyone to read and write to the file and folder by default.

When the xml file and new folder are created by my application running
under Windows 2000, the new folder and xml file cannot be written to by
Everyone, only read.

Is there a way to change the permissions programmaticall y for file and
folders created by the application when running under Windows 2000 to
behave like Windows XP?

Thanks,

Dennis

Nov 17 '05 #3
Hi Dennis,

In Windows 2000 and XP, it is by default that only Administrator and Power
user can write to the Documents and Settings\All Users\Applicati on
Data\AppName folder. To change the permission, I suggest you check the
following KB article.

http://support.microsoft.com/default...b;en-us;818362

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #4
Hi Dennis,

In Windows 2000 and XP, it is by default that only Administrator and Power
user can write to the Documents and Settings\All Users\Applicati on
Data\AppName folder. To change the permission, I suggest you check the
following KB article.

http://support.microsoft.com/default...b;en-us;818362

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #5
Kevin

Thanks for the reference.

That would work great for me, but neither of the two com dll's are strong
named.

Since my application is strong named (and all the dll's it refences), when I
include these refernces in my application, add the method in the example and
try to compile, I get an Assembly generation failed message, the refernced
assembly 'Interop.Active Ds' and 'Interop.ADSSEC URITYLib' does not have a
strong name.

Is there some way to work around or correct this problem?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Ap******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Dennis,

In Windows 2000 and XP, it is by default that only Administrator and Power
user can write to the Documents and Settings\All Users\Applicati on
Data\AppName folder. To change the permission, I suggest you check the
following KB article.

http://support.microsoft.com/default...b;en-us;818362

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #6
Kevin

Thanks for the reference.

That would work great for me, but neither of the two com dll's are strong
named.

Since my application is strong named (and all the dll's it refences), when I
include these refernces in my application, add the method in the example and
try to compile, I get an Assembly generation failed message, the refernced
assembly 'Interop.Active Ds' and 'Interop.ADSSEC URITYLib' does not have a
strong name.

Is there some way to work around or correct this problem?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Ap******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Dennis,

In Windows 2000 and XP, it is by default that only Administrator and Power
user can write to the Documents and Settings\All Users\Applicati on
Data\AppName folder. To change the permission, I suggest you check the
following KB article.

http://support.microsoft.com/default...b;en-us;818362

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 17 '05 #7
Keven:

I just found MS Article 313666 which describes how to correct this issue.

Thanks so much for the help,

Dennis
"Dennis C. Drumm" <dc******@commu nity.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Kevin

Thanks for the reference.

That would work great for me, but neither of the two com dll's are strong
named.

Since my application is strong named (and all the dll's it refences), when
I include these refernces in my application, add the method in the example
and try to compile, I get an Assembly generation failed message, the
refernced assembly 'Interop.Active Ds' and 'Interop.ADSSEC URITYLib' does
not have a strong name.

Is there some way to work around or correct this problem?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Ap******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Dennis,

In Windows 2000 and XP, it is by default that only Administrator and
Power
user can write to the Documents and Settings\All Users\Applicati on
Data\AppName folder. To change the permission, I suggest you check the
following KB article.

http://support.microsoft.com/default...b;en-us;818362

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Nov 17 '05 #8
Keven:

I just found MS Article 313666 which describes how to correct this issue.

Thanks so much for the help,

Dennis
"Dennis C. Drumm" <dc******@commu nity.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Kevin

Thanks for the reference.

That would work great for me, but neither of the two com dll's are strong
named.

Since my application is strong named (and all the dll's it refences), when
I include these refernces in my application, add the method in the example
and try to compile, I get an Assembly generation failed message, the
refernced assembly 'Interop.Active Ds' and 'Interop.ADSSEC URITYLib' does
not have a strong name.

Is there some way to work around or correct this problem?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Ap******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Dennis,

In Windows 2000 and XP, it is by default that only Administrator and
Power
user can write to the Documents and Settings\All Users\Applicati on
Data\AppName folder. To change the permission, I suggest you check the
following KB article.

http://support.microsoft.com/default...b;en-us;818362

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


Nov 17 '05 #9
Keven:

Another thought, what if the user is using FAT file system instead of NTFS
for a WIN2X or WINXP machine?

Thanks,

Dennis
"Dennis C. Drumm" <dc******@commu nity.nospam> wrote in message
news:ur******** ******@TK2MSFTN GP12.phx.gbl...
Keven:

I just found MS Article 313666 which describes how to correct this issue.

Thanks so much for the help,

Dennis
"Dennis C. Drumm" <dc******@commu nity.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Kevin

Thanks for the reference.

That would work great for me, but neither of the two com dll's are strong
named.

Since my application is strong named (and all the dll's it refences),
when I include these refernces in my application, add the method in the
example and try to compile, I get an Assembly generation failed message,
the refernced assembly 'Interop.Active Ds' and 'Interop.ADSSEC URITYLib'
does not have a strong name.

Is there some way to work around or correct this problem?

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.mic rosoft.com> wrote in message
news:Ap******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Dennis,

In Windows 2000 and XP, it is by default that only Administrator and
Power
user can write to the Documents and Settings\All Users\Applicati on
Data\AppName folder. To change the permission, I suggest you check the
following KB article.

http://support.microsoft.com/default...b;en-us;818362

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."



Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1240
by: Phil Galey | last post by:
Hello, In VB.NET, I'm using LogonUser and ImpersonateLoggedOnUser to establish access to network resources. However, if while logged on I try to write to access and write to All Users\Application Data (i.e. CommonApplicationData), access is denied. The special folder path is acquired using the following: ...
2
2990
by: Chris, Master of All Things Insignificant | last post by:
How can I gain access to the path of "Documents And Settings\All Users\Application Data\My Program Folder"? I need to do this in the installer as well. Any thoughts? Chris
1
2210
by: Fred W. | last post by:
I have an application that creates directories in ...\All Users\Application Data. When I create the directories I need to make sure all users can modify and add files to them. How do I set permissions on the directory so that when they are initially created, "Everyone" has full control, even if the logged in user (i.e. the one creating them)...
2
1426
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I am writing an application where I need to store some data between application executions. I wonder where might be the best place. The application basically needs to store different objects, where each object contains one or more sub objects. Where should I store this data, and how can I read and write the data. Some examples would be...
1
1390
by: brettg | last post by:
With Windows Vista, we can no longer write application settings to the HKEY_LOCAL_MACHINE Registry key in the same way. If we don't have Admin permission, our entry will be "virtualized" to our own private key, which makes it the equivalent to HKEY_CURRENT_USER, thus defeating the purpose of writing application to a location available to all...
4
5190
by: Bob | last post by:
Hi, How do you get the application folder path that a user select in a msi install which defaults to c:\Program Files\Company Name\...? Thanks, Bob
3
3160
by: vijayB | last post by:
Hi All, In windows OS, "program files" folder in windows is protected one, means, only administrator can modify its contents. I having problem with "Documents and settings\All Users\Application data" folder. Can anybody tell me whether it is protected or not ? I want to access its contents wihtout any administrative privilages, i.e....
1
1517
by: =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?= | last post by:
For in-house tools, the approach of writing to the program files folder is fine. Here are a few ways that it can be problematic if the code goes out of your team, such as to a customer: 1. Vista - Must run with elevated permissions to access program files folder. 2. 64 bit OS - Virtualization pottentially renames the folder, so you better...
1
6604
by: abhimusale | last post by:
I am developing application in c#. I added users (except administrator and everyone) and assign permissions to them in shared folder. I want to get list of all users and their permissions to whom file sharing is allowed. I tried to get this using Win32 class and system.management. Also searched on google but not get any specific link. Plz...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.