How to install ftp server in Ubuntu-12.04-server
What is FTP?
Ftp is a file transfer protocol. FTP is used to transfer file from one place to another.FTP uses port no 21 by default to connect to the destination machine.
For installing ftp do the following.
1. Open the terminal and type
$ sudo apt-get install vsftpd
2. Now edit /etc/vsftpd.conf file
$ sudo vim /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
What is FTP?
Ftp is a file transfer protocol. FTP is used to transfer file from one place to another.FTP uses port no 21 by default to connect to the destination machine.
For installing ftp do the following.
1. Open the terminal and type
$ sudo apt-get install vsftpd
2. Now edit /etc/vsftpd.conf file
$ sudo vim /etc/vsftpd.conf
# line 23: change( disable anonymous )
anonymous_enable=NO
# line 26: uncomment
local_enable=YES
# line 29: uncomment
write_enable=YES
# line 97,98: uncomment ( allow ascii mode transfer )
ascii_upload_enable=YES
ascii_download_enable=YES
# line 120: uncomment ( enable chroot )
chroot_local_user=YES
# line 121: uncomment ( enable chroot list )
chroot_list_enable=YES
# line 123: uncomment ( enable chroot list )
chroot_list_file=/etc/vsftpd.chroot_list
# line 129: uncomment
ls_recurse_enable=YES
# add at the last line
# specify root directory ( if don't specify, users' home directory become FTP home directory)
local_root=public_html
# use localtime
use_localtime=YES
Save and exit the file
3. Now create the file in /etc/vsftpd.chroot_list
$ sudo vim /etc/vsftpd.chroot_list
add your system username in it and do save and exit.
4. Restart vsftpd service
$ sudo service vsftpd restart.
5. Now try to open ftp from the browser.
ftp://192.168.100.162
03:30
Tags :
Ubuntu-12.04
Subscribe by Email
Follow Updates Articles from This Blog via Email
No Comments