- 论坛徽章:
- 0
|
今天修改了vsftpd.conf将匿名用户限定在/pub/anon目录后,本地帐号不能向anon目录中上传文件,显示为
150 Here comes the directory listing.
226 Directory send OK.
列表完成: 0 bytes 于 0.06 (1.00 KBps)
传输队列已完成
1 个文件传输失败
CDUP
250 Directory successfully changed.
PWD
257 "/data/ftp/pub"
PORT 192,168,1,2,5,181
200 PORT command successful. Consider using PASV.
下面是vsftpd.conf内容
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
anonymous_enable=YES
#
local_enable=YES
#
write_enable=YES
#
local_umask=022
#
#anon_upload_enable=YES
#
#anon_mkdir_write_enable=YES
#
dirmessage_enable=YES
#
xferlog_enable=YES
#
connect_from_port_20=YES
#
#chown_uploads=YES
#chown_username=whoever
#
xferlog_file=/var/log/vsftpd.log
#
xferlog_std_format=YES
#
idle_session_timeout=600
#
data_connection_timeout=120
#
#nopriv_user=ftpsecure
#
#async_abor_enable=YES
#
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
ftpd_banner=Welcome to FTP service.
#banner_file=/etc/vsftpd/banner
#
#deny_email_enable=YES
#banned_email_file=/etc/vsftpd.banned_emails
#
ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=NO
#enable for standalone mode
listen=YES
tcp_wrappers=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
anon_root=/var/ftp/pub/anon
anon_max_rate=30000
max_per_ip=4
max_clients=100
请各位大大指点一下
谢谢 |
|