0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vsftpd3.0.3の設定(Ubuntu 16.04)

Last updated at Posted at 2018-03-31

Ubuntu 16.04にvsftpdをインストールする時の設定方法

apt install vsftpd

vsftpd.chroot_listとvsftpd.user_listの作成

touch /etc/vsftpd.chroot_list
cp /etc/ftpusers /etc/vsftpd.user_list

vi /etc/vsftpd.confを編集

listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftp (→※1ここに注意)
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
seccomp_sandbox=NO
force_dot_files=YES
pasv_enable=YES
pasv_promiscuous=YES
pasv_min_port=10000
pasv_max_port=10030
tcp_wrappers=YES
userlist_enable=YES
userlist_deny=YES
allow_writeable_chroot=YES

※1
普通にapt vsftpdでインストールすると何故か
pam_service_name=vsftpd
になっているので、変更する必要がある
変更を忘れると、ログイン時に
530 Login incorrect.
のエラーでログインできない!!

pam_service_name=vsftpdのせいでドハマリしたのは内緒

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?