看板FreeBSD
标 题Re: [Openwebmail]openwebmail-prefs.pl setuid to …
发信站天枢资讯网 (Fri Sep 24 00:32:46 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.nchu!pivot
※ 引述《[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
--
Ξ Origin: 中兴大学天枢资讯网 <bbs.nchu.edu.tw>
Ξ From : 220-134-247-35.HINET-IP.hinet.net