[Debian] Restore The Deleted Config Files

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.

Enjoy !

Tagged: , , ,

Leave a Reply :

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: