涛子 - 简单就是美

成单纯魁增,永继振国兴,克复宗清政,广开家必升

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
yum -y install vsftpd
useradd upload -s /sbin/nologin
passwd upload

mkdir /data/upload
chown -R upolad:upload /data/upload

vim /etc/passwd
upolad:upload:500:500::/home/upload:/usr/sbin/nologin
->
upolad:upload:500:500::/data/upload:/usr/sbin/nologin
# /etc/vsftpd/user_list
upload

# /etc/vsftpd/chroot_list
upload

# /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_file=/var/log/xferlog
xferlog_std_format=YES

#chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

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

ls_recurse_enable=NO

listen=YES
listen_port=60000
listen_ipv6=NO
pasv_enable=YES

use_localtime=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

connect_timeout=60
accept_timeout=60
data_connection_timeout=300
idle_session_timeout=300

/etc/init.d/vsftpd start && chkconfig vsftpd on
posted on 2015-05-20 12:15  北京涛子  阅读(172)  评论(0编辑  收藏  举报