tech:serveur_ftp_debian_ftpd
Table des matières
Serveur FTP Debian ftpd
Voir aussi :
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
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 :
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
systemctl restart inetd
Autres
vsftpd
echo "chroot_local_user=YES" >> /etc/vsftpd/vsftpd.conf
tech/serveur_ftp_debian_ftpd.txt · Dernière modification : de 127.0.0.1
