FTP-Server-CentOS

FTP-Server-on-CentOS
==========================


# yum install vsftpd

# vi /etc/vsftpd/vsftp.conf

anonymous_enable=YES
anon_root=/vsftpd/backup
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

#

Seperate FTP Anon Directory
================================

# mkdir -p /vsftpd/backup/Public
# chmod -R 755 /vsftpd/backup
# chmod 777 /vsftpd/backup/Public

FTP User with No GUI Login
=============================

# useradd -d /vsftpd/ftpu1 -s /sbin/nologin ftpu1
# passwd ftpu1
# mkdir /vsftpd/ftpu1/4u1
# chown -R ftpu1:ftpu1 /vsftpd/ftpu1