summaryrefslogtreecommitdiffstats
path: root/setup-fastback-server
blob: 7a88ff7bc7ffa0f55500b2a2dc1f9cbf51a03490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# run this as root on the machine you want to setup as your 
#   test anonymous server

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