Replace your vsftpd.conf by below of myne ...
#Clinet:
#GUI :gftp
#CLI :ftp
#Server Config:
#Default : /etc/vsftpd/vsftpd.conf
#Some Binary : /etc/vsftpd.conf
#Service:
#/etc/init.d/vaftpd start|stop|restart|condrestart|status
#/usr/sbin/vsftpd &
#vsftpd.conf
#Remember:
#1>Don't use space before or after '=' it's error
#2>All paramiter start from column 1 i.e no space before parameters..
#3>Any misspell result deman not starting
#4>YES/NO and yes/no dosent matter
#============================== vsftpd.conf ==========================
####An Ipportant minimum requirement .
listen=yes
###You FTP Banner
ftpd_banner=WellCome to Shirish Shukla Word OF FTP .
##Can Include File
#banner_file=/etc/vaftpd/ftpbanner
##You Can specify denied users mail id from file .
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd/banned_emails
####=================== Main Configration ======================####
###By default only anon user is allowd #(ftp' and 'anonymous' are VLUs for anonymous.)
anonymous_enable=yes
##Input of anon password IF Default YES straight login no psw
#no_anon_password=YES
##FTP Default Home dir.. default below can change
#anon_root=/var/ftp/
##Dafault FTP username default below can change
#ftp_username=ftp
###Want VLU to use FTP
local_enable=yes
##Auth by PAM
pam_service_name=vsftpd
# test: pam modulle have to be preseent
# ldd `which vaftpd` |grep pam
###If local_enable=YES VLU can access to FTP after authentication
##Want VLU to access ther Home dir only..chroot them
#chroot_local_user=YES
##Want to unchroot some listed user
#chroot_list_enable=YES
#chroot_list_file=/etc/vsftpd/chroot_list
##Each users jail based on directory string in /etc/passwd.
#passwd_chroot_enable=NO
##Enabled, all non-anonymous[VLUs]rooted to /var/ftp
#guest_enable=NO
#guest_username=ftp
##Default root dir.. for anon same as anon_root
#local_root=/var/ftp
###Enable/Disable FTP Write command
write_enable=YES
###File dir upload permission by default 022
local_umask=755
###BY default below NO Anon user can upload and make dir..
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
###messages given to remote users when they enter into dir..
#dirmessage_enable=YES
###data transfer connection f#chown_uploads=YESrom 20
connect_from_port_20=YES
ftp_data_port=20
###If Need any upload to be owned by user shukla
#chown_uploads=YES
#chown_username=shukla
###Want a user totally isolated & unpreviledge user
#nopriv_user=ftpsecure
###Enable ascii uploadation and download Read in depth before
#enabiling this recomended...
#ascii_upload_enable=YES
#ascii_download_enable=YES
###Disable -R option of remote user so to avoid excessive IO
#ls_recurse_enable=NO
###listen vsftpd runs in standalone mode & listens on IPv4 sockets
##To Listen on both socket you ned to run 2 config file of vsftpd
##Make sure comented below
#listen_ipv6=YES
###User based Permission
##IF 'YES' Disable access of user listed in file userlist_file
#userlist_enable=NO
#userlist_file=/etc/vsftp.user_list
##Oppose above IF below 'NO' Enable All User listed in userlist_file only .
#userlist_deny=YES
#### IF Load another config dir same as vsftpd
#user_config_dir=/home/shukla/myfiles
####================== Logs =======================#
###Eable logging of any upload download
#xferlog_enable=NO
###Want log to be saved on my location
#xferlog_file=/var/log/vsftpd.log
###Logs in fromat standard ftpd xferlog
#xferlog_std_format=YES
#### =================== Fine Tuning Part ==================##
###Enable disable TCP-Wrapper based security
#tcp_wrappers=NO
#listen_address=default none
# test: pam modulle have to be preseent
# ldd `which vaftpd` |grep pam
###Limit use of FTP Access =0 [unlimited] you can limit by int value
#max_clients=0
#max_per_ip=0
###Timeout, in seconds, for a remote client to establish connection
#accept_timeout=30
#connect_timeout=60
###Limit session below are default you can change as per req .
#idle_session_timeout=600
#data_connection_timeout=120
###Maximum data transfer rate permitted, in bytes per second
#local_max_rate=0
#local_umask=077
#anon_max_rate=0
#anon_umask=077
##NO IF want disallow the PORT method of obtaining a data connection.
#port_enable=YES
##Set to YES if you want to disable the PORT security check that ensures that
##outgoing data connections can only connect to the client. Only enable if you
##know what you are doing!
#port_promiscuous=NO
# Faced any problem Feedback in above contact me
#======================== ===Scratch===============================#
# AND Many More .....................Linux is Endless #
#========================== Hope you Liked IT ========================#
# VSFTP -- BY Shirish Shukla #
# RHC Engineer 2010 #
# shirish.linux@gmail.com #
# shirishlinux.blogspot.com #
# "Give Respect To Time One Day At Right Time, Time Will Respect You" #
#==================================================================#
# TRy Hard theres nothing that are un-achievable by HARDdd-WORKkk #
#==================================================================#
No comments:
Post a Comment
Write Here .. your comments are always wellcome ..but no spam please !!