d83721
diff -up vsftpd-2.2.0/defs.h.configuration vsftpd-2.2.0/defs.h
d83721
--- vsftpd-2.2.0/defs.h.configuration	2009-01-07 21:22:22.000000000 +0100
d83721
+++ vsftpd-2.2.0/defs.h	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -1,7 +1,7 @@
d83721
 #ifndef VSF_DEFS_H
d83721
 #define VSF_DEFS_H
d83721
 
d83721
-#define VSFTP_DEFAULT_CONFIG    "/etc/vsftpd.conf"
d83721
+#define VSFTP_DEFAULT_CONFIG    "/etc/vsftpd/vsftpd.conf"
d83721
 
d83721
 #define VSFTP_COMMAND_FD        0
d83721
 
d83721
diff -up vsftpd-2.2.0/EXAMPLE/INTERNET_SITE_NOINETD/README.configuration vsftpd-2.2.0/EXAMPLE/INTERNET_SITE_NOINETD/README
d83721
--- vsftpd-2.2.0/EXAMPLE/INTERNET_SITE_NOINETD/README.configuration	2008-02-02 02:30:40.000000000 +0100
d83721
+++ vsftpd-2.2.0/EXAMPLE/INTERNET_SITE_NOINETD/README	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -17,7 +17,7 @@ even per-connect-IP configurability.
d83721
 
d83721
 To use this example config:
d83721
 
d83721
-1) Copy the vsftpd.conf file in this directory to /etc/vsftpd.conf.
d83721
+1) Copy the vsftpd.conf file in this directory to /etc/vsftpd/vsftpd.conf.
d83721
 
d83721
 2) Start up vsftpd, e.g.
d83721
 vsftpd &
d83721
@@ -51,5 +51,5 @@ in the vsftpd.conf:
d83721
 listen_address=192.168.1.2
d83721
 
d83721
 And launch vsftpd with a specific config file like this:
d83721
-vsftpd /etc/vsftpd.conf.site1 &
d83721
+vsftpd /etc/vsftpd/vsftpd.conf.site1 &
d83721
 
d83721
diff -up vsftpd-2.2.0/EXAMPLE/INTERNET_SITE/README.configuration vsftpd-2.2.0/EXAMPLE/INTERNET_SITE/README
d83721
--- vsftpd-2.2.0/EXAMPLE/INTERNET_SITE/README.configuration	2008-02-02 02:30:40.000000000 +0100
d83721
+++ vsftpd-2.2.0/EXAMPLE/INTERNET_SITE/README	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -41,13 +41,13 @@ no_access               = 192.168.1.3
d83721
 As an example of how to ban certain sites from connecting, 192.168.1.3 will
d83721
 be denied access.
d83721
 
d83721
-banner_fail             = /etc/vsftpd.busy_banner
d83721
+banner_fail             = /etc/vsftpd/busy_banner
d83721
 
d83721
 This is the file to display to users if the connection is refused for whatever
d83721
 reason (too many users, IP banned).
d83721
 
d83721
 Example of how to populate it:
d83721
-echo "421 Server busy, please try later." > /etc/vsftpd.busy_banner
d83721
+echo "421 Server busy, please try later." > /etc/vsftpd/busy_banner
d83721
 
d83721
 log_on_success          += PID HOST DURATION
d83721
 log_on_failure          += HOST
d83721
@@ -62,7 +62,7 @@ Step 2) Set up your vsftpd configuration
d83721
 
d83721
 An example file is supplied. Install it like this:
d83721
 
d83721
-cp vsftpd.conf /etc
d83721
+cp vsftpd.conf /etc/vsftpd
d83721
 
d83721
 Let's example the contents of the file:
d83721
 
