![]() Now user sagar can able to login ftp on port 21. Here /sbin/nologin shell is used to prevent shell access to the server. ![]() Step 6: Now create an User for ftp access. Step #5: Setup SEinux to allow ftp access to the users home directories. # iptables -A INPUT -p tcp -m tcp -dport 21 -j ACCEPT # iptables -A INPUT -m conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT Step #4: Allow FTP service in firewall to allow ftp ports. ![]() chroot_local_user=YESĮnable passive mode and allow chroot writable. Uncomment the below line ( Line no : 100 ) to restrict users to their home directory. # mv /etc/vsftpd/nf /etc/vsftpd/įind this line anonymous_enable=YES ( Line no : 12 ) and change value to NO to disable anonymous FTP access. Please take backup nf file before making any changes. Step #2: After installing you will need to edit /etc/vsftpd/nf file which is the main configuration file for VSFTPD. Step #1: First update your repository and install VSFTPD package on server. In this article I have used VSFTP package which is secure and less vulnerable Configure FTP Server This guide contains configuration steps for both ftp and vsftp as well as user creation. In this tutorial I will guide you how to setup ftp server on CentOS. FTP server is used to transfer file between computers over network. ![]()
0 Comments
Leave a Reply. |