由 訪客 » 週三 4月 14, 2004 9:19 am
之前也遇過相同的問題提供一下解法 這解法對我比較方便 大家參考看看
ps:我使用的版本是從openwebmail.org下載的版本可能跟apt下來的有些不同
openwebmail對suid有提供一種解法 是使用warp的方式
記得要改.openwebmail*.pl 把 #!/usr/bin/suidperl -T 改成 #!/usr/bin/perl -T 或 #!/usr/bin/speedy -T -- -T/tmp/speedy
在faq有提到
ps:If you don't want to recompile perl, you choose to may use
uty/suidwrap.pl to generate C wrappers for all suid scripts.
However, this is not recommended, as you will not be able to
use SpeedyCGI with the openwebmail system.
Here are the steps:
1. cd cgi-bin/openwebmail
2. perl uty/wrapsuid.pl /fullpath/cgi-bin/openwebmail
3. change #!/usr/bin/suidperl to the path of your perl
All suid scripts will be renamed to .scriptname.pl and
the C wrapper will be generated and named as script.pl
(thanks to Chris Heegard, heegard.AT.NativeI.com)
The spellcheck may not work on Solaris when using C wrappers.
(thanks to Isam Ishaq, isam.AT.planet.edu)