81 lines
3.0 KiB
Plaintext
81 lines
3.0 KiB
Plaintext
$OpenBSD: patch-vsftpd_conf,v 1.8 2009/10/23 22:50:00 sthen Exp $
|
|
--- vsftpd.conf.orig Mon Oct 19 03:04:23 2009
|
|
+++ vsftpd.conf Wed Oct 21 10:41:01 2009
|
|
@@ -8,11 +8,17 @@
|
|
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
|
|
# capabilities.
|
|
#
|
|
+# SSL
|
|
+#ssl_enable=YES
|
|
+#
|
|
+# TCP Wrappers
|
|
+#tcp_wrappers=YES
|
|
+#
|
|
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
|
|
-anonymous_enable=YES
|
|
+anonymous_enable=NO
|
|
#
|
|
# Uncomment this to allow local users to log in.
|
|
-#local_enable=YES
|
|
+local_enable=YES
|
|
#
|
|
# Uncomment this to enable any form of FTP write command.
|
|
#write_enable=YES
|
|
@@ -62,7 +68,7 @@ connect_from_port_20=YES
|
|
#
|
|
# It is recommended that you define on your system a unique user which the
|
|
# ftp server can use as a totally isolated and unprivileged user.
|
|
-#nopriv_user=ftpsecure
|
|
+nopriv_user=_vsftpd
|
|
#
|
|
# Enable this and the server will recognise asynchronous ABOR requests. Not
|
|
# recommended for security (the code is non-trivial). Not enabling it,
|
|
@@ -93,9 +99,9 @@ connect_from_port_20=YES
|
|
# directory. If chroot_local_user is YES, then this list becomes a list of
|
|
# users to NOT chroot().
|
|
#chroot_local_user=YES
|
|
-#chroot_list_enable=YES
|
|
+chroot_list_enable=YES
|
|
# (default follows)
|
|
-#chroot_list_file=/etc/vsftpd.chroot_list
|
|
+chroot_list_file=/etc/ftpchroot
|
|
#
|
|
# You may activate the "-R" option to the builtin ls. This is disabled by
|
|
# default to avoid remote users being able to cause excessive I/O on large
|
|
@@ -103,6 +109,35 @@ connect_from_port_20=YES
|
|
# the presence of the "-R" option, so there is a strong case for enabling it.
|
|
#ls_recurse_enable=YES
|
|
#
|
|
+#
|
|
+# If enabled, vsftpd will load a list of usernames from the filename
|
|
+# given by userlist_file. If a user tries to log in using a name in this
|
|
+# file, they will be denied before they are asked for a password.
|
|
+# This may be useful in preventing clear text passwords being transmitted.
|
|
+userlist_enable=YES
|
|
+#
|
|
+# This option is the name of the file loaded when the userlist_enable
|
|
+# option is active.
|
|
+userlist_file=/etc/ftpusers
|
|
+#
|
|
+# This option should be the name of a directory which is empty. Also,
|
|
+# the directory should not be writable by the ftp user. This directory
|
|
+# is used as a secure chroot() jail at times vsftpd does not require
|
|
+# filesystem access.
|
|
+secure_chroot_dir=/var/empty
|
|
+#
|
|
+# The minimum port to allocate for PASV style data connections.
|
|
+# Can be used to specify a narrow port range to assist firewalling.
|
|
+pasv_min_port=49152
|
|
+#
|
|
+# The maximum port to allocate for PASV style data connections.
|
|
+# Can be used to specify a narrow port range to assist firewalling.
|
|
+pasv_max_port=65535
|
|
+#
|
|
+# By default, numeric IDs are shown in the user and group fields of
|
|
+# directory listings. You can get textual names by enabling this parameter.
|
|
+# It is off by default for performance reasons.
|
|
+text_userdb_names=YES
|
|
# When "listen" directive is enabled, vsftpd runs in standalone mode and
|
|
# listens on IPv4 sockets. This directive cannot be used in conjunction
|
|
# with the listen_ipv6 directive.
|