免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1708 | 回复: 1
打印 上一主题 下一主题

[Web] 怎样使apache以root身分启动? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-18 15:26 |只看该作者 |倒序浏览
我把httpd.conf中的user和Group 改为root
但错误提示如下:

Error:\tApache has not been designed to serve pages while\n\trunning as root.  There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n

请问这个 DBIG_SECURITY_HOLE变量需要怎么改,才可以使apache以root身分启动呢?

论坛徽章:
0
2 [报告]
发表于 2006-05-21 23:48 |只看该作者
原帖由 s7ck4 于 2006-5-18 15:26 发表
我把httpd.conf中的user和Group 改为root


實在不懂為何需要讓 apache 用 root 身分跑?這意義何在呢?

訊息內告訴你,你堅持要的話,請於編譯 apache 時先定義該指定變量,然後重新跑 apache 編譯流程產生的程式檔案就可以支援了。

若你可以把需要用 root 身分跑的需求說出來讓每個人都可以信服的話,那我想您就這樣進行吧。只是安全問題請自求多福。

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP