VSFTPD is a FTP deamon available in Ubuntu and it is easy to install, setup and maintain.
1. Install vsftpd from Ubuntu repositories by typing the following command in a terminal Window.
2. During installation, user ftp will get generated with default ftp directory as "/home/ftp". If you like to change the same to another directory, then type,
"sudo usermod -d /srv/ftp ftp"
where /srv/ftp is the new ftp directory and ftp stands for username.
3.You can restart the ftp server by typing the following command,
"/etc/init.d/vsftpd restart".
The default configuration file for vsftpd is /etc/vsftpd.conf. We can configure the vsftod ftp server by editing this file, as per our requirement.
1. To enable local users to login and upload files, edit the vsftpd.conf file as,
4. Restart vsftpd, /etc/init.d/vsftpd restart
Access :
Using a browser type "ftp://ip_address_of_server/". This will prompt for username and Password. On successful login, you can view files that are related to your user account.
Note :
1. You can also view files remotely, under file-browser, like nautilus, etc.
2. The FTP server is not encrypted and is unsafe to use unless made secured by using SSL (secure socket layer).
Steps :
1. Install vsftpd from Ubuntu repositories by typing the following command in a terminal Window.
sudo apt-get install vsftpd
2. During installation, user ftp will get generated with default ftp directory as "/home/ftp". If you like to change the same to another directory, then type,
"sudo usermod -d /srv/ftp ftp"
where /srv/ftp is the new ftp directory and ftp stands for username.
3.You can restart the ftp server by typing the following command,
"/etc/init.d/vsftpd restart".
Configuration :
The default configuration file for vsftpd is /etc/vsftpd.conf. We can configure the vsftod ftp server by editing this file, as per our requirement.
1. To enable local users to login and upload files, edit the vsftpd.conf file as,
local_enable=YES
write_enable=YES
2. To enable anonymous user to upload files, useanon_upload_enable=YES
3. To restrict users only to their home directory, usechroot_local_user=YES
To include a list of users to be able to access their home directories, usechroot_list_file=/etc/vsftpd.chroot_list
where vsftpd.chroot_list is a file includes list of users (one per line).4. Restart vsftpd, /etc/init.d/vsftpd restart
Access :
Using a browser type "ftp://ip_address_of_server/". This will prompt for username and Password. On successful login, you can view files that are related to your user account.
Note :
1. You can also view files remotely, under file-browser, like nautilus, etc.
2. The FTP server is not encrypted and is unsafe to use unless made secured by using SSL (secure socket layer).