LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 915|回复: 6

问个菜菜的问题:是不是把www目录下的所有文件都改成777??

[复制链接]
发表于 2005-2-16 15:39:40 | 显示全部楼层 |阅读模式
这样会不会有风险?
发表于 2005-2-16 17:26:50 | 显示全部楼层
危险当然有,但不是特别大,另外也没有必要!
回复 支持 反对

使用道具 举报

发表于 2005-2-16 18:08:28 | 显示全部楼层
这个要根据实际情况来啊
再者你把所有的东东都改成777有什么意义呢
回复 支持 反对

使用道具 举报

发表于 2005-2-16 22:31:23 | 显示全部楼层
Post by aniuge007
这样会不会有风险?

危险当然有!!!

是不是特别大?  It depends on your applications.  Certain document management system (DMS) need to pre-define the administrator password in its own configuration file.  If you set everything under www with 777 permission, then anyone can become the administrator!  Not good!
回复 支持 反对

使用道具 举报

发表于 2005-2-16 22:33:28 | 显示全部楼层
then anyone can become the administrator
回复 支持 反对

使用道具 举报

发表于 2005-2-17 09:03:44 | 显示全部楼层
Post by webwww
then anyone can become the administrator

那倒不会,只是危险性会大一些。

一般来说,755就行了,
有些目录则要按要求设为777,比如论坛的一些目录。
回复 支持 反对

使用道具 举报

发表于 2005-2-17 12:30:27 | 显示全部楼层
Again, it depends on applications.  However, under any circumstances, we should not let unauthorized persons to read system configuration files, esp. when passwords are stored in plain text.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表