2009-06-03

LINUX VSFTPD

before run check module path in file /etc/pam.d/vsftpd
vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES

#xferlog_enable=YES #wlaczenie logowania
xferlog_std_format=NO
#xferlog_file=/var/log/vsftpd.log
vsftpd_log_file=/var/log/vsftpd.log
#log_ftp_protocol=YES

connect_from_port_20=YES

#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure

ftpd_banner=Welcome to ftp server

chroot_local_user=YES
secure_chroot_dir=/usr/share/empty

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list

# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers
# for users that are denied.

pam_service_name=vsftpd
userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.user_list

#enable for standalone mode
listen=YES
tcp_wrappers=YES