Blame SOURCES/0004-Use-etc-vsftpd-dir-for-config-files-instead-of-etc.patch

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