linux - 无法更改Linux中文件的权限

标签 linux

无法更改 cgi-bin 的权限。我希望该文件夹也为用户提供写入选项

abc@abc:~/public_html> ls -l
total 12
drwxr-xr-x 2 root   root  4096 2013-10-24 11:16 cgi-bin
-rw-r--r-- 1 john users  835 2013-10-24 15:54 index.html

当我写作时

abc@abc:~/public_html> chmod 770 cgi-bin

错误:

chmod:更改“cgi-bin”的权限:不允许操作

最佳答案

你应该使用

sudo chmod 770 cgi-bin

或递归更改文件夹中的所有文件

sudo chmod -R 770 cgi-bin

关于linux - 无法更改Linux中文件的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19564850/

相关文章:

Debian 上的 Rubygems : Gems won't load (LoadError)

linux - 命令不会在 sudo 之后作为另一个用户回显

ruby - 用于从 shell 管理 Virtualbox 的 Vagrant Ruby 代码

无法打开共享对象文件: No such file or directory | including libbpf with userspace program

linux - fail2ban ipv6 支持不起作用

python - 为什么我的代码无法检测到操纵杆上的按钮按下

linux - Diff 命令在逻辑上不起作用

c++ - 尽管包含头文件和库,uuid 函数仍未定义

c++ - 你如何在 Anjuta 中找到变量和函数定义?

linux - Linux 页表指针取消引用到底发生了什么?