Tuesday, February 10, 2009

Confiured VSFTP

VSFTPD  Setup

Install vsftpd.i386

cd /etc/vsftpd/

vi 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

chown_uploads=YES

chown_username=vidal

xferlog_file=/var/log/vsftpd.log

xferlog_std_format=YES

idle_session_timeout=600

data_connection_timeout=120

ftpd_banner=welcome to TC ftp services.

chroot_list_enable=YES

chroot_list_file=/etc/vsftpd/chroot_list

pam_service_name=vsftpd

#nopriv_user=ftpgroup

#anon_upload_enable=YES

#anon_mkdir_write_enable=YES

#async_abor_enable=YES

#ascii_upload_enable=YES

#ascii_download_enable=YES

#deny_email_enable=YES

#banned_email_file=/etc/vsftpd.banned_emails

#ls_recurse_enable=YES

#userlist_enable=YES

#enable for standalone mode

listen=YES

#tcp_wrappers=YES

 

vi  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.

root

bin

daemon

adm

lp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

vidal    --------------------------------------------->  your given username

/usr/sbin/adduser -d /home/ftpusername  ftpusername

Vi /etc/shells

/bin/false

 
 

0 comments:

Post a Comment