|
|
# Example config file /etc/vsftpd.conf (alpine) /etc/vsftpd/vsftpd.conf
|
|
|
#
|
|
|
# The default compiled in settings are fairly paranoid. This sample file
|
|
|
# loosens things up a bit, to make the ftp daemon more usable.
|
|
|
# Please see vsftpd.conf.5 for all compiled in defaults.
|
|
|
#
|
|
|
# Run standalone? vsftpd can run either from an inetd or as a standalone
|
|
|
# daemon started from an initscript.
|
|
|
listen=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.
|
|
|
#listen_ipv6=NO
|
|
|
#
|
|
|
# Allow anonymous FTP? (Disabled by default).
|
|
|
anonymous_enable=NO
|
|
|
#
|
|
|
# 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
|
|
|
#
|
|
|
# Default umask for local users is 077. You may wish to change this to 022,
|
|
|
# if your users expect that (022 is used by most other ftpd's)
|
|
|
local_umask=022
|
|
|
#
|
|
|
# Activate directory messages - messages given to remote users when they
|
|
|
# go into a certain directory.
|
|
|
dirmessage_enable=YES
|
|
|
#
|
|
|
# If enabled, vsftpd will display directory listings with the time
|
|
|
# in your local time zone. The default is to display GMT. The
|
|
|
# times returned by the MDTM FTP command are also affected by this
|
|
|
# option.
|
|
|
use_localtime=YES
|
|
|
#
|
|
|
# Activate logging of uploads/downloads.
|
|
|
xferlog_enable=YES
|
|
|
#
|
|
|
# Make sure PORT transfer connections originate from port 20 (ftp-data).
|
|
|
connect_from_port_20=YES
|
|
|
#
|
|
|
# You may change the default value for timing out an idle session.
|
|
|
#idle_session_timeout=600
|
|
|
#
|
|
|
# You may change the default value for timing out a data connection.
|
|
|
#data_connection_timeout=120
|
|
|
#
|
|
|
# You may restrict local users to their home directories. See the FAQ for
|
|
|
# the possible risks in this before using chroot_local_user or
|
|
|
# chroot_list_enable below.
|
|
|
chroot_local_user=NO
|
|
|
#
|
|
|
# This string is the name of the PAM service vsftpd will use.
|
|
|
pam_service_name=vsftpd
|
|
|
#
|
|
|
# This option specifies the location of the RSA certificate to use for SSL
|
|
|
# encrypted connections.
|
|
|
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
|
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
|
|
|
ssl_enable=NO
|