From 08fdfa8c2b7511a0886fc04787e07cf608abbc98 Mon Sep 17 00:00:00 2001 From: Gavin Romig-Koch Date: Tue, 18 Aug 2009 10:14:54 -0400 Subject: add vsftpd configuration to setup-fastback-server --- setup-fastback-server | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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 -- cgit