Last updated on October 10th, 2016 at 11:49 am
In this tip i will explain you how to setup FTP server on your. Follow simple steps to configure FTP on server.
Step 1. First install vsftpd on your server
1 |
sudo apt-get install vsftpd |
Step 2. Now open and edit vsftpd.conf and change some setting in it
1 2 3 4 5 6 |
anonymous_enable=NO local_enable=YES write_enable=YES local_umask=0002 file_open_mode=0777 chroot_local_user=YES |
Now at the end of file add this line
1 |
allow_writeable_chroot=YES |
Step 3. Now create a new user using this code
1 |
sudo adduser ftp_user_name |
after this you need to add password for this and add some info in it
Step 4. Now assign directory you want assign user for access
1 |
sudo usermod -d /var/www/html/test test |
Step 5. Also give read write permission to folder and restart server
1 2 |
chmod -R 777 /var/www/html/test sudo service vsftpd restart |
After this open any ftp client or filezilla and enter your login details and tru uploading file.
Hope this tip help you 🙂