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