Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 938 Bytes

Pure-FTPd.asc

File metadata and controls

46 lines (30 loc) · 938 Bytes

Pure-FTPd in Docker

必须使用 --without-capabilities 参数重新编译 Pure-FTPd,否则会出现以下错误:

[root@690bec85ee11 /]# /usr/sbin/pure-ftpd
421 Unable to switch capabilities : Operation not permitted

重新打包

准备打包环境
cd ~
yum install yum-utils rpm-build gcc
yumdownloader --source pure-ftpd
rpm -ivh pure-ftpd-1.0.42-3.el7.src.rpm
yum-builddep pure-ftpd
修改包文件
sed -i 's/--with-capabilities /--without-capabilities /g' rpmbuild/SPECS/pure-ftpd.spec
准备源代码
rpmbuild -bp rpmbuild/SPECS/pure-ftpd.spec
重新打包
rpmbuild -ba rpmbuild/SPECS/pure-ftpd.spec
安装测试
rpm -ivh ~/rpmbuild/RPMS/x86_64/pure-ftpd-1.0.42-3.el7.centos.x86_64.rpm
/usr/sbin/pure-config.pl /etc/pure-ftpd/pure-ftpd.conf --daemonize

ps aux|grep ftp