Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| logiciel:internet:ftp:proftpd:start [2020/09/11 10:37] – [Voir aussi] admin | logiciel:internet:ftp:proftpd:start [2022/08/13 22:14] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 43: | Ligne 43: | ||
| </ | </ | ||
| - Si vous essayez avec un client comme **Filezilla**, | - Si vous essayez avec un client comme **Filezilla**, | ||
| + | |||
| ===== Configuration ====== | ===== Configuration ====== | ||
| Ligne 52: | Ligne 53: | ||
| └── conf.d | └── conf.d | ||
| </ | </ | ||
| - | * **Pour le listing des fichiers de la distribution**, | + | * **Pour le listing des fichiers de la distribution**, |
| </ | </ | ||
| Ligne 218: | Ligne 219: | ||
| <cli prompt=' | <cli prompt=' | ||
| </ | </ | ||
| - | |||
| - | |||
| - | ==== Hôtes virtuels ==== | ||
| - | |||
| - | Créez avec les droits d' | ||
| - | <code - / | ||
| - | DefaultRoot ~ | ||
| - | |||
| - | AuthUserFile / | ||
| - | AuthGroupFile / | ||
| - | </ | ||
| - | |||
| - | Vérifiez l' | ||
| - | < | ||
| - | www-data: | ||
| - | $ getent passwd www-data | ||
| - | www-data: | ||
| - | |||
| - | ++++ Sinon, créez-le | | ||
| - | < | ||
| - | $ sudo useradd -g www-data -d /var/www -s /bin/false www-data</ | ||
| - | ++++ | ||
| - | |||
| - | On constate que l’identifiant du groupe **www-data** est **33**. | ||
| - | |||
| - | Créez l' | ||
| - | < | ||
| - | $ sudo ftpasswd --passwd --name=admiweb --uid=33 --gid=33 --home=/ | ||
| - | ftpasswd: creating passwd entry for user admiweb | ||
| - | ... | ||
| - | Password: | ||
| - | Re-type password: | ||
| - | ... | ||
| - | ftpasswd: entry created</ | ||
| - | |||
| - | Vérifiez que l' | ||
| - | < | ||
| - | Connected to localhost.localdomain. | ||
| - | 220 ProFTPD 1.3.4c Server (ProFTPD) [:: | ||
| - | Name (localhost: | ||
| - | 331 Password required for xxxxxxx | ||
| - | Password: | ||
| - | 230 User xxxxxxx logged in | ||
| - | Remote system type is UNIX. | ||
| - | Using binary mode to transfer files. | ||
| - | ftp> ls | ||
| - | 200 PORT command successful | ||
| - | 150 Opening ASCII mode data connection for file list | ||
| - | -rw-r--r-- | ||
| - | -rw-r--r-- | ||
| - | drwxr-xr-x | ||
| - | -rw-r--r-- | ||
| - | drwxr-xr-x | ||
| - | -rw-r--r-- | ||
| - | drwxr-xr-x | ||
| - | 226 Transfer complete | ||
| - | ftp> bye | ||
| - | 221 Goodbye.</ | ||
| - | |||
| - | De même pour admiweb : | ||
| - | < | ||
| - | Connected to localhost.localdomain. | ||
| - | 220 ProFTPD 1.3.4c Server (ProFTPD) [:: | ||
| - | Name (localhost: | ||
| - | 331 Password required for admiweb | ||
| - | Password: | ||
| - | 230 User admiweb logged in | ||
| - | Remote system type is UNIX. | ||
| - | Using binary mode to transfer files. | ||
| - | ftp> ls | ||
| - | 200 PORT command successful | ||
| - | 150 Opening ASCII mode data connection for file list | ||
| - | -rw-r--r-- | ||
| - | -rw-r--r-- | ||
| - | drwxr-xr-x | ||
| - | -rw-r--r-- | ||
| - | drwxr-xr-x | ||
| - | -rw-r--r-- | ||
| - | drwxr-xr-x | ||
| - | 226 Transfer complete | ||
| - | ftp> bye | ||
| - | 221 Goodbye.</ | ||
| - | |||
| - | Vous pouvez maintenant créer tous les utilisateurs nécessaires en répétant cette commande. | ||
| ==== Fichier proftpd.conf et dérivés ==== | ==== Fichier proftpd.conf et dérivés ==== | ||
| Ligne 320: | Ligne 237: | ||
| Après chaque changement de configuration, | Après chaque changement de configuration, | ||
| </ | </ | ||
| - | |||
| - | ==== Premiers réglages ==== | ||
| - | |||
| - | Créez ou éditez avec les droits d' | ||
| - | * Dé-commentez la ligne **DefaultRoot** -> Les utilisateurs seront // | ||
| - | * Vous pouvez aussi personnaliser au besoin : | ||
| - | * **ServerName**, | ||
| - | * **DisplayLogin** | ||
| - | * et **UseIPv6** | ||
| ==== Sécurisation TLS ==== | ==== Sécurisation TLS ==== | ||