apt-get install vsftpd
emacs /etc/vsftpd.conf
local_enable=YES
local_umask=022
chroot_local_user=YES
allow_writeable_chroot=YES
write_enable=YES
force_dot_files=YES
bloquer ssh et activer ftp d'un user :
d'abord on crée un shell spécifique :
emacs /etc/ftponly
#!/bin/sh
echo "Welcome to my FTP Webserver. Please note that all activity is tracked for security purposes!"
exit
chmod a+x /etc/ftponly
mettre ce shell sur le user a verouiller :
emacs /etc/passwd
echo "/etc/ftponly" > /etc/shells
service vsftpd restart