ネットワーク設定 > Proftpd

専用パスワードファイルをつくる

Linuxのユーザーに追加せずファイルで管理する。

proftpd.confの編集

proftpd.confに以下を追加。

AuthUserFile                    /usr/local/proftpd/etc/ftpd.passwd
AuthGroupFile                   /usr/local/proftpd/etc/ftpd.group
AuthOrder                       mod_auth_file.c

AuthUserFile : 専用ユーザファイルの場所 AuthGroupFile : 専用グループファイルの場所

ユーザーの作成

ftpasswd --passwd --file=ユーザファイルの場所 --name=ユーザ名 --uid=ユーザID --gid=グループID --home=ホームディレクトリ --shell=シェル

ユーザーIDとグループIDはLinuxのユーザーに存在するものを指定。

例)

ftpasswd --passwd --file=/usr/local/proftpd/etc/ftpd.passwd --name=hoge --uid=33 --gid=33 --home=/home/hoge --shell=/bin/bash
ftpasswd: using alternate file: /usr/local/proftpd/etc/ftpd.passwd
ftpasswd: creating passwd entry for user hoge
Password: <- パスワード入力
Re-type password: <- 再度パスワード入力 
ftpasswd: entry created

http://www.marronkun.net/linux/web/proftpd_000020.html

最終更新:2011年08月05日 04:11