所有用户应用程序数据权限 [英] All Users Application Data Permissions

查看:94
本文介绍了所有用户应用程序数据权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Documents and Settings \ All Users\Application Data \ AppName文件夹

来存储适用于登录
$ b $的所有用户的xml设置b机器。 (与我的应用程序关联的uers个人设置是

存储在系统注册表的HKEY_CURRENT_USER部分)


创建xml文件和新闻文件夹时通过在Windows XP下运行

的应用程序,新文件夹和xml文件具有为

设置的权限默认情况下,每个人都可以读取和写入文件和文件夹。 />

当我的应用程序在

Windows 2000下运行创建xml文件和新文件夹时,Everyone无法写入新文件夹和xml文件,

只读。


有没有办法以编程方式更改文件和

文件夹在Windows下运行时创建的文件夹2000表示

喜欢Windows XP?


谢谢,


Dennis

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

推荐答案

更正:


我看的XP机器显然已损坏全部使用rs

个人资料。我测试的其他XP机器具有与W2K

机器相同的架构,即用户必须至少有一个Power User组成员

才能写入文件和所有用户应用程序数据文件夹中的文件夹。


它是所有用户应用程序数据文件夹的默认行为

限制所有成员的写访问权限用户组和Everyone组?

我原以为所有用户配置文件都适用于所有用户。


Dennis


" Dennis C. Drumm" <直流****** @ community.nospam>在消息中写道

news:uX ************** @ TK2MSFTNGP15.phx.gbl ...
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...
我使用的文件和设置\所有用户\Application Data \ AppName文件夹
存储适用于登录
计算机的所有用户的xml设置。 (与我的应用程序关联的uers个人设置存储在系统注册表的HKEY_CURRENT_USER部分中)

当我的应用程序运行创建xml文件和新闻文件夹时
在Windows XP下,新文件夹和xml文件具有为每个人默认读取和写入文件和文件夹的权限。

当创建xml文件和新文件夹时我的应用程序运行在Windows 2000下,新文件夹和xml文件无法写入
每个人,只能读取。

有没有办法以编程方式更改文件的权限和应用程序在Windows 2000下运行时创建的文件夹是否像Windows XP一样?

谢谢,

丹尼斯
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



更正:


我看的XP机器显然有一个损坏的所有用户

配置文件。我测试的其他XP机器具有与W2K

机器相同的架构,即用户必须至少有一个Power User组成员

才能写入文件和所有用户应用程序数据文件夹中的文件夹。


它是所有用户应用程序数据文件夹的默认行为

限制所有成员的写访问权限用户组和Everyone组?

我原以为所有用户配置文件都适用于所有用户。


Dennis


" Dennis C. Drumm" <直流****** @ community.nospam>在消息中写道

news:uX ************** @ TK2MSFTNGP15.phx.gbl ...
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...
我使用的文件和设置\所有用户\Application Data \ AppName文件夹
存储适用于登录
计算机的所有用户的xml设置。 (与我的应用程序关联的uers个人设置存储在系统注册表的HKEY_CURRENT_USER部分中)

当我的应用程序运行创建xml文件和新闻文件夹时
在Windows XP下,新文件夹和xml文件具有为每个人默认读取和写入文件和文件夹的权限。

当创建xml文件和新文件夹时我的应用程序运行在Windows 2000下,新文件夹和xml文件无法写入
每个人,只能读取。

有没有办法以编程方式更改文件的权限和应用程序在Windows 2000下运行时创建的文件夹是否像Windows XP一样?

谢谢,

丹尼斯
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



嗨Dennis,


在Windows 2000和XP中,默认情况下只有管理员和电源

用户可以写入Documents and Settings \ All Us ers\Application

Data\AppName文件夹。要更改权限,我建议您查看以下知识库文章后的



http://support.microsoft.com/default...b;en-us;818362
< br $>
Kevin Yu

=======

此帖子已提供按原样没有保证,也没有赋予

权利。

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."


这篇关于所有用户应用程序数据权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