博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

飞翔,嵌入式linux

linux嵌入式系统必将大行于天下。专注于linux嵌入式系统的搭建,专注于高效稳定软件的开发,专注底层程序调试技术。
  feixiang.cublog.cn

关于作者
姓名:飞翔
Email:loughsky@sina.com
职业:IT
年龄:32
位置:北京
个性介绍:专注在嵌入式操作系统,以及高效程序调试
|| << >> ||
我的分类


Setting up suEXEC and Mailman so they'll play nice
On the system I administer (A Redhat 6.0 installation) we are
running suEXEC so that users can safely run CGIs.  However, this presents
difficulties with Mailman, since its CGIs are SGID so that, in a normal
environment, any user can run it.  That being said, here's how to set up
an installation of Mailman in an suEXEC environment:


1. Create your installation directory.  I used
/usr/local/apache/htdocs/mailman on my system.  I have mailman in the
/usr/local/apache/htdocs directory since that is "root" to suEXEC.

2. You'll need to create a Mailman user, then chgrp the directory
to the Mailman user so that the configure script doesn't complain.  Then,
chmod 2755 the directory since configure also wants it to be SGID.

3. Run configure like this:

./configure --prefix=/usr/local/apache/htdocs/mailman --with-cgi-gid=doug
--with-mail-gid=your_mailservers_gid

4. Make install

5. Change ownership on the Mailman installation to the user
owning it.  "chmod -R doug.doug /usr/local/apache/htdocs/mailman" worked
for me.

6. "chmod u-s,g-s" the contents of the cgi-bin directory so that
suEXEC doesn't complain about trying to run a SUID/SGID program.

7. "chmod g-w cgi-bin" so that suEXEC doesn't complain about the
directory being writable by others.

8. Configure the webserver(s) using Mailman with the User and Group
directive to be set accordingly.

9. Proceed with the other steps in the mailman installation, but
be sure that it's done in terms of the user that you set this up, NOT
mailman.  In fact, after configure is run, you should be able to safely
delete the mailman user and his home directory, as they will not be
needed anymore.

If anyone has any questions or comments, I'm not on the
Mailman-users list, so feel free to write me directory at
dmuth at suespammers.org!

 原文地址 http://mail.python.org/pipermail/mailman-users/1999-November/002656.html
发表于: 2007-11-14,修改于: 2007-11-14 15:58,已浏览448次,有评论0条 推荐 投诉


网友评论
 发表评论