2011-08-05 9 views
0

ピュア-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. 

設定でこれら2つのコマンドを実行する方法はありますか?

答えて

1

私は同じ問題を昨日持っていました: 「純粋なauthd -s /var/run/ftpd.sock -r/usr/bin/ftp -auth-handler & "をconfigファイルに書き込んで、純粋なftpdラッパーを編集して純粋なftpdで起動/停止することができます。

パラメータ" -lextauth:/var/run/ftpd.sock "/etc/pure-ftpd/conf/ExtAuthファイルを作成してください(例えば/var/run/ftpd.sock) /etc/pure-ftpd/conf/ln -s/etc/pure-ftpd/auth/ExtAuth/etc/pure-ftpd/conf/ExtAuth

のconf-extAuthファイルに対して、ExtAuthという名前のシンボリックリンクを作成して作成します。私はドン

あなたが知りたかったまさにではありませんが、少なくともあなたは...純粋-ftpdの開始/停止(と自分を-authd純粋起動)するためにinit.dスクリプトを使用することができます

0

」 tはしかし、あなたが/etc/inittabから自動的に純粋-authdを実行することができ、あなたが設定でこれを行うことができると思います。

PAU:23:respawn:/usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/bin/ftp-auth-handler 

/etc/inittab実行init qを保存した後は、それをリロードします。

関連する問題