| 7月 30th, 2009

vsftpd で、指定したユーザが指定したディレクトリにFTPでつなぐ時の設定。

userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/user_list
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
user_config_dir=/etc/vsftpd/user_conf

userlist_file=/etc/vsftpd/user_list

アクセス可能にするユーザを書き込みます。

ftp_user
www

chroot_list_file=/etc/vsftpd/chroot_list

空のファイルを置いておけばいいです。

user_config_dir=/etc/vsftpd/user_conf

それぞれのユーザの設定を書き込みます。

例えば
”/etc/vsftpd/user_conf/www”

local_root=/srv/www

”/etc/vsftpd/user_conf/ftp_user”

local_root=/srv/ftp_root

等のように個別に指定できます。

There are no comments yet, add one below.

Comments are closed.

Leave a Comment


download the hurt locker  
UA-682965-1