Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- install vsftpd:
- yum install vsftpd
- edit config file:
- nano /etc/vsftpd/vsftpd.conf
- ----------------------------------------------------
- anonymous_enable=NO
- local_enable=YES
- write_enable=YES
- chroot_local_user=YES
- ----------------------------------------------------
- allow ftp in firewall:
- iptables -A INPUT -p tcp --dport 21 -j ACCEPT
- allow passive ftp:
- nano /etc/sysconfig/iptables-config
- ----------------------------------------------------
- IPTABLES_MODULES="ip_conntrack_ftp"
- ----------------------------------------------------
- save iptables rules:
- service iptables save
- restart iptables:
- service iptables restart
- start vsftpd on boot:
- chkconfig vsftpd on
- start vsftpd server:
- service vsftpd start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement