473,395 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

All Users Application Data Permissions

I use the Documents and Settings\All Users\Application 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_USER 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 programmatically 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 12695
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******@community.nospam> wrote in message
news:uX**************@TK2MSFTNGP15.phx.gbl...
I use the Documents and Settings\All Users\Application 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_USER 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 programmatically 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******@community.nospam> wrote in message
news:uX**************@TK2MSFTNGP15.phx.gbl...
I use the Documents and Settings\All Users\Application 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_USER 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 programmatically 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\Application
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\Application
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.ActiveDs' and 'Interop.ADSSECURITYLib' does not have a
strong name.

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

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Ap*************@TK2MSFTNGXA01.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\Application
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.ActiveDs' and 'Interop.ADSSECURITYLib' does not have a
strong name.

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

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Ap*************@TK2MSFTNGXA01.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\Application
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******@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.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.ActiveDs' and 'Interop.ADSSECURITYLib' does
not have a strong name.

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

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Ap*************@TK2MSFTNGXA01.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\Application
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******@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.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.ActiveDs' and 'Interop.ADSSECURITYLib' does
not have a strong name.

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

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Ap*************@TK2MSFTNGXA01.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\Application
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******@community.nospam> wrote in message
news:ur**************@TK2MSFTNGP12.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******@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.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.ActiveDs' and 'Interop.ADSSECURITYLib'
does not have a strong name.

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

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Ap*************@TK2MSFTNGXA01.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\Application
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
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******@community.nospam> wrote in message
news:ur**************@TK2MSFTNGP12.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******@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.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.ActiveDs' and 'Interop.ADSSECURITYLib'
does not have a strong name.

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

Thanks,

Dennis
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Ap*************@TK2MSFTNGXA01.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\Application
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 #11
Hi Dennis,

In FAT file systems, there won't be such permissions. To detect the file
system of a certain volumn, please use the GetVolumnInformation API call.
You can check the following links for more information on this API.

http://msdn.microsoft.com/library/de...us/fileio/fs/g
etvolumeinformation.asp

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

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

Nov 17 '05 #12
Thanks Kevin,

I got that question answered on another post yesterday. It turns out there
are several ways to get the type of file system. Willy Denoyette suggested a
method that is pretty straight forward and easy to implement, even though I
would have never hit on that method on my own.

Thanks,

Dennis

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:oo**************@TK2MSFTNGXA01.phx.gbl...
Hi Dennis,

In FAT file systems, there won't be such permissions. To detect the file
system of a certain volumn, please use the GetVolumnInformation API call.
You can check the following links for more information on this API.

http://msdn.microsoft.com/library/de...us/fileio/fs/g
etvolumeinformation.asp

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

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

Nov 17 '05 #13
You're welcome, Dennis.

Thanks for sharing your experience with all the people here. If you have
any questions, please feel free to post them in the community.

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

Nov 17 '05 #14

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

Similar topics

0
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...
2
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
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...
2
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,...
1
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...
4
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
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...
1
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....
1
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.