我正在尝试通过运行纯FTPd设置一个简单的容器docker。
但是在运行service pure-ftpd start我得到这个错误:
Starting ftp server: Running: /usr/sbin/pure-ftpd -l pam -E -8 UTF-8 -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -B
421 Unable to switch capabilities : Operation not permitted
Run Code Online (Sandbox Code Playgroud)
这是用于测试此内容的Dockerfile:
FROM debian:wheezy
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update
RUN apt-get install -y pure-ftpd-common pure-ftpd
CMD service pure-ftpd start && \
/bin/bash
EXPOSE 21/tcp
Run Code Online (Sandbox Code Playgroud)
在这个测试中,我使用的是debian wheezy,但是我也尝试过使用ubuntu,并且得到了完全相同的错误。
[编辑]
现在可以在此处获得具有此修复程序的工作版本:https : //index.docker.io/u/stilliard/pure-ftpd/
我最近开始设置PureFTP服务器的任务.在工作中我们使用Postgresql 8.4.架构基本上归结为,
username text
password character(40)
password_salt text
Run Code Online (Sandbox Code Playgroud)
该password存储为哈希sha1( password + salt ).使用Postgresql的pgcrypto我可以提供一个username,password并找出用户是否有auth:
SELECT
encode( digest( $password ||password_salt, 'sha1' ), 'hex' ) = password
AS password_correct
, username
, password
, password_salt
FROM contact.person;
Run Code Online (Sandbox Code Playgroud)
现在我遇到的问题是这样的功能需要我将密码输入查询.Pureftp目前的auth-postgresql实现似乎不太可行.它仅支持提供:
\L is replaced by the login of a user trying to authenticate.
\I is replaced by the IP address the client connected to.
\P is replaced by the port number the client connected to.
\R is replaced …Run Code Online (Sandbox Code Playgroud) 我在 AWS ec2 实例上运行了 pureftp。我试图让它在我认为有效的被动模式下运行,但是我发现它可能无法正常工作。我在 FileZilla 中收到以下错误
Status: Connected
Status: Retrieving directory listing...
Status: Server sent passive reply with unroutable address. Using server address instead.
Status: Directory listing of "/" successful
Run Code Online (Sandbox Code Playgroud)
奇怪的是,有些人无法登录,而其他人则无法登录。
我有以下 pureftp 配置
端口范围
#Port range for passive connections replies. - for firewalling.
PassivePortRange `50000 50100`
Run Code Online (Sandbox Code Playgroud)
PASV IP
#Force an IP address in PASV/EPSV/SPSV replies. - for NAT.
#Symbolic host names are also accepted for gateways with dynamic IP
#addresses.
ForcePassiveIP `ftp.mydomain.com` "my cname record is mapped to …Run Code Online (Sandbox Code Playgroud)