首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Debian Wheezy和SUID Perl

Debian Wheezy和SUID Perl
EN

Server Fault用户
提问于 2013-10-30 23:48:08
回答 2查看 1.7K关注 0票数 3

我刚把Debian Lenny盒升级到Wheezy,发现suidperl不见了。谷歌显示,上游维护人员将其移除;

我需要suidperl来运行我们的邮件安装,打开Webmail。

我没时间谈这个。

谷歌搜索没有简单的解决办法。

这里有谁知道怎么控制喘息吗?简单吗?谢谢。

EN

回答 2

Server Fault用户

回答已采纳

发布于 2013-10-31 00:12:54

底线:如果您没有时间这样做,那么您需要恢复到升级前的系统快照/备份,直到您有时间迁移到一个不建议使用不推荐的技术的webmail系统。

据我所知(我已经看到开放的webmail安装已经8年了),打开的webmail直接读取邮件线轴(因此需要suid),而大多数的webmail系统则与IMAP服务器交互(将suid的需求推到它所属的mailserver )。

据我所知,suidperl在2008年的perl 5.12中被删除(?)因为上游级别(即Debian之上)没有人想要维护它--换句话说,suidperl在任何地方都不存在。您之所以幸运地使用了这么长时间,唯一的原因是Debian稳定使用了大多数软件的旧版本(带有支持的安全修复)。不再存在当然不是Debian的错。

如果出于某些原因,您真的想继续使用打开的webmail,那么您唯一的选择是遵循open第4节:e (ps,ps)在http://openwebmail.org/openwebmail/doc/faq.txt上的如下内容:

代码语言:javascript
复制
  ps: If you don't want to recompile perl, you choose to may use
      misc/tools/suidwrap.pl to generate C wrappers for all suid scripts.

      However, this is not recommended at all, as you will not be able
      to use SpeedyCGI with the openwebmail system.

      Here are the steps:
      1. cd cgi-bin/openwebmail
      2. perl misc/tool/wrapsuid/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)

遗憾的是坏消息,但有时没有好的答案:\

票数 8
EN

Server Fault用户

发布于 2014-05-23 01:39:00

我让openwebmail 2.53+与快速和c-包装器一起工作:

1-从http://daemoninc.com/SpeedyCGI/download.html下载快速2.22源

2-提取tar.gz并对其进行编辑以进行编译:

/src/快速后端_main.h:

-#define speedy_new(s,n,t)新(123,s,n,t)

+#define speedy_new(s,n,t)新闻(S,n,t)

(http://sourceforge.net/p/speedycgi/bugs/91/#7fc6)

3- perl Makefile.PL;make;Makefile.PL(不用费心添加-DIAMSUID)

4-换个#!在您的openwebmail*.pl上的行

/usr/bin/速-T/tmp/速

5-在openwebmail*.pl目录上,运行c包装脚本(相应地更改dir ):

perl misc/tools/wrapsuid/wrapsuid.pl /var/www/owtest/cgi-bin/openwebmail

6- chmod u+s openwebmail*pl

这在我的挤压服务器(我准备升级到喘息,所以我需要这个工作)。

(请注意,我的openwebmail 2.53不是股票2.53,但可能介于它和3 3beta之间,但它应该对两者都适用)

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/549770

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档