免费注册 查看新帖 |

Chinaunix

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

如何将apache用户添加到root组中 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-21 22:53 |只看该作者 |倒序浏览
各位好:
  
   我是个新手,在学cgi+shell 编程,自己写的程序在root下可以正常运行,但是通过web无法运行,请教后知道是apache用户没有root权限原因。我试着用各种方法修改apache权限到root,但是提示错误:修改方法有修改 /etc/passwd、修改/etc/httpd/conf/httpd.conf中的用户和组,但是无法运行apache,提示如下:
[root@cgitest ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 227 of /etc/httpd/conf/httpd.conf:
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
                                                           [FAILED]
从提示上看是要增加一个变量,并要重新编译apache,我刚刚学习,有些还不清楚,能否请各位大虾给个较详细的配置过程,谢谢。
我用的是 redhat as4.0 ,默认安装的apache
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP