$ systemctl start vsftpd
$ systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor prese
Active: active (running) since 木 2019-03-14 09:46:44 JST; 5s ago
Process: 16583 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited
Main PID: 16584 (vsftpd)
CGroup: /system.slice/vsftpd.service
└─16584 /usr/sbin/vsftpd
3. 設定変更
クライアントから接続しようとすると
530 This FTP server is anonymous only.
なるほど
/etc/vsftpd/vsftpd.conf
を少しいじります(わたしの扱いやすいようになので、ご注意)。
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES ← コメント化
#
# Uncomment this to allow local users to log in.
#local_enable=YES ← 有効化
#
# Uncomment this to enable any form of FTP write command.
#write_enable=YES ← 有効化
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO ← YES
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YES ← NO