FTP » Historique » Version 7
Patrice Nadeau, 2014-08-23 17:43
| 1 | 1 | Patrice Nadeau | %{font-size:18pt}FTP% |
|---|---|---|---|
| 2 | |||
| 3 | ---- |
||
| 4 | |||
| 5 | {{toc}} |
||
| 6 | |||
| 7 | Serveur de fichier FTP(File Transfer Protocol) |
||
| 8 | |||
| 9 | 3 | Patrice Nadeau | Le logiciel _Pure-FTPd_ est celui choisi. |
| 10 | 1 | Patrice Nadeau | |
| 11 | 4 | Patrice Nadeau | Pure-FTPd place ses fichiers dans : |
| 12 | * _/srv/ftp/_ : « root » de la structure FTP |
||
| 13 | * _/etc/pure-ftpd/pure-ftpd.conf_ : fichier de configuration |
||
| 14 | * _/etc/pure-ftpd/vhosts/_ : répertoire contenant les configuration des serveurs virtuels |
||
| 15 | 2 | Patrice Nadeau | |
| 16 | 1 | Patrice Nadeau | h1. Installation |
| 17 | |||
| 18 | En tant que _root_ : |
||
| 19 | <pre><code class="bash"> |
||
| 20 | # Installation |
||
| 21 | zypper install pure-ftpd |
||
| 22 | # Active le démarrage automatique |
||
| 23 | systemctl enable pure-ftpd |
||
| 24 | # Démarrage |
||
| 25 | systemctl start pure-ftpd |
||
| 26 | # Ouvrir le pare-feu |
||
| 27 | yast firewall services add service=service:pure-ftpd zone=EXT |
||
| 28 | </code></pre> |
||
| 29 | |||
| 30 | 4 | Patrice Nadeau | h1. Configuration |
| 31 | 1 | Patrice Nadeau | |
| 32 | 6 | Patrice Nadeau | Par défaut : |
| 33 | 1 | Patrice Nadeau | * 10 utilisateurs peuvent être branchés en même temps |
| 34 | 2 | Patrice Nadeau | * l'usager _anonymous_ peut lire le contenu du dossier |
| 35 | 5 | Patrice Nadeau | * seulement l'usager _anonymous_ peut se brancher |
| 36 | |||
| 37 | 7 | Patrice Nadeau | h2. Création d'un répertoire dans lequel _anonymous_ peut placer des fichiers : |
| 38 | |||
| 39 | 5 | Patrice Nadeau | <pre><code class="bash"> |
| 40 | mkdir /srv/ftp/incoming |
||
| 41 | chown ftp:ftp /srv/ftp/incoming |
||
| 42 | </code></pre> |
||
| 43 | |||
| 44 | Modifier le fichier _/etc/pure-ftpd/pure0-ftpd.conf_ : |
||
| 45 | <pre><code class="bash"> |
||
| 46 | AnonymousCantUpload no |
||
| 47 | </code></pre> |
||
| 48 | |||
| 49 | Relire la nouvelle configuration |
||
| 50 | <pre><code class="bash"> |
||
| 51 | systemctl force-reload pure-ftpd |
||
| 52 | </code></pre> |