正常的chmod是什么? [英] What is the normal chmod?
问题描述
在我的Web服务器上,我的文件权限无处不在,我想将所有内容重置"回原来的状态.我不希望任何用户能够进入并删除我的Web服务器上的内容!我只希望他们能够查看php页面等.
On my web server, my file permissions are all over the place and I want to 'reset' everything back to how it originally was. I don't want any users to be able to come in and delete things off my web server! I just want them to be able to look at php pages etc.
我应该使用什么chmod?
What chmod should I use?
推荐答案
它们应尽可能严格,但不能再严格.
They should be as restrictive as possible, but no more.
通常0644
是一个不错的选择,它为所有者提供了读写权限,但其他所有人只能读取. 0755
用于目录.但是,这取决于您的特定系统设置.
Usually 0644
is a good choice, which gives the owner read and write rights, but everybody else only read. 0755
for directories. But, it can depend on your specific system settings.
这篇关于正常的chmod是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!