diff --git a/README-FTP-USE b/README-FTP-USE new file mode 100644 index 0000000..18c975e --- /dev/null +++ b/README-FTP-USE @@ -0,0 +1,23 @@ +Définition des dossiers +======================= +send : Client => SD +recv : SD => Client + +Création d'un utilisateur +========================= +pure-pw useradd [user] -u ftpuser -j -d [dir] + +Modifier le mot de passe +======================== +pure-pw passwd [user] + +Modifier un utilisateur +======================= +pure-pw usermod [user] -d [newdir] + +Supprimer un utilisateur +======================== +pure-pw userdel [user] + + +Note : Après chaque modification : pure-pw mkdb \ No newline at end of file diff --git a/README-SFTP-USE b/README-SFTP-USE new file mode 100644 index 0000000..1f60933 --- /dev/null +++ b/README-SFTP-USE @@ -0,0 +1,17 @@ +Définition des dossiers +======================= +send : Client => SD +recv : SD => Client + +Création d'un utilisateur +========================= + +useradd -s /bin/false -g sftp -d /home/data/sftp/username username +passwd username + +Création du HOME +================ +mkdir -p /home/data/sftp/username/{recv,send} +chown username:sftp -R /home/data/sftp/username +chmod -Rv 755 /home/data/sftp/username/ +chown root:root /home/data/sftp/username \ No newline at end of file diff --git a/application/configs/README b/application/configs/README new file mode 100644 index 0000000..e69de29 diff --git a/config.php b/config.php index a082fb4..930adbc 100644 --- a/config.php +++ b/config.php @@ -125,4 +125,40 @@ return array( ), ), ), + 'fboissons' => array( + 'prestations' => array( + array( + 'name' => 'SCOREETDECISION', + 'type' => 'FTP', + 'in' => array( + 'Route' => array( 'cp' => '/home/data/clients-ftp/fboissons/send' ), + 'CopyDeleteAfter' => true, + ), + 'out' => array(), + ), + ), + ), + 'effico' => array( + 'prestations' => array( + array( + 'name' => 'DIFBODPRDSFTPEFFICO', + 'type' => 'SFTP', + 'in' => array(), + 'out' => array(), + ), + ), + ), + 'sofid' => array( + 'prestations' => array( + array( + 'name' => 'SURBODPRDFTSSOFID', + 'type' => 'FTP', + 'in' => array( + 'Route' => array( 'cp' => '/home/data/clients-ftp/sofid/send' ), + 'CopyDeleteAfter' => true, + ), + 'out' => array(), + ), + ), + ), );