Устанавливаем vsftpd

#yum install vsftpd

редактируем файл /etc/vsftpd/vsftpd.conf

анонимный доступ к FTP:

listen=YES

max_clients=200

max_per_ip=4

anonymous_enable=YES

no_anon_password=YES

anon_world_readable_only=YES

connect_from_port_20=YES

 

hide_ids=YES

pasv_min_port=5000

pasv_max_port=5100

xferlog_enable=YES

async_abor_enable=YES

one_process_model=YES

idle_session_timeout=120

data_connection_timeout=300

accept_timeout=60

connect_timeout=60

anon_max_rate=15000

anon_root=/media/ext4/ftp

local_root=/media/ext4/ftp

 

Парольный доступ:

 

anonymous_enable=no

local_enable=YES

write_enable=YES

local_umask=077

anon_upload_enable=NO

anon_mkdir_write_enable=NO

dirmessage_enable=YES

xferlog_enable=YES

xferlog_file=/var/log/vsftp.log

idle_session_timeout=600

data_connection_timeout=120

ascii_upload_enable=YES

ascii_download_enable=YES

ftpd_banner=Welcome to blah FTP service.

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd/vsftpd.chroot_list

listen=YES

listen_ipv6=NO

pam_service_name=vsftpd

userlist_enable=YES

tcp_wrappers=YES

pasv_min_port=5000

pasv_max_port=5100

anon_root=/media/storage/ftp

local_root=/media/storage/ftp

 

Выбрав один из конфигов перезапускаем нашь сервер

 

#/etc/init.d/vsftpd restart