d83721
diff -up vsftpd-2.2.0/EXAMPLE/PER_IP_CONFIG/README.configuration vsftpd-2.2.0/EXAMPLE/PER_IP_CONFIG/README
d83721
--- vsftpd-2.2.0/EXAMPLE/PER_IP_CONFIG/README.configuration	2008-02-02 02:30:40.000000000 +0100
d83721
+++ vsftpd-2.2.0/EXAMPLE/PER_IP_CONFIG/README	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -20,12 +20,12 @@ directory: hosts.allow. It lives at /etc
d83721
 
d83721
 Let's have a look at the example:
d83721
 
d83721
-vsftpd: 192.168.1.3: setenv VSFTPD_LOAD_CONF /etc/vsftpd_tcp_wrap.conf
d83721
+vsftpd: 192.168.1.3: setenv VSFTPD_LOAD_CONF /etc/vsftpd/tcp_wrap.conf
d83721
 vsftpd: 192.168.1.4: DENY
d83721
 
d83721
 The first line:
d83721
 If a client connects from 192.168.1.3, then vsftpd will apply the vsftpd
d83721
-config file /etc/vsftpd_tcp_wrap.conf to the session! These settings are
d83721
+config file /etc/vsftpd/tcp_wrap.conf to the session! These settings are
d83721
 applied ON TOP of the default vsftpd.conf.
d83721
 This is obviously very powerful. You might use this to apply different
d83721
 access restrictions for some IPs (e.g. the ability to upload).
d83721
diff -up vsftpd-2.2.0/EXAMPLE/VIRTUAL_USERS/README.configuration vsftpd-2.2.0/EXAMPLE/VIRTUAL_USERS/README
d83721
--- vsftpd-2.2.0/EXAMPLE/VIRTUAL_USERS/README.configuration	2008-02-02 02:30:40.000000000 +0100
d83721
+++ vsftpd-2.2.0/EXAMPLE/VIRTUAL_USERS/README	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -15,7 +15,7 @@ See example file "logins.txt" - this spe
d83721
 "fred" with password "bar".
d83721
 Whilst logged in as root, create the actual database file like this:
d83721
 
d83721
-db_load -T -t hash -f logins.txt /etc/vsftpd_login.db
d83721
+db_load -T -t hash -f logins.txt /etc/vsftpd/login.db
d83721
 (Requires the Berkeley db program installed).
d83721
 NOTE: Many systems have multiple versions of "db" installed, so you may
d83721
 need to use e.g. db3_load for correct operation. This is known to affect
d83721
@@ -23,10 +23,10 @@ some Debian systems. The core issue is t
d83721
 database to be a specific db version (often db3, whereas db4 may be installed
d83721
 on your system).
d83721
 
d83721
-This will create /etc/vsftpd_login.db. Obviously, you may want to make sure
d83721
+This will create /etc/vsftpd/login.db. Obviously, you may want to make sure
d83721
 the permissions are restricted:
d83721
 
d83721
-chmod 600 /etc/vsftpd_login.db
d83721
+chmod 600 /etc/vsftpd/login.db
d83721
 
d83721
 For more information on maintaing your login database, look around for
d83721
 documentation on "Berkeley DB", e.g.
d83721
@@ -37,8 +37,8 @@ Step 2) Create a PAM file which uses you
d83721
 
d83721
 See the example file vsftpd.pam. It contains two lines:
d83721
 
d83721
-auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login
d83721
-account required /lib/security/pam_userdb.so db=/etc/vsftpd_login
d83721
+auth required /lib/security/pam_userdb.so db=/etc/vsftpd/login
d83721
+account required /lib/security/pam_userdb.so db=/etc/vsftpd/login
d83721
 
d83721
 This tells PAM to authenticate users using our new database. Copy this PAM
d83721
 file to the PAM directory - typically /etc/pam.d/
d83721
@@ -108,9 +108,9 @@ pasv_max_port=30999
d83721
 These put a port range on passive FTP incoming requests - very useful if
d83721
 you are configuring a firewall.
d83721
 
