linux - chmod 777 到一个文件夹和所有内容

标签 linux permissions file-permissions chmod

我有一个 Web 目录 /www 和该目录中的一个名为 store 的文件夹。

store 内有多个文件和文件夹。我想为文件夹 store 以及 store 文件夹中的所有文件和文件夹授予所有权限。

我该怎么做?我猜是通过 .htaccess。

最佳答案

如果您要使用控制台命令,它将是:

chmod -R 777/www/store-R(或 --recursive)选项使其递归。

或者如果你想让当前目录下的所有文件都拥有所有权限类型:

chmod -R 777 ./

如果您需要有关 chmod 命令的更多信息,请参阅:File permission

关于linux - chmod 777 到一个文件夹和所有内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8328481/

相关文章:

c++ - 在串行端口上读取返回我刚写的内容

c++ - 整数和 float 之间的加法......结果为零

java - 无法执行基本的 Hadoop Mapreduce Wordcount 示例

linux - 我在哪里可以获得 Windows `--shared` 命令的 `git init` 选项的描述?

python - GnuPG homedir 读/写权限

C# Linq for files 用户具有读取权限

c# - 无法复制文件,即使在 C# 中授予了 FileIOPermission

c - 'c interfaces and implementations' (David Hanson) 代码安装

django - 无法使用 boto 和 django 在 S3 中设置文件权限

Linux 权限、apache 和 Cron 选项卡