Advertisement
shokti

centos 6.5 - vsftpd

May 6th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. install vsftpd:
  2. yum install vsftpd
  3.  
  4. edit config file:
  5. nano /etc/vsftpd/vsftpd.conf
  6. ----------------------------------------------------
  7. anonymous_enable=NO
  8. local_enable=YES
  9. write_enable=YES
  10. chroot_local_user=YES
  11. ----------------------------------------------------
  12.  
  13. allow ftp in firewall:
  14. iptables -A INPUT -p tcp --dport 21 -j ACCEPT
  15.  
  16. allow passive ftp:
  17. nano /etc/sysconfig/iptables-config
  18. ----------------------------------------------------
  19. IPTABLES_MODULES="ip_conntrack_ftp"
  20. ----------------------------------------------------
  21.  
  22. save iptables rules:
  23. service iptables save
  24.  
  25. restart iptables:
  26. service iptables restart
  27.  
  28. start vsftpd on boot:
  29. chkconfig vsftpd on
  30.  
  31. start vsftpd server:
  32. service vsftpd start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement