For my network security class I have to set up an FTP server on a virtual machine. We are set up with 3 VM's - Gateway, Client, and Server. I have installed vsftpd using the command:
sudo apt-get install vsftpd
I then created a configuration file vsftpd-anon.conf in the location /etc/vsftpd/. The file contains:
#Set the server to run in standalone mode
listen=YES
#Enable anonymous access
local_enable=NO
anonymous_enable=YES
#Disable write access
write_enable=NO
#Set root directory for anon connections
anon_root=/var/ftp
#Limit retrieval rate
anon_max_rate=2048000
#Enable logging user login and file transfers. /var/log/vsftpd.log
xferlog_enable=YES
#Set interface and port
listen_address=192.168.50.5
listen_port=21
The IP address 192.168.50.5 is the eth0 for my server VM. When I run the command
sudo vsftpd /etc/vsftpd/vsftpd-anon.conf
I get the error:
500 OOPS: could not bind listening IPv4 socket
To check to see what was running on port 21, I ran the command:
sudo netstat -tulpn
And saw this:

I issued the command:
sudo killserver 29383
And checked again. The vsftpd was still there, but with a different PID. Running the command:
sudo killall vsftpd
Does the same thing. I have already tried reinstalling. Anyone know what is going on?