Changes between Version 4 and Version 5 of FTP Batch Installation
- Timestamp:
- 09/22/10 10:46:37 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FTP Batch Installation
v4 v5 14 14 During the ProFTPd configuration, choose 'standalone' is acceptable for most installations. 15 15 16 Now create required group and user (with root privileges); [[BR]]17 {{{18 groupadd -g 200 ftpgroup19 useradd -u 200 -s /bin/false -d __HOMEDIR__ -c "proftpd user" -g ftpgroup ftpuser20 groupadd -g 60001 nas21 useradd -u 60001 -g nas nas22 }}}23 24 Replace the !__HOMEDIR!__ with the path to the directory where you want to place the FTP-users' home-direcotries and the newly created user has write-access to this directory.25 26 16 Create a new file called /etc/proftpd/mediamosa_proftpd.conf (with root) and add the following text; 27 17 28 18 {{{ 29 19 ServerName "Batchupload MediaMosa" 20 21 DebugLevel 0 30 22 31 23 DefaultRoot ~ … … 36 28 37 29 # Set the user and group that the server normally runs at. 38 User www-data39 Group nas30 User www-data 31 Group www-data 40 32 41 DebugLevel 1 42 <IfModule mod\verb!_!sql.c> 43 SQLBackend mysql 44 # userid van www-data 45 SQLMinID 33 46 SQLDefaultUID 33 47 # groupid van nas 48 SQLDefaultGID 60001 49 #SQLHomedirOnDemand on 50 SQLAuthenticate users 51 SQLAuthTypes OpenSSL 33 LoadModule mod_sql.c 34 LoadModule mod_sql_mysql.c 52 35 53 ## databasename@host database_user user_password 36 SQLBackend mysql 37 # userid van www-data 38 SQLMinID 33 39 SQLDefaultUID 33 40 SQLAuthenticate users 41 SQLAuthTypes OpenSSL 54 42 55 SQLConnectInfo mediamosa@host user password 56 SQLUserInfo mediamosa_ftp_user userid passwd uid gid homedir shell 57 SQLUserWhereClause "active=1" 43 ## databasename@host database_user user_password 58 44 59 ## create a user's home directory on demand if it doesn't exist 60 #SQLHomedirOnDemand on 61 CreateHome on 777 45 SQLConnectInfo <database>@<host> <db_username> <db_password> 46 SQLUserInfo mediamosa_ftp_user userid passwd uid gid homedir shell 47 SQLUserWhereClause "active=1" 62 48 63 SQLLog PASS updatecount64 SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" ftpuser 49 ## create a user's home directory on demand if it doesn't exist 50 CreateHome on 777 65 51 66 SQLLog STOR,DELE modified 67 SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" ftpuser 68 </IfModule> 52 SQLLog PASS updatecount 53 SQLNamedQuery updatecount UPDATE "count=count+1, accessed=now() WHERE userid='%u'" mediamosa_ftp_user 54 55 SQLLog STOR,DELE modified 56 SQLNamedQuery modified UPDATE "modified=now() WHERE userid='%u'" mediamosa_ftp_user 69 57 }}} 70 58
