{{tag>Debian Réseau FTP}} # Serveur FTP Debian ftpd Voir aussi : * [[Notes FTP ProFTPd]] File Transfer Protocol (FTP) server \ This is the netkit ftp server. You are recommended to use one of its alternatives, such as vsftpd, proftpd, or pure-ftpd. Install, config et chroot ~~~bash apt-get install ftpd ~~~ `/etc/passwd` ~~~ john:x:1002:1003:FTP access,,,:/ftp:/bin/false ~~~ `/etc/ftpchroot` ~~~ # /etc/ftpchroot: list of users who needs to be chrooted. See ftpchroot(5). john ~~~ `/etc/ftpusers` ~~~ # /etc/ftpusers: list of users disallowed ftp access. See ftpusers(5). root ftp anonymous ~~~ Comme c'est chrooté, la commande **ls** ne fonctionne pas Pour la faire fonctionner : ~~~bash ldd /bin/ls mkdir /ftp/bin mkdir /ftp/lib cp -p /bin/ls /ftp/bin/ cp -a /lib/x86_64-linux-gnu/ /ftp/lib/ ~~~ Pour changer le numéro de port `/etc/services` ~~~ #ftp 21/tcp ftp 2121/tcp ~~~ ~~~bash systemctl restart inetd ~~~ ## Autres ### vsftpd ~~~bash echo "chroot_local_user=YES" >> /etc/vsftpd/vsftpd.conf ~~~