# Example config file /etc/vsftpd/vsftpd.conf
#
# Thedefault compiled insettings 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 indefaults.
#
# READ THIS: This example fileisNOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncommentthis to allow local users to log in.
# When SELinuxis enforcing check for SE boolftp_home_dir
local_enable=YES
#
# Uncommentthisto enable any form of FTP write command.
write_enable=YES
#
# Default umaskfor 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#
# Uncommentthisto allow the anonymous FTP user to upload files. This only
# has an effectif the above global write enable isactivated. Also, you will
# obviously need to create a directory writable by the FTP user.
# When SELinuxis enforcing check for SE boolallow_ftpd_anon_write, allow_ftpd_full_access
anon_upload_enable=YES
#
# Uncommentthis ifyou want the anonymous FTP user to be able to create
#newdirectories.
anon_mkdir_write_enable=YES
#
# Activate directory messages-messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originatefrom port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrangeforuploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files isnot
# recommended!#chown_uploads=YES
#chown_username=whoever
#
# You mayoverride where the log file goes if you like. The default isshown
# below.
#xferlog_file=/var/log/xferlog
#
# If you want, you can have your log fileinstandard ftpd xferlog format.
# Note that thedefault log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change thedefault value for timing outan idle session.
#idle_session_timeout=600#
# You may change thedefault value for timing outa data connection.
#data_connection_timeout=120#
# Itisrecommended that you define on your system a unique user which the
# ftp server can useasa totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enablethisand the server will recognise asynchronous ABOR requests. Not
# recommendedfor security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# Bydefault the server will pretend to allow ASCII mode but infact ignore
# the request. Turn on the below options to have the server actuallydoASCII
# mangling on files wheninASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command"SIZE /big/file" inASCII mode. vsftpd
# predictedthisattack and has always been safe, reporting the size of the
# raw file.
# ASCII manglingisa horrible feature of the protocol.
ascii_upload_enable=YES
ascii_download_enable=YES
#
# You may fully customise the login bannerstring:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# usefulforcombatting certain DoS attacks.
#deny_email_enable=YES
# (defaultfollows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify anexplicitlist of local users to chroot() to their home
# directory. If chroot_local_useris YES, then thislist becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (defaultfollows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the"-R" option to the builtin ls. This isdisabled by
#default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients suchas "ncftp" and "mirror"assume
# the presence of the"-R" option, so there is a strong case forenabling it.
#ls_recurse_enable=YES
#
# When"listen" directive is enabled, vsftpd runs instandalone mode and
# listens on IPv4 sockets. This directive cannot be usedinconjunction
# with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. Bydefault, listening
# on the IPv6"any" address (::) will accept connections fromboth IPv6
# and IPv4 clients. Itis 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 optionsis commented !!listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES