Last time, I was configuring VSFTP on Debian, really I don’t know what happened but I deleted the vsftpd.conf file :'(. For this I published this quick tips, to how restore the deleted config file.
Whenever, you reinstall the package, the config file will never restored.
$ sudo apt-get install --reinstall -y vsftpd
To check, the config file was part of which package:
$ dpkg -S vsftpd.conf vsftpd: /etc/vsftpd.conf
Great, so to force the package installation, and restore the conf file, run:
$ sudo apt-get -o Dpkg::Options::="--force-confmiss" install --reinstall vsftpd ... Configuration file `/etc/vsftpd.conf', does not exist on system. Installing new config file as you requested. vsftpd user (ftp) already exists, doing nothing. ...