Setting up FTP Server in 5 minutes - In Ubuntu/Debian
| August 6th, 2008Hi i find this is the easy and best way to set up an ftp server in minutes in your Ubuntu or Debian distribution
Try this
From Terminal
sudo apt-get install vsftpd — You may be asked to supply “sudo” password here
Don’t forget to backup before you use this configuration.
sudo cp /etc/vsftpd.conf /root/
# Put in /etc/vsftpd.conf
# Don’t forget to change khairulla into your local username
listen=YES ;You are Telling your system that it can listen to FTP Request
anonymous_enable=YES ; You told your system that any one can login to your FTP if you choose “NO” here then your FTP will ask for username and password before giving access to FTP
local_enable=YES ; Local System Access
write_enable=YES ; User can read write and delete files from FTP
anon_upload_enable=YES ; anonymous users can upload files
anon_mkdir_write_enable=YES ; anonymous users can create directory’s
dirmessage_enable=YES ;
xferlog_enable=YES ;
connect_from_port_20=YES ;
chown_uploads=YES ;
chown_username=khairulla ; My local system username
ftpd_banner=Welcome to Khair FTP service ; My FTP Server Name
secure_chroot_dir=/var/run/vsftpd ; FTP root directory
pam_service_name=vsftpd ; Services name
rsa_cert_file=/etc/ssl/certs/vsftpd.pem ; Certification file
anon_root=/home/ftp ; anonymous users directory
Now you must make writable directory for anonymous user.
cd /home/ftp ; Went to directory ftp
sudo mkdir opendir ; Created a directory named opendir
sudo chmod 777 opendir/ ; Changed the directory privileges to read & write
sudo /etc/init.d/vsftpd start ; Now its time to start your FTP server
sudo /etc/init.d/vsftpd stop
sudo /etc/init.d/vsftpd restart
Your blog is interesting!
Keep up the good work!
Thanks for Your Info….
Very good…
vsftpd is working great. Thanks for the helpful advice and instructions.