Re: [Openwebmail]openwebmail-prefs.pl setuid …
【 在 yufun.bbs@bbs.nchu.edu.tw (yufun) 的大作中提到: 】
: ※ 引述《SuperLight.bbs@superlight.twbbs.org (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]
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章