ITMan Documents

This Weblog Just Created For Document Sysadmin Challenges

Vsftpd with xinetd

Install xinetd

yum install xinetd

Configure xinetd

vim /etc/xinetd.conf
defaults
{
    log_type    = SYSLOG daemon info
    log_on_failure  = HOST
    log_on_success  = PID HOST DURATION EXIT
    cps     = 50 10
    instances   = 50
    per_source  = 10
    v6only      = no
    groups      = yes
    umask       = 002
}
includedir /etc/xinetd.d

Configure ftp in xinetd

vim /etc/xinetd.d/vsftpd
service ftp
{
    disable         = no
    socket_type     = stream
    protocol        = tcp
    wait            = no
    user            = root
    instances       = UNLIMITED
    server                  = /usr/sbin/vsftpd
    server_args = /etc/vsftpd/vsftpd.conf
}

Configure vsftpd

vim /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
listen=NO
listen_ipv6=NO
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
allow_writeable_chroot=YES
Last updated on 26 Oct 2019
Published on 23 Nov 2018