In this posting, we are going to learn how to install a File Transfer Protocol (FTP) server VSFtpd on Linux.
Start your virtual Linux, then login as root. On VirtualBox menu, select Devices > CD/DVD Devices > Chose your Linux ISO file, in this example I use CentOS ISO file. Tips: push right Ctrl button on your keyboard to release mouse from your virtual machine.
CD/DVD contents file will automatically be loaded.
From Gnome menu, select Applications > Accessories > Terminal. Go to /dev/media directory:
#cd /dev/media
You will see some folders there, go to CentOS RPM director:
#cd /CentOS
To install using RPM:
#rpm -ivh vsftp... (use TAB on keyboard to auto-complete pakcage name)
We need to open port 21, default port for FTP service. On Gnome menu, select System > Administration > Security level and Firewall. Check on FTP checkbox then Apply and OK to save configuration.
Next, start up vsftpd service. Again on System menu, select Administration > Server Settings > Services. Scroll down to see vsftpd, check on its checkbox then hit Start button.
Our FTP server is ready for first testing. I use DOS FTP client on my Windows XP host. Note that vsftp will deny root account by default, you need a non administrative privilege user account to try this simulation.
Happy learning :).
Further reading:
https://security.appspot.com/vsftpd.html