14

I have a 11.04 x86 server.

I ran sudo apt-get install vsftpd and that was successful. But I cannot find the vsftpd.conf file anywhere. I thought it was supposed to be in /etc/vsftpd.conf.

Binarylife
  • 16,322
  • 10
  • 56
  • 65
Nik
  • 241
  • 1
  • 2
  • 5
  • 1
    try this command `locate vsftpd.conf` – Nitin Venkatesh Jun 06 '11 at 13:31
  • 1
    It's [supposed to be there](http://packages.ubuntu.com/natty/i386/vsftpd/filelist). What is the output of [`debsums -a vsftpd`](http://manpages.ubuntu.com/manpages/natty/en/man1/debsums.1.html)? – ændrük Jun 06 '11 at 13:32
  • 1
    That finds me `/etc/init/vsftpd.conf`, which is the startup script for vsftpd. Should I just find the default conf file and put it in there myself? – Nik Jun 06 '11 at 13:33
  • 1
    `debsums` says: debsums: missing file /etc/vsftpd.conf (from vsftpd package) – Nik Jun 06 '11 at 13:34
  • If htorque can add an answer, I can accept it. The copy of the configuration file fixed my problem. – Nik Jun 06 '11 at 14:03
  • 1
    @Nik: it's not a clean solution and would only work if someone posted the configuration file. Could you remove (or rename) the configuration file (after stopping vsftpd) and try my solution? That is the way the system is supposed to work. – Lekensteyn Jun 06 '11 at 16:08

8 Answers8

21

You've a weird issue, try clearing you cache, update your repository information and install it again:

sudo apt-get clean
sudo apt-get update
sudo apt-get install --reinstall vsftpd

If this did not work, purge vsftpd (remove it including its configuration files) and reinstall it:

sudo apt-get purge vsftpd
sudo apt-get install vsftpd
ændrük
  • 75,636
  • 74
  • 233
  • 365
Lekensteyn
  • 171,743
  • 65
  • 311
  • 401
5

It sounds like the installation didn't complete successfully. The quickest solution is probably going to be to reinstall vsftpd:

sudo apt-get install --reinstall vsftpd
Lekensteyn
  • 171,743
  • 65
  • 311
  • 401
ændrük
  • 75,636
  • 74
  • 233
  • 365
2

Late to the party bu hope what I discovered is useful.

The file is not there after install. However

/etc/vstftd.conf

will be created after starting up the server.
It's installed with

sudo apt-get install vsftpd

and started with

sudo systemctl start vsftpd.service

This should do the job.

0

If you cannot find the vsftpd.conf under /etc/vstftd.conf, then you need to start vsftpd at least once. This will create the config file afterwards

sudo systemctl start vsftpd.service
ls -lahG /etc
CJ42
  • 1
0

Try:

cat /etc/vsftpd/vsftpd.conf

That is where it is located for me.

Seth
  • 57,282
  • 43
  • 144
  • 200
0

I had this problem too. When I observed the installation log carefully, it turned out that the installation was stopping before re-installing the directory "srv/ftp". I deleted the directory ftp from /srv so that /srv was empty. Then I reinstalled and had my original vsftpd.conf script replaced in /etc/vsftpd.conf.

Matt
  • 1
  • Uh. Be sure to inspect whether you want to delete `/srv`, as it may contain files you want to keep. – Olli Mar 13 '14 at 09:46
0

Try

sudo dpkg-reconfigure vsftpd

This will affect package's configuration and rerun some scripts designed for package proper operation.

Danatela
  • 13,581
  • 11
  • 44
  • 70
shgnInc
  • 3,673
  • 4
  • 26
  • 29
0

try this command :

sudo find . -type f -name vsftpd.conf|grep vsftpd.conf

it should find the file in ./etc/

if the file is not there, then try following command :

sudo apt-get install --reinstall vsftpd

and then the find again -

serup
  • 221
  • 3
  • 6