windows 如何递归更改 WAMP 服务器上的文件夹权限

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12774977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 15:55:27  来源:igfitidea点击:

How to recursively change folder permissions on WAMP server

windowsrecursionpermissionsdirectorywamp

提问by americanknight

How do I change folder permissions recursively in Windows 7? Specifically, for my WAMP server, I want to change the permissions of my "www" folder so that its contents can be viewed over the Internet, and I want all of its subfolders to have the same permissions. Currently, for each folder, I'm getting the following message in my browser: "You don't have permission to access / on this server." I believe there's a simple command I could enter in a terminal for recursively changing folder permissions for global access; I just don't know what it is.

如何在 Windows 7 中递归更改文件夹权限?具体来说,对于我的 WAMP 服务器,我想更改“www”文件夹的权限,以便可以通过 Internet 查看其内容,并且我希望其所有子文件夹都具有相同的权限。目前,对于每个文件夹,我都会在浏览器中收到以下消息:“您无权访问 / 在此服务器上。” 我相信我可以在终端中输入一个简单的命令来递归更改全局访问的文件夹权限;我只是不知道它是什么。

回答by Mike

Replace all child object permissions with inheritable permissions from this object checkbox must be checked when changing permissions under Properties > Security tab > Advanced > Change Permission Do this in the GUI to the parent folder.

在属性 > 安全选项卡 > 高级 > 更改权限下更改权限时,必须选中从此对象的可继承权限替换所有子对象权限复选框。在 GUI 中对父文件夹执行此操作。