linux ftp服务器客户端不能上传,Linux配置FTP(vsftpd)服务和无法上传下载问题解决...

# Example config file /etc/vsftpd/vsftpd.conf

#

# Thedefault compiled insettings 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 indefaults.

#

# READ THIS: This example fileisNOT an exhaustive list of vsftpd options.

# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's

# capabilities.

#

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).

anonymous_enable=NO

#

# Uncommentthis to allow local users to log in.

# When SELinuxis enforcing check for SE boolftp_home_dir

local_enable=YES

#

# Uncommentthisto enable any form of FTP write command.

write_enable=YES

#

# Default umaskfor local users is 077. You may wish to change this to 022,

#if your users expect that (022 is used by most other ftpd's)

local_umask=022#

# Uncommentthisto allow the anonymous FTP user to upload files. This only

# has an effectif the above global write enable isactivated. Also, you will

# obviously need to create a directory writable by the FTP user.

# When SELinuxis enforcing check for SE boolallow_ftpd_anon_write, allow_ftpd_full_access

anon_upload_enable=YES

#

# Uncommentthis ifyou want the anonymous FTP user to be able to create

#newdirectories.

anon_mkdir_write_enable=YES

#

# Activate directory messages-messages given to remote users when they

# go into a certain directory.

dirmessage_enable=YES

#

# Activate logging of uploads/downloads.

xferlog_enable=YES

#

# Make sure PORT transfer connections originatefrom port 20 (ftp-data).

connect_from_port_20=YES

#

# If you want, you can arrangeforuploaded anonymous files to be owned by

# a different user. Note! Using "root" for uploaded files isnot

# recommended!#chown_uploads=YES

#chown_username=whoever

#

# You mayoverride where the log file goes if you like. The default isshown

# below.

#xferlog_file=/var/log/xferlog

#

# If you want, you can have your log fileinstandard ftpd xferlog format.

# Note that thedefault log file location is /var/log/xferlog in this case.

xferlog_std_format=YES

#

# You may change thedefault value for timing outan idle session.

#idle_session_timeout=600#

# You may change thedefault value for timing outa data connection.

#data_connection_timeout=120#

# Itisrecommended that you define on your system a unique user which the

# ftp server can useasa totally isolated and unprivileged user.

#nopriv_user=ftpsecure

#

# Enablethisand the server will recognise asynchronous ABOR requests. Not

# recommendedfor security (the code is non-trivial). Not enabling it,

# however, may confuse older FTP clients.

#async_abor_enable=YES

#

# Bydefault the server will pretend to allow ASCII mode but infact ignore

# the request. Turn on the below options to have the server actuallydoASCII

# mangling on files wheninASCII mode.

# Beware that on some FTP servers, ASCII support allows a denial of service

# attack (DoS) via the command"SIZE /big/file" inASCII mode. vsftpd

# predictedthisattack and has always been safe, reporting the size of the

# raw file.

# ASCII manglingisa horrible feature of the protocol.

ascii_upload_enable=YES

ascii_download_enable=YES

#

# You may fully customise the login bannerstring:

#ftpd_banner=Welcome to blah FTP service.

#

# You may specify a file of disallowed anonymous e-mail addresses. Apparently

# usefulforcombatting certain DoS attacks.

#deny_email_enable=YES

# (defaultfollows)

#banned_email_file=/etc/vsftpd/banned_emails

#

# You may specify anexplicitlist of local users to chroot() to their home

# directory. If chroot_local_useris YES, then thislist becomes a list of

# users to NOT chroot().

# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that

# the user does not have write access to the top level directory within the

# chroot)

#chroot_local_user=YES

#chroot_list_enable=YES

# (defaultfollows)

#chroot_list_file=/etc/vsftpd/chroot_list

#

# You may activate the"-R" option to the builtin ls. This isdisabled by

#default to avoid remote users being able to cause excessive I/O on large

# sites. However, some broken FTP clients suchas "ncftp" and "mirror"assume

# the presence of the"-R" option, so there is a strong case forenabling it.

#ls_recurse_enable=YES

#

# When"listen" directive is enabled, vsftpd runs instandalone mode and

# listens on IPv4 sockets. This directive cannot be usedinconjunction

# with the listen_ipv6 directive.

listen=NO

#

# This directive enables listening on IPv6 sockets. Bydefault, listening

# on the IPv6"any" address (::) will accept connections fromboth IPv6

# and IPv4 clients. Itis not necessary to listen on *both*IPv4 and IPv6

# sockets. If you want that (perhaps because you want to listen on specific

# addresses) then you must run two copies of vsftpd with two configuration

# files.

# Make sure, that one of the listen optionsis commented !!listen_ipv6=YES

pam_service_name=vsftpd

userlist_enable=YES

tcp_wrappers=YES

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值