How to install FTP Server in Linux - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Tuesday, September 2, 2014

How to install FTP Server in Linux

FTP Server Configurations


FTP Server Configurations
How to install FTP Server in Linux  and also Interview Questions on File Transfer Protocol(FTP).
1 ) Install FTP server – vsftpd
          $yum install vsftpd
Or download the rpm afrom the below links
or
use the below command to install
          $rpm –ivh vsftpd*.rpm
2) Add the line to the /etc/sysconfig/iptables file to open port no 21 which is the default port for FTP in Firewall
        iptables -A INPUT 192.168.1.102 -p tcp --dport 21 -j ACCEPT
3) open the /etc/vsftpd/ftpuser and the /etc/vsftpd/user_list file and remove the user name you want to access from remote
4) restart the iptables service
          $service iptables restart
5) run the commands
        $setsebool -P ftp_home_dir on
        $setsebool -P allow_ftpd_full_access on
6)Restart the vsftpd service
       $service vsftpd restart
 
Interview Questions on File Transfer Protocol(FTP).......
###Very Secure File Transfer Protocol Daemon (VSFTPD)###
Features:
 1. FTPD
 2. Chroot jail
 3. anonymous and local-user auth
 4. Rate-limiting

Tasks:
 1. Install 'vsftpd'
  a. yum -y install vsftpd

 2. Start the server
  a. service vsftpd start
  b. netstat -ntlp | grep 21

 3. Configure service to start when system boots into multi-user runlevel
  a. chkconfig vsftpd on
  b. chkconfig --list vsftpd

 4. Connect to the FTPD service:
  a. Use web browser, which defaults to anonymous
  b. Use standard FTP client, as anonymous
  c. setsebool -P ftp_home_dir=1 - permits users access to their home directory
  d. service vsftpd restart - for changes to take effect

 5. Chroot jail local users & disable 'anonymous' access
  a. chroot_local_user=YES - this jails users
  b. service vsftpd restart - for changes to take effect
  c. test connectivity as 'anonymous' and 'non-anonymous' users

 6. Enable IPv6 listener:
  a. listen_ipv6=YES - DO NOT USE WITH 'listen=YES(IPv4)'

 7. Restrict 'non-anonymous' user's transfer rate
  a. local_max_rate=1000 - restricts connections to 1000/bps (1K/s)

Thanking You
Hope U like it...

Oracle Linux 7

Fedora 20 in Virtual box

Nagios 4.0.7

Roboform in linux

Ubuntu server 12.04
Zimbra Desktop 7