php 如何为特定文件夹设置 777 权限?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11389765/
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
How to set 777 permission on a particular folder?
提问by Jalpesh Patel
How to set 777 permission on folder.
如何设置文件夹的 777 权限。
- i need to Set the permission of the following folder to 777: admin\includes\module_installation
- 我需要将以下文件夹的权限设置为 777:admin\includes\module_installation
I do no idea how to set the permission 777 on particular folder in window 7??
我不知道如何在窗口 7 中的特定文件夹上设置权限 777?
Please help me how can I set it? I am using windows 7.
请帮我如何设置?我正在使用 Windows 7。
回答by Junaid
777is a permission in Unix based system with full read/write/execute permission to owner, group and everyone.. in general we give this permission to assets which are not much needed to be hidden from public on a web server, for example images..
777是基于 Unix 的系统中的权限,对所有者、组和每个人具有完全读/写/执行权限。一般来说,我们将此权限授予在 Web 服务器上不需要对公众隐藏的资产,例如图像。 .
You said I am using windows 7.if that means that your web server is Windows based then you should login to that and right click the folder and set permissions to everyoneand if you are on a windows client and server is unix/linux based then use some ftp software and in the parent directory right click and change the permission for the folder.
您说I am using windows 7.如果这意味着您的 Web 服务器是基于 Windows 的,那么您应该登录并右键单击该文件夹并设置权限everyone,如果您使用的是 Windows 客户端并且服务器是基于 unix/linux 的,则使用一些 ftp 软件并在父目录右键单击并更改文件夹的权限。
If you want permission to be set on sub-directoriestoo then usually their is option to set permission recursively use that.
如果您也想设置权限,sub-directories那么通常他们可以选择递归地设置权限。
And, if you feel like doing it from command line the use putty and login to server and go to the parent directory includesand write the following command
而且,如果您想从命令行执行此操作,请使用 putty 并登录到服务器并转到父目录includes并编写以下命令
chmod 0777 module_installation/
for recursive
对于递归
chmod -R 0777 module_installation/
Hope this will help you
希望能帮到你
回答by dpitkevics
Easiest way to set permissions to 777 is to connect to Your server through FTP Application like FileZilla, right click on folder, module_installation, and click Change Permissions - then write 777 or check all permissions.
将权限设置为 777 的最简单方法是通过 FileZilla 等 FTP 应用程序连接到您的服务器,右键单击文件夹、module_installation,然后单击更改权限 - 然后写入 777 或检查所有权限。
回答by ErJab
- Right click the folder, click on Properties.
- Click on the Security tab
- Add the name
Everyoneto the user list.
- 右键单击文件夹,单击“属性”。
- 单击安全选项卡
- 将该名称添加
Everyone到用户列表中。
回答by jibon
go to FileZilla and select which folder you will be give 777 permission, then right click set permission 777 and select check box, then ok.
转到 FileZilla 并选择您将获得 777 权限的文件夹,然后右键单击设置权限 777 并选择复选框,然后确定。

