Pure-ftpd可以选择创建您自己的身份验证模块,但是它需要运行时工作才能完成:
Now, we have to run pure-authd and pure-ftpd, to connect them through a
local socket and to tell pure-ftpd to use our external authentication module:
pure-authd -s /var/run/ftpd.sock -r /usr/bin/ftp-auth-handler &
pure-ftpd -lextauth:/var/run/ftpd.sock &
That's all. Now, we can only log in as 'john', as all FTP authentication is
done by the shell script.有没有办法在配置中完成这两个命令?
发布于 2011-11-04 17:51:57
我昨天遇到了同样的问题,并这样解决了它:只要我发现你不能把"pure-authd /var/run/ftpd.sock -r /usr/bin/ftp-auth-handler &“放到配置文件中,也许可以编辑pure-ftpd-wrapper来用pure-ftpd启动/停止它……
对于参数"-lextauth:/var/run/ftpd.sock",在debian上:使用套接字的路径作为内容创建文件/etc/pure-ftpd/conf/ExtAuth (例如,/var/run/ftpd.sock),然后转到/etc/pure-ftpd/auth并创建一个指向刚刚创建的conf/ExtAuth文件的名为ExtAuth的系统链接: ln -s /etc/pure-ftpd/auth/ExtAuth /etc/pure-ftpd/conf/ExtAuth
这并不是您想知道的,但至少您可以使用init.d脚本来启动/停止pure-ftpd...(并开始纯粹的--创作自己)
发布于 2013-06-13 17:40:40
我不认为您可以在配置中做到这一点,但是您可以从/etc/inittab自动运行纯身份验证
PAU:23:respawn:/usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/bin/ftp-auth-handler保存/etc/inittab后,运行init q重新加载它。
https://stackoverflow.com/questions/6963336
复制相似问题