Blame SOURCES/vsftpd-2.1.0-configuration.patch

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