看板FreeBSD
标 题Re: [Openwebmail]openwebmail-prefs.pl setuid …
发信站bodhi (Fri Sep 24 10:49:57 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.csie.nctu!news.ee.nthu!bodhi
【 在
[email protected] (yufun) 的大作中提到: 】
: ※ 引述《[email protected] (bad.....)》之铭言:
: > 是正确的 :)
: > 要修改权限的东西有几个,写成 script 比较方便:
: > chown_openwebmail.sh
: > #!/bin/sh
: > chmod 4555 /usr/bin/suidperl
: > opmdir='/xxxxxx/openwebmail'
: > chown -R root:mail $wwwdir
: > chmod 4755 $opmdir/openwebmail*.pl
: > chmod 0755 $opmdir/vacation.pl
: > chmod 755 $opmdir/etc
: > chmod 771 $opmdir/etc/sessions
: > chmod 771 $opmdir/etc/users
: > 不过这些动作 ports 应该都做好了吧?
: 我新装的主机也是如此,因为是用ports装的,权限应该是没问题的,
: 但是还是会出现
: '/usr/local/www/cgi-bin/openwebmail/openwebmail-prefs.pl' must setuid to root
: 不知道会不会是perl版本的问题?
: #pkg_info | grep perl
: #perl-5.6.1_15 Practical Extraction and Report Language
: #perl-5.8.5 Practical Extraction and Report Language
刚刚再仔细看 openwebmail 的 FAQ
5. If you are using SpeedyCGI, openwebmail seems be okay at the beginning,
but it shows "Internal Server Error" sometimes ...
Please check the apache log to see if there is error messages like
"unable to open tmp file ..."
If yes, you system may not have the savedsuid support,
please set have_savedsuid_support to 'no' in etc/suid.conf
在修改 /usr/local/www/cgi-bin/openwebmail/etc/defaults/suid.conf
之後, 居然就成功登入了 :)
不过, 我的 perl 是 5.6.1
--
◇◇净水澄心月偏西,
莲华浴火日昇东◇◇
净莲佛学资讯服务网
bbs(DN):lotus.twbbs.org ||
http://lotus.twbbs.org/
※ 来源:﹒菩提心园 bodhi.twbbs.org﹒[FROM: 220-130-107-113.HINE]