Search This Blog

2013-03-28

CentOS: FTP Server Setup

Product: VFTPd Server
OS: CentOS 6.3

This post document about FTP server installation and setup which allow local user to login and change to their home directory

Installation
yum install ftpserver

Configure to Auto Start
chkconfig vsftpd on

Startup Manually
service vsftpd start

Configure To Allow Local User Change to Home Dir
setsebool -P ftp_home_dir=1
vi /etc/vsftpd/vsftpd.conf

Ensure following:
local_enable=YES
#chroot_local_user=YES


This is optional
anonymous_enable=NO

Firewall Configuration
vi /etc/sysconfig/iptables

Add following line before "--reject-with" rule

# FTP allow incoming connection on standard FTP port 21
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT


Now restart to activate the setting, if FTP server already started
service vsftpd restart


No comments:

Blog Archive