d83721
-Copy the example vsftpd.conf file to /etc:
d83721
+Copy the example vsftpd.conf file to /etc/vsftpd:
d83721
 
d83721
-cp vsftpd.conf /etc/
d83721
+cp vsftpd.conf /etc/vsftpd/
d83721
 
d83721
 
d83721
 Step 5) Start up vsftpd.
d83721
diff -up vsftpd-2.2.0/FAQ.configuration vsftpd-2.2.0/FAQ
d83721
--- vsftpd-2.2.0/FAQ.configuration	2009-02-18 23:33:04.000000000 +0100
d83721
+++ vsftpd-2.2.0/FAQ	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -34,7 +34,7 @@ needs this user to run bits of itself wi
d83721
 Q) Help! Local users cannot log in.
d83721
 A) There are various possible problems.
d83721
 A1) By default, vsftpd disables any logins other than anonymous logins. Put
d83721
-local_enable=YES in your /etc/vsftpd.conf to allow local users to log in.
d83721
+local_enable=YES in your /etc/vsftpd/vsftpd.conf to allow local users to log in.
d83721
 A2) vsftpd tries to link with PAM. (Run "ldd vsftpd" and look for libpam to
d83721
 find out whether this has happened or not). If vsftpd links with PAM, then
d83721
 you will need to have a PAM file installed for the vsftpd service. There is
d83721
@@ -46,12 +46,12 @@ system have a "shadow.h" file in the inc
d83721
 A4) If you are not using PAM, then vsftpd will do its own check for a valid
d83721
 user shell in /etc/shells. You may need to disable this if you use an invalid
d83721
 shell to disable logins other than FTP logins. Put check_shell=NO in your
d83721
-/etc/vsftpd.conf.
d83721
+/etc/vsftpd/vsftpd.conf.
d83721
 
d83721
 Q) Help! Uploads or other write commands give me "500 Unknown command.".
d83721
 A) By default, write commands, including uploads and new directories, are
d83721
 disabled. This is a security measure. To enable writes, put write_enable=YES
d83721
-in your /etc/vsftpd.conf.
d83721
+in your /etc/vsftpd/vsftpd.conf.
d83721
 
d83721
 Q) Help! What are the security implications referred to in the
d83721
 "chroot_local_user" option?
d83721
@@ -87,7 +87,7 @@ A2) Alternatively, run as many copies as
d83721
 mode. Use "listen_address=x.x.x.x" to set the virtual IP.
d83721
 
d83721
 Q) Help! Does vsftpd support virtual users?
d83721
-A) Yes, via PAM integration. Set "guest_enable=YES" in /etc/vsftpd.conf. This
d83721
+A) Yes, via PAM integration. Set "guest_enable=YES" in /etc/vsftpd/vsftpd.conf. This
d83721
 has the effect of mapping every non-anonymous successful login to the local
d83721
 username specified in "guest_username". Then, use PAM and (e.g.) its pam_userdb
d83721
 module to provide authentication against an external (i.e. non-/etc/passwd)
d83721
diff -up vsftpd-2.2.0/INSTALL.configuration vsftpd-2.2.0/INSTALL
d83721
--- vsftpd-2.2.0/INSTALL.configuration	2008-02-02 02:30:39.000000000 +0100
d83721
+++ vsftpd-2.2.0/INSTALL	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -56,14 +56,14 @@ cp vsftpd.8 /usr/local/man/man8
d83721
 
d83721
 "make install" doesn't copy the sample config file. It is recommended you
d83721
 do this:
d83721
-cp vsftpd.conf /etc
d83721
+cp vsftpd.conf /etc/vsftpd
d83721
 
d83721
 Step 4) Smoke test (without an inetd).
d83721
 
d83721
 vsftpd can run standalone or via an inetd (such as inetd or xinetd). You will
d83721
 typically get more control running vsftpd from an inetd. But first we will run
d83721
 it without, so we can check things are going well so far.
d83721
-Edit /etc/vsftpd.conf, and add this line at the bottom:
d83721
+Edit /etc/vsftpd/vsftpd.conf, and add this line at the bottom:
d83721
 
d83721
 listen=YES
d83721
 
d83721
@@ -135,11 +135,11 @@ cp RedHat/vsftpd.pam /etc/pam.d/ftp
d83721
 Step 7) Customize your configuration
d83721
 
d83721
 As well as the above three pre-requisites, you are recommended to install a
d83721
-config file. The default location for the config file is /etc/vsftpd.conf.
d83721
+config file. The default location for the config file is /etc/vsftpd/vsftpd.conf.
d83721
 There is a sample vsftpd.conf in the distribution tarball. You probably want
d83721
-to copy that to /etc/vsftpd.conf as a basis for modification, i.e.:
d83721
+to copy that to /etc/vsftpd/vsftpd.conf as a basis for modification, i.e.:
d83721
 
d83721
-cp vsftpd.conf /etc
d83721
+cp vsftpd.conf /etc/vsftpd
d83721
 
d83721
 The default configuration allows neither local user logins nor anonymous
d83721
 uploads. You may wish to change these defaults.
d83721
diff -up vsftpd-2.2.0/README.configuration vsftpd-2.2.0/README
d83721
--- vsftpd-2.2.0/README.configuration	2009-07-07 22:23:22.000000000 +0200
d83721
+++ vsftpd-2.2.0/README	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -37,3 +37,8 @@ All configuration options are documented
d83721
 Various example configurations are discussed in the EXAMPLE directory.
d83721
 Frequently asked questions are tackled in the FAQ file.
d83721
 
d83721
+Important Note
d83721
+==============
d83721
+The location of configuration files was changed to /etc/vsftpd/. If you want
d83721
+to migrate your old conf files from /etc (files vsftpd.xxxx.rpmsave) use
d83721
+/etc/vsfptd/vsftpd_conf_migrate.sh
d83721
diff -up vsftpd-2.2.0/tunables.c.configuration vsftpd-2.2.0/tunables.c
d83721
--- vsftpd-2.2.0/tunables.c.configuration	2009-07-15 22:08:27.000000000 +0200
d83721
+++ vsftpd-2.2.0/tunables.c	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -186,7 +186,7 @@ tunables_load_defaults()
d83721
   tunable_listen_ipv6 = 0;
d83721
   tunable_dual_log_enable = 0;
d83721
   tunable_syslog_enable = 0;
d83721
-  tunable_background = 0;
d83721
+  tunable_background = 1;
d83721
   tunable_virtual_use_local_privs = 0;
d83721
   tunable_session_support = 0;
d83721
   tunable_download_enable = 1;
d83721
@@ -254,11 +254,11 @@ tunables_load_defaults()
d83721
   install_str_setting(".message", &tunable_message_file);
d83721
   install_str_setting("nobody", &tunable_nopriv_user);
d83721
   install_str_setting(0, &tunable_ftpd_banner);
d83721
-  install_str_setting("/etc/vsftpd.banned_emails", &tunable_banned_email_file);
d83721
-  install_str_setting("/etc/vsftpd.chroot_list", &tunable_chroot_list_file);
d83721
+  install_str_setting("/etc/vsftpd/banned_emails", &tunable_banned_email_file);
d83721
+  install_str_setting("/etc/vsftpd/chroot_list", &tunable_chroot_list_file);
d83721
   install_str_setting("ftp", &tunable_pam_service_name);
d83721
   install_str_setting("ftp", &tunable_guest_username);
d83721
-  install_str_setting("/etc/vsftpd.user_list", &tunable_userlist_file);
d83721
+  install_str_setting("/etc/vsftpd/user_list", &tunable_userlist_file);
d83721
   install_str_setting(0, &tunable_anon_root);
d83721
   install_str_setting(0, &tunable_local_root);
d83721
   install_str_setting(0, &tunable_banner_file);
d83721
@@ -271,7 +271,7 @@ tunables_load_defaults()
d83721
   install_str_setting(0, &tunable_hide_file);
d83721
   install_str_setting(0, &tunable_deny_file);
d83721
   install_str_setting(0, &tunable_user_sub_token);
d83721
-  install_str_setting("/etc/vsftpd.email_passwords",
d83721
+  install_str_setting("/etc/vsftpd/email_passwords",
d83721
                       &tunable_email_password_file);
d83721
   install_str_setting("/usr/share/ssl/certs/vsftpd.pem",
d83721
                       &tunable_rsa_cert_file);
d83721
diff -up vsftpd-2.2.0/vsftpd.8.configuration vsftpd-2.2.0/vsftpd.8
d83721
--- vsftpd-2.2.0/vsftpd.8.configuration	2009-07-17 22:56:23.000000000 +0200
d83721
+++ vsftpd-2.2.0/vsftpd.8	2009-08-04 07:40:27.000000000 +0200
d83721
@@ -21,7 +21,7 @@ itself will listen on the network. This 
d83721
 recommended. It is activated by setting
d83721
 .Pa listen=YES
d83721
 in
d83721
-.Pa /etc/vsftpd.conf .
d83721
+.Pa /etc/vsftpd/vsftpd.conf .
d83721
 Direct execution of the
d83721
 .Nm vsftpd
d83721
 binary will then launch the FTP service ready for immediate client connections.
d83721
@@ -33,7 +33,7 @@ as root. Any command line option not sta
d83721
 as a config file that will be loaded. Note that config files are loaded in the
d83721
 strict order that they are encountered on the command line.
d83721
 If no config files are specified, the default configuration file of
d83721
-.Pa /etc/vsftpd.conf
d83721
+.Pa /etc/vsftpd/vsftpd.conf
d83721
 will be loaded, after all other command line options are processed.
d83721
 .Pp
d83721
 Supported options are:
d83721
@@ -47,14 +47,14 @@ their appearance on the command line, in
d83721
 config files.
d83721
 .El
d83721
 .Sh EXAMPLES
d83721
-vsftpd -olisten=NO /etc/vsftpd.conf -oftpd_banner=blah
d83721
+vsftpd -olisten=NO /etc/vsftpd/vsftpd.conf -oftpd_banner=blah
d83721
 .Pp
d83721
 That example overrides vsftpd's built-in default for the "listen" option to be
d83721
-NO, but then loads /etc/vsftpd.conf which may override that setting. Finally,
d83721
+NO, but then loads /etc/vsftpd/vsftpd.conf which may override that setting. Finally,
d83721
 the "ftpd_banner" setting is set to "blah", which overrides any default vsftpd
d83721
 setting and any identical setting that was in the config file.
d83721
 .Sh FILES
d83721
-.Pa /etc/vsftpd.conf
d83721
+.Pa /etc/vsftpd/vsftpd.conf
d83721
 .Sh SEE ALSO
d83721
 .Xr vsftpd.conf 5
d83721
 .end
d83721
diff -up vsftpd-2.2.0/vsftpd.conf.5.configuration vsftpd-2.2.0/vsftpd.conf.5
d83721
--- vsftpd-2.2.0/vsftpd.conf.5.configuration	2009-07-17 22:57:04.000000000 +0200
d83721
+++ vsftpd-2.2.0/vsftpd.conf.5	2009-08-04 07:37:01.000000000 +0200
d83721
@@ -4,7 +4,7 @@ vsftpd.conf \- config file for vsftpd
d83721
 .SH DESCRIPTION
d83721
 vsftpd.conf may be used to control various aspects of vsftpd's behaviour. By
d83721
 default, vsftpd looks for this file at the location
d83721
-.BR /etc/vsftpd.conf .
d83721
+.BR /etc/vsftpd/vsftpd.conf .
d83721
 However, you may override this by specifying a command line argument to
d83721
 vsftpd. The command line argument is the pathname of the configuration file
d83721
 for vsftpd. This behaviour is useful because you may wish to use an advanced
d83721
@@ -110,7 +110,7 @@ When enabled, and vsftpd is started in "
d83721
 the listener process. i.e. control will immediately be returned to the shell
d83721
 which launched vsftpd.
d83721
 
d83721
-Default: NO
d83721
+Default: YES
d83721
 .TP
d83721
 .B check_shell
d83721
 Note! This option only has an effect for non-PAM builds of vsftpd. If disabled,
d83721
@@ -138,7 +138,7 @@ chroot() jail in their home directory up
d83721
 different if chroot_local_user is set to YES. In this case, the list becomes
d83721
 a list of users which are NOT to be placed in a chroot() jail.
d83721
 By default, the file containing this list is
d83721
-/etc/vsftpd.chroot_list, but you may override this with the
d83721
+/etc/vsftpd/chroot_list, but you may override this with the
d83721
 .BR chroot_list_file
d83721
 setting.
d83721
 
d83721
@@ -177,7 +177,7 @@ Default: NO
d83721
 .B deny_email_enable
d83721
 If activated, you may provide a list of anonymous password e-mail responses
d83721
 which cause login to be denied. By default, the file containing this list is
d83721
-/etc/vsftpd.banned_emails, but you may override this with the
d83721
+/etc/vsftpd/banned_emails, but you may override this with the
d83721
 .BR banned_email_file
d83721
 setting.
d83721
 
d83721
@@ -433,7 +433,7 @@ anonymous logins are prevented unless th
d83721
 file specified by the
d83721
 .BR email_password_file
d83721
 setting. The file format is one password per line, no extra whitespace. The
d83721
-default filename is /etc/vsftpd.email_passwords.
d83721
+default filename is /etc/vsftpd/email_passwords.
d83721
 
d83721
 Default: NO
d83721
 .TP
d83721
@@ -764,7 +764,7 @@ passwords which are not permitted. This 
d83721
 .BR deny_email_enable
d83721
 is enabled.
d83721
 
d83721
-Default: /etc/vsftpd.banned_emails
d83721
+Default: /etc/vsftpd/banned_emails
d83721
 .TP
d83721
 .B banner_file
d83721
 This option is the name of a file containing text to display when someone
d83721
@@ -801,7 +801,7 @@ is enabled. If the option
d83721
 is enabled, then the list file becomes a list of users to NOT place in a
d83721
 chroot() jail.
d83721
 
d83721
-Default: /etc/vsftpd.chroot_list
d83721
+Default: /etvsftpd.confc/vsftpd.chroot_list
d83721
 .TP
d83721
 .B cmds_allowed
d83721
 This options specifies a comma separated list of allowed FTP commands (post
d83721
@@ -862,7 +862,7 @@ This option can be used to provide an al
d83721
 .BR secure_email_list_enable
d83721
 setting.
d83721
 
d83721
-Default: /etc/vsftpd.email_passwords
d83721
+Default: /etc/vsftpd/email_passwords
d83721
 .TP
d83721
 .B ftp_username
d83721
 This is the name of the user we use for handling anonymous FTP. The home
d83721
@@ -985,10 +985,10 @@ the manual page, on a per-user basis. Us
d83721
 with an example. If you set
d83721
 .BR user_config_dir
d83721
 to be
d83721
-.BR /etc/vsftpd_user_conf
d83721
+.BR /etc/vsftpd/user_conf
d83721
 and then log on as the user "chris", then vsftpd will apply the settings in
d83721
 the file
d83721
-.BR /etc/vsftpd_user_conf/chris
d83721
+.BR /etc/vsftpd/user_conf/chris
d83721
 for the duration of the session. The format of this file is as detailed in
d83721
 this manual page! PLEASE NOTE that not all settings are effective on a
d83721
 per-user basis. For example, many settings only prior to the user's session
d83721
@@ -1024,7 +1024,7 @@ This option is the name of the file load
d83721
 .BR userlist_enable
d83721
 option is active.
d83721
 
d83721
-Default: /etc/vsftpd.user_list
d83721
+Default: /etc/vsftpd/user_list
d83721
 .TP
d83721
 .B vsftpd_log_file
d83721
 This option is the name of the file to which we write the vsftpd style
d83721
--- vsftpd-2.2.2/vsftpd.conf.configuration	2009-10-19 04:04:23.000000000 +0200
d83721
+++ vsftpd-2.2.2/vsftpd.conf	2010-08-06 09:28:44.891173995 +0200
d83721
@@ -1,4 +1,4 @@
d83721
-# Example config file /etc/vsftpd.conf
d83721
+# Example config file /etc/vsftpd/vsftpd.conf
d83721
 #
d83721
 # The default compiled in settings are fairly paranoid. This sample file
d83721
 # loosens things up a bit, to make the ftp daemon more usable.
d83721
@@ -12,18 +12,20 @@
d83721
 anonymous_enable=YES
d83721
 #
d83721
 # Uncomment this to allow local users to log in.
d83721
-#local_enable=YES
d83721
+# When SELinux is enforcing check for SE bool ftp_home_dir
d83721
+local_enable=YES
d83721
 #
d83721
 # Uncomment this to enable any form of FTP write command.
d83721
-#write_enable=YES
d83721
+write_enable=YES
d83721
 #
d83721
 # Default umask for local users is 077. You may wish to change this to 022,
d83721
 # if your users expect that (022 is used by most other ftpd's)
d83721
-#local_umask=022
d83721
+local_umask=022
d83721
 #
d83721
 # Uncomment this to allow the anonymous FTP user to upload files. This only
d83721
 # has an effect if the above global write enable is activated. Also, you will
d83721
 # obviously need to create a directory writable by the FTP user.
d83721
+# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access
d83721
 #anon_upload_enable=YES
d83721
 #
d83721
 # Uncomment this if you want the anonymous FTP user to be able to create
d83721
@@ -52,7 +54,7 @@
d83721
 #
d83721
 # If you want, you can have your log file in standard ftpd xferlog format.
d83721
 # Note that the default log file location is /var/log/xferlog in this case.
d83721
-#xferlog_std_format=YES
d83721
+xferlog_std_format=YES
d83721
 #
d83721
 # You may change the default value for timing out an idle session.
d83721
 #idle_session_timeout=600
d83721
@@ -87,7 +89,7 @@
d83721
 # useful for combatting certain DoS attacks.
d83721
 #deny_email_enable=YES
d83721
 # (default follows)
d83721
-#banned_email_file=/etc/vsftpd.banned_emails
d83721
+#banned_email_file=/etc/vsftpd/banned_emails
d83721
 #
d83721
 # You may specify an explicit list of local users to chroot() to their home
d83721
 # directory. If chroot_local_user is YES, then this list becomes a list of
d83721
@@ -95,7 +97,7 @@
d83721
 #chroot_local_user=YES
d83721
 #chroot_list_enable=YES
d83721
 # (default follows)
d83721
-#chroot_list_file=/etc/vsftpd.chroot_list
d83721
+#chroot_list_file=/etc/vsftpd/chroot_list
d83721
 #
d83721
 # You may activate the "-R" option to the builtin ls. This is disabled by
d83721
 # default to avoid remote users being able to cause excessive I/O on large
d83721
@@ -112,3 +114,7 @@
d83721
 # sockets, you must run two copies of vsftpd with two configuration files.
d83721
 # Make sure, that one of the listen options is commented !!
d83721
 #listen_ipv6=YES
d83721
+
d83721
+pam_service_name=vsftpd
d83721
+userlist_enable=YES
d83721
+tcp_wrappers=YES