Introduction
Vsftpd is an open source very secure FTP daemon. It also support IPV6. It is available in all linux distribution. It is used to transfer file from one server to another. There are lots of mode available to configure it.
1. Let's install vsftpd in ubuntu server :-
sudo apt-get install vsftpd -y
2. Now edit vsftpd.conf file :-
Now lets change the parameters to work as per our requirements. I mentioning below the parameters which you have to change in your conf file.
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
use_localtime=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to test.com
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
local_root=public_html
ls_recurse_enable=YES
The above parameters you have to change and the rest will remain untouched.
3. Now create one file of user as we have chroot them to their local root directory :-
Add the username you want for e.g I have "test" user
save and exit the file
4. Now create a directory inside your test user account :-
5. Restart the vsftpd service to take effect :-
6. Now try accessing it from filezilla :-
I have added host entry in my host file that's why I am accessing with hostname you can also access it via IP address.
That's it enjoy using vsftpd.
Please Do Comments,Like and Share.
sudo vim /etc/vsftpd.conf
Now lets change the parameters to work as per our requirements. I mentioning below the parameters which you have to change in your conf file.
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
use_localtime=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=Welcome to test.com
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
local_root=public_html
ls_recurse_enable=YES
The above parameters you have to change and the rest will remain untouched.
3. Now create one file of user as we have chroot them to their local root directory :-
sudo vim /etc/vsftpd.chroot_list
Add the username you want for e.g I have "test" user
save and exit the file
4. Now create a directory inside your test user account :-
mkdir public_html
5. Restart the vsftpd service to take effect :-
sudo service vsftpd restart
6. Now try accessing it from filezilla :-
I have added host entry in my host file that's why I am accessing with hostname you can also access it via IP address.
That's it enjoy using vsftpd.
Please Do Comments,Like and Share.
00:36
Tags :
Linux
,
Ubuntu-14.04
Subscribe by Email
Follow Updates Articles from This Blog via Email
No Comments