如何在Ubuntu中更改文件权限 [英] How do I change file permissions in Ubuntu
本文介绍了如何在Ubuntu中更改文件权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Ubuntu中,我想更改整个文件夹及其所有子文件夹的文件权限,以供任何人读取/写入
In Ubuntu I want to change the file permissions of a whole folder and all its sub folders to read/write by anybody
我尝试sudo chmod 666 /var/www and sudo chmod 755 /var/www
失败
更新
此后,我发现通过以sudo打开nautilus也可以在GUI中完成更改特权.
I have since found that changing privileges can also be done in the GUI by opening nautilus as sudo.
推荐答案
为避免混淆该文件上已有的其他权限,请使用标志+
,例如via
So that you don't mess up other permissions already on the file, use the flag +
, such as via
sudo chmod -R o+rw /var/www
这篇关于如何在Ubuntu中更改文件权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文