Changes between Version 4 and Version 5 of FTP Batch Installation

Show
Ignore:
Timestamp:
09/22/10 10:46:37 (3 years ago)
Author:
MC-arjen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FTP Batch Installation

    v4 v5  
    1414During the ProFTPd configuration, choose 'standalone' is acceptable for most installations. 
    1515 
    16 Now create required group and user (with root privileges); [[BR]] 
    17 {{{ 
    18 groupadd -g 200 ftpgroup 
    19 useradd -u 200 -s /bin/false -d __HOMEDIR__ -c "proftpd user" -g ftpgroup ftpuser 
    20 groupadd -g 60001 nas 
    21 useradd -u 60001 -g nas nas 
    22 }}} 
    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  
    2616Create a new file called /etc/proftpd/mediamosa_proftpd.conf (with root) and add the following text; 
    2717 
    2818{{{ 
    2919ServerName                      "Batchupload MediaMosa" 
     20 
     21DebugLevel 0 
    3022 
    3123DefaultRoot                     ~ 
     
    3628 
    3729# Set the user and group that the server normally runs at. 
    38 User                            www-data 
    39 Group                           nas 
     30User    www-data 
     31Group   www-data 
    4032 
    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 
     33LoadModule mod_sql.c 
     34LoadModule mod_sql_mysql.c 
    5235 
    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 
    5442 
    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 
    5844 
    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" 
    6248 
    63 SQLLog             PASS updatecount 
    64 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 
    6551 
    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 
    6957}}} 
    7058