chmod 777 到一个文件夹和所有内容 [英] Chmod 777 to a folder and all contents
问题描述
我有一个 Web 目录 /www
和该目录中名为 store
的文件夹.
I have a web directory /www
and a folder in that directory called store
.
store
中有几个文件和文件夹.我想给文件夹 store
以及 store
文件夹中的所有文件和文件夹所有权限.
Within store
are several files and folders. I want to give the folder store
and all files and folders within the store
folder all permissions.
我该怎么做?我猜测是通过 .htaccess.
How do I do this? I am guessing via .htaccess.
推荐答案
如果您要使用控制台命令,它将是:
If you are going for a console command it would be:
chmod -R 777/www/store
.-R
(或 --recursive
)选项使其递归.
chmod -R 777 /www/store
. The -R
(or --recursive
) options make it recursive.
或者如果你想让当前目录下的所有文件都拥有所有权限类型:
Or if you want to make all the files in the current directory have all permissions type:
chmod -R 777 ./
如果您需要有关 chmod
命令的更多信息,请参阅:文件权限
If you need more info about chmod
command see: File permission
这篇关于chmod 777 到一个文件夹和所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!