AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 549770
Accepted
NXT
NXT
Asked: 2013-10-31 15:48:08 +0800 CST2013-10-31 15:48:08 +0800 CST 2013-10-31 15:48:08 +0800 CST

Debian Wheezy 和 SUID Perl

  • 772

我刚刚将一个 Debian Lenny 盒子升级到 Wheezy,发现 suidperl 不见了。谷歌搜索显示上游维护者删除了它;

我需要suidperl 来运行我们的邮件安装 Open Webmail。

我没有时间做这个。

谷歌搜索没有发现简单的解决方法。

这里有谁知道如何在 wheezy 上获得 suidperl?简单地?谢谢。

perl
  • 3 3 个回答
  • 1732 Views

3 个回答

  • Voted
  1. Best Answer
    Phil
    2013-10-31T16:12:54+08:002013-10-31T16:12:54+08:00

    底线:如果您没有时间,那么您需要恢复到升级前的系统快照/备份,直到您有时间迁移到不推荐使用已弃用技术的 web 邮件系统。

    据我记得(自从我看到一个开放的 webmail 安装以来可能已经 8 年了),开放的 webmail 直接读取邮件假脱机(因此需要 suid),而大多数 webmail 系统都与 IMAP 服务器交互(推动了对suid 到它所属的邮件服务器)。

    据我所知,suidperl早在 2008 年就在 perl 5.12 中被删除(?),因为上游级别(即:Debian 之上)没有人想要维护它 - 或者换句话说,suidperl 不再存在于任何地方。您幸运地拥有它这么久的唯一原因是因为 Debian stable 使用大多数软件的相当旧版本(带有向后移植的安全修复程序)。它不再存在当然不是 Debian 的错。

    如果您出于某种原因真的真的想在 wheezy 和更新版本上继续使用开放式 webmail,您唯一的选择是遵循http://openwebmail.org/openwebmail/doc/上的 Open Webmail 常见问题解答部分 4:e (ps, ps) faq.txt其中指出:

      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
  2. jsveiga
    2014-05-23T17:39:00+08:002014-05-23T17:39:00+08:00

    我得到了 openwebmail 2.53+ 与快速和 c-wrappers 一起工作:

    1 - 从http://daemoninc.com/SpeedyCGI/download.html下载 speedy 2.22 源代码

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

    /src/speedy_backend_main.h:

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

    +#define speedy_new(s,n,t) Newx(s,n,t)

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

    3 - perl Makefile.PL; 制作; 进行安装(不要费心添加 -DIAMSUID)

    4 - 改变#!在你的 openwebmail*.pl 上的一行

    /usr/bin/speedy -- -T/tmp/speedy

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

    perl 杂项/工具/wrapsuid/wrapsuid.pl /var/www/owtest/cgi-bin/openwebmail

    6 - chmod u+s openwebmail*pl

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

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

    • 0
  3. wwortel
    2016-04-22T03:14:15+08:002016-04-22T03:14:15+08:00

    感谢所有的处方、提示和帮助。
    在最近的 Debian8 (Jessie) 64 位安装中,Speedy 和 suid 都可以正常工作!在 VirtualPrivateServer 上新安装的 Debian8 上,我还需要进行 pam 身份验证:

    apt-get install libpam-dev
    perl -MCPAN -e shell
    install Authen::PAM
    exit
    

    另外需要的是所有目录chmod 2750中的所有文件.openwebmail/db。
    否则openwebmail/shares/maildb.pl脚本会抱怨无法打开数据库。

    除此之外,一切似乎都很好!

    • 0

相关问题

  • CentOS 的依赖挑战

  • 将执行 Perl REGEX 扩展的 Lex Flex 变体

  • 将 perl 脚本作为 Windows 服务运行

  • debian 升级失败,导致 perl 问题

  • Perl 5.10 登录/注销脚本

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve