proFTPD 安装 mod_exec

发布于 2024-11-27 02:56:24 字数 115 浏览 2 评论 0原文

对于傻瓜,请:

我需要在 debian squeeze(64 位)上安装 proFTPD 模块 mod_exec。 它是如何运作的。 proftpd 页面上的文档对我没有帮助。

谢谢。

For dummys please:

I need to install proFTPD module mod_exec on a debian squeeze (64bit).
How does it work. The documentation on the proftpd page was no help for me.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

向日葵 2024-12-04 02:56:24

编译源代码是正确的唯一方法。顺便说一句,您将获得包含重要错误修复的最新版本。我已经通过以下步骤完成了此操作:

# install build-tools and dependencies:
aptitude install build-essential gettext make g++ libwrap0-dev libldap2-dev libmysql++-dev libpam0g-dev libssl-dev libsqlite3-dev unixodbc-dev libncurses5-dev libacl1-dev libcap-dev

# download sources:
wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3e.tar.gz
tar -xvf proftpd-1.3.3e.tar.gz
cd proftpd-1.3.3e

# add missing module mod_vroot
cd contrib/
wget http://www.castaglia.org/proftpd/modules/proftpd-mod-vroot-0.9.2.tar.gz
tar -xvf proftpd-mod-vroot-0.9.2.tar.gz
cd ..

# configure, make and install:
./configure --prefix=/usr --with-includes=/usr/include/postgresql:/usr/include/mysql --mandir=/usr/share/man --sysconfdir=/etc/proftpd --localstatedir=/var/run --libexecdir=/usr/lib/proftpd --enable-sendfile --enable-facl --enable-dso --enable-autoshadow --enable-ctrls --with-modules=mod_readme:mod_sql:mod_sql_postgres:mod_exec --enable-ipv6 --enable-nls --build x86_64-linux-gnu --with-shared=mod_unique_id:mod_site_misc:mod_load:mod_ban:mod_quotatab:mod_sql:mod_sql_mysql:mod_sql_postgres:mod_sql_sqlite:mod_sql_odbc:mod_dynmasq:mod_quotatab_sql:mod_ldap:mod_quotatab_ldap:mod_ratio:mod_tls:mod_rewrite:mod_radius:mod_wrap:mod_wrap2:mod_wrap2_file:mod_wrap2_sql:mod_quotatab_file:mod_quotatab_radius:mod_facl:mod_ctrls_admin:mod_vroot:mod_sftp:mod_sftp_pam:mod_sftp_sql:mod_shaper:mod_sql_passwd:mod_ifsession build_alias=x86_64-linux-gnu CFLAGS=-O2
make
make install

我使用 --with-modules=mod_readme:mod_sql:mod_sql_postgres:mod_exec 来将 mod_sql 包含在 postgres 中,这可能不是必需的,因为它位于 --with-shared 部分。

Compiling the source is the only way to get it right. By the way you'll get the latest version with important bugfixes. I've done this with these steps:

# install build-tools and dependencies:
aptitude install build-essential gettext make g++ libwrap0-dev libldap2-dev libmysql++-dev libpam0g-dev libssl-dev libsqlite3-dev unixodbc-dev libncurses5-dev libacl1-dev libcap-dev

# download sources:
wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3e.tar.gz
tar -xvf proftpd-1.3.3e.tar.gz
cd proftpd-1.3.3e

# add missing module mod_vroot
cd contrib/
wget http://www.castaglia.org/proftpd/modules/proftpd-mod-vroot-0.9.2.tar.gz
tar -xvf proftpd-mod-vroot-0.9.2.tar.gz
cd ..

# configure, make and install:
./configure --prefix=/usr --with-includes=/usr/include/postgresql:/usr/include/mysql --mandir=/usr/share/man --sysconfdir=/etc/proftpd --localstatedir=/var/run --libexecdir=/usr/lib/proftpd --enable-sendfile --enable-facl --enable-dso --enable-autoshadow --enable-ctrls --with-modules=mod_readme:mod_sql:mod_sql_postgres:mod_exec --enable-ipv6 --enable-nls --build x86_64-linux-gnu --with-shared=mod_unique_id:mod_site_misc:mod_load:mod_ban:mod_quotatab:mod_sql:mod_sql_mysql:mod_sql_postgres:mod_sql_sqlite:mod_sql_odbc:mod_dynmasq:mod_quotatab_sql:mod_ldap:mod_quotatab_ldap:mod_ratio:mod_tls:mod_rewrite:mod_radius:mod_wrap:mod_wrap2:mod_wrap2_file:mod_wrap2_sql:mod_quotatab_file:mod_quotatab_radius:mod_facl:mod_ctrls_admin:mod_vroot:mod_sftp:mod_sftp_pam:mod_sftp_sql:mod_shaper:mod_sql_passwd:mod_ifsession build_alias=x86_64-linux-gnu CFLAGS=-O2
make
make install

I've used --with-modules=mod_readme:mod_sql:mod_sql_postgres:mod_exec to also include mod_sql with postgres which is maybe not necessary because it's in the --with-shared part.

尛丟丟 2024-12-04 02:56:24

奇怪的。 可用:

$ dpkg -L proftpd-basic | grep exec
/usr/lib/proftpd/mod_exec.so

在我的 Debian squeeze 系统上,它默认

$ apt-cache policy proftpd-basic
proftpd-basic:
  Installed: 1.3.3a-6squeeze6
  Candidate: 1.3.3a-6squeeze6
  Version table:
     1.3.5~rc1-2 0
         -1 http://ftp.fr.debian.org/debian/ experimental/main amd64 Packages
     1.3.4a-3 0
        200 http://ftp.fr.debian.org/debian/ testing/main amd64 Packages
        100 http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages
 *** 1.3.3a-6squeeze6 0
        500 http://security.debian.org/ squeeze/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.3.3a-6squeeze4 0
        500 http://ftp.fr.debian.org/debian/ squeeze/main amd64 Packages

Odd. On my debian squeeze system it is available by default:

$ dpkg -L proftpd-basic | grep exec
/usr/lib/proftpd/mod_exec.so

with

$ apt-cache policy proftpd-basic
proftpd-basic:
  Installed: 1.3.3a-6squeeze6
  Candidate: 1.3.3a-6squeeze6
  Version table:
     1.3.5~rc1-2 0
         -1 http://ftp.fr.debian.org/debian/ experimental/main amd64 Packages
     1.3.4a-3 0
        200 http://ftp.fr.debian.org/debian/ testing/main amd64 Packages
        100 http://ftp.fr.debian.org/debian/ unstable/main amd64 Packages
 *** 1.3.3a-6squeeze6 0
        500 http://security.debian.org/ squeeze/updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.3.3a-6squeeze4 0
        500 http://ftp.fr.debian.org/debian/ squeeze/main amd64 Packages
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文