summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Romig-Koch <gavin@localhost.localdomain>2009-08-18 10:14:54 -0400
committerGavin Romig-Koch <gavin@localhost.localdomain>2009-08-18 10:14:54 -0400
commit08fdfa8c2b7511a0886fc04787e07cf608abbc98 (patch)
treed45ca38131ec1bfed084529dbce9828ebc1a00f1
parentf62ad741e6a64bd51325ace2043f75ec9ad6571a (diff)
downloadfastback-08fdfa8c2b7511a0886fc04787e07cf608abbc98.tar.gz
fastback-08fdfa8c2b7511a0886fc04787e07cf608abbc98.tar.xz
fastback-08fdfa8c2b7511a0886fc04787e07cf608abbc98.zip
add vsftpd configuration to setup-fastback-server
-rwxr-xr-xsetup-fastback-server35
1 files changed, 35 insertions, 0 deletions
diff --git a/setup-fastback-server b/setup-fastback-server
index 7cc7dac..7a88ff7 100755
--- a/setup-fastback-server
+++ b/setup-fastback-server
@@ -3,3 +3,38 @@
yum install -y vsftpd
mkdir -p /var/ftp/incoming
+chown ftp:ftp /var/ftp/incoming
+patch -p0 <<\EOF
+--- /etc/vsftpd/vsftpd.conf 2009-06-02 05:25:07.000000000 -0400
++++ vsftpd.conf 2009-08-18 09:06:36.000000000 -0400
+@@ -15,7 +15,7 @@
+ #local_enable=YES
+ #
+ # Uncomment this to enable any form of FTP write command.
+-#write_enable=YES
++write_enable=YES
+ #
+ # Default umask for 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)
+@@ -24,7 +24,7 @@
+ # Uncomment this to allow the anonymous FTP user to upload files. This only
+ # has an effect if the above global write enable is activated. Also, you will
+ # obviously need to create a directory writable by the FTP user.
+-#anon_upload_enable=YES
++anon_upload_enable=YES
+ #
+ # Uncomment this if you want the anonymous FTP user to be able to create
+ # new directories.
+@@ -115,3 +115,9 @@
+ pam_service_name=vsftpd
+ userlist_enable=YES
+ tcp_wrappers=YES
++
++#
++# taken from DropboxDocument
++dirlist_enable=NO
++download_enable=NO
++dirmessage_enable=YES
+EOF
+
+service vsftpd restart