当前位置:首页 » 文件管理 » vsftpd无法上传文件

vsftpd无法上传文件

发布时间: 2022-10-03 03:10:18

㈠ vsftpd能登陆不可以上传,指定了/var/ftp为777,把匿名打开都不行,附上配置文件,在线等跪求解,急死了

本地用户可以上传吗?有可能是selinux的问题。
使用root权限,执行这个命令试试:
setsebool ftp_home_dir=1

我的centos 5.4 (x64),通过这个方法解决了。

㈡ vsftpd.conf配置文件怎么改我咋linux里安装了vsftp 在windows 下能连接进去,但是不能上传下载,求教

根据/etc/vsftpd/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.# Allow anonymous FTP? (Beware - allowed by default if you comment this out).anonymous_enable=YES允许匿名用户登录# Uncomment this to allow local users to log in.local_enable=YES允许系统用户名登录# Uncomment this to enable any form of FTP write command.write_enable=YES允许使用任何可以修改文件系统的FTP的指令# Default umask for 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本地用户新增档案的权限# Uncomment this to allow the anonymous FTP user to upload files. This only# has an effect if the above global write enable is activated. Also, you will# obviously need to create a directory writable by the FTP user.#anon_upload_enable=YES允许匿名用户上传文件# Uncomment this if you want the anonymous FTP user to be able to create# new directories.#anon_mkdir_write_enable=YES允许匿名用户创建新目录# Activate directory messages - messages given to remote users when they# go into a certain directory.dirmessage_enable=YES允许为目录配置显示信息,显示每个目录下面的message_file文件的内容# Activate logging of uploads/downloads.xferlog_enable=YES开启日记功能 # Make sure PORT transfer connections originate from port 20 (ftp-data).connect_from_port_20=YES使用标准的20端口来连接ftp # If you want, you can arrange for uploaded anonymous files to be owned by# a different user. Note! Using "root" for uploaded files is not# recommended!#chown_uploads=YES所有匿名上传的文件的所属用户将会被更改成chown_username #chown_username=whoever 匿名上传文件所属用户名 # You may override where the log file goes if you like. The default is shown# below.#xferlog_file=/var/log/vsftpd.log日志文件位置 # If you want, you can have your log file in standard ftpd xferlog formatxferlog_std_format=YES使用标准格式 # You may change the default value for timing out an idle session.#idle_session_timeout=600空闲连接超时 # You may change the default value for timing out a data connection.#data_connection_timeout=120数据传输超时 # It is recommended that you define on your system a unique user which the# ftp server can use as a totally isolated and unprivileged user.#nopriv_user=ftpsecure当服务器运行于最底层时使用的用户名 # Enable this and the server will recognise asynchronous ABOR requests. Not# recommended for security (the code is non-trivial). Not enabling it,# however, may confuse older FTP clients.#async_abor_enable=YES允许使用\"async ABOR\"命令,一般不用,容易出问题 # By default the server will pretend to allow ASCII mode but in fact ignore# the request. Turn on the below options to have the server actually do ASCII# mangling on files when in ASCII mode.# Beware that on some FTP servers, ASCII support allows a denial of service# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd# predicted this attack and has always been safe, reporting the size of the# raw file.# ASCII mangling is a horrible feature of the protocol.#ascii_upload_enable=YES 管控是否可用ASCII 模式上传。默认值为NO#ascii_download_enable=YES管控是否可用ASCII 模式下载。默认值为NO# You may fully customise the login banner string:#ftpd_banner=Welcome to blah FTP service. login时显示欢迎信息.如果设置了banner_file则此设置无效 # You may specify a file of disallowed anonymous e-mail addresses. Apparently# useful for combatting certain DoS attacks.#deny_email_enable=YES 如果匿名用户需要密码,那么使用banned_email_file里面的电子邮件地址的用户不能登录# (default follows)#banned_email_file=/etc/vsftpd/banned_emails禁止使用匿名用户登陆时作为密码的电子邮件地址 # You may specify an explicit list of local users to chroot() to their home# directory. If chroot_local_user is YES, then this list becomes a list of# users to NOT chroot().#chroot_list_enable=YES如果启动这项功能,则所有列在chroot_list_file中的使用者不能更改根目录 # (default follows)#chroot_list_file=/etc/vsftpd/chroot_list定义不能更改用户主目录的文件 # You may activate the "-R" option to the builtin ls. This is disabled by# default to avoid remote users being able to cause excessive I/O on large# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume# the presence of the "-R" option, so there is a strong case for enabling it.#ls_recurse_enable=YES 是否能使用ls -R命令以防止浪费大量的服务器资源 # When "listen" directive is enabled, vsftpd runs in standalone mode and# listens on IPv4 sockets. This directive cannot be used in conjunction# with the listen_ipv6 directive.listen=YES 绑定到listen_port指定的端口,既然都绑定了也就是每时都开着的,就是那个什么standalone模式 # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6# sockets, you must run two copies of vsftpd whith two configuration files.# Make sure, that one of the listen options is commented !!#listen_ipv6=YESpam_service_name=vsftpd 定义PAM 所使用的名称,预设为vsftpserlist_enable=YES 若启用此选项,userlist_deny选项才被启动 tcp_wrappers=YES 开启tcp_wrappers支持

㈢ linux ftp服务器不允许上传

权限问题吧,应该把ftp共享出来的目录加上写的权限,一般是/var/ftp/pub
chmod
777
/var/ftp/pub
这样应该就可以了

㈣ linux中vsftp无法上传文件问题

你有没有安装SElinux?
如果安了你试试如下两种方法:
方法1. 关闭selinux,目录 /etc/selinux/config,将config里面的SELINUX=enforcing 改为 SELINUX=disable
方法2.开启禁用SElinux的FTP传输审核功能
getsebool -a | grep ftp 你先看哈
改: setsebool -P ftpd_disable_trans .
on也可以换成1,off为0哈

祝你好运!

㈤ linux vsftp匿名用户不可以上传怎么解决

首先要把防火墙给关闭了,iptables
-F
service
iptables
save
&&
service
iptables
stop
第二
设置文件夹具有可写权限
/var/ftp/pub
权限设置为chmod
o+w
/var/ftp/pub

㈥ vsftp在上传文件时提示failed to change directory,点击确定后不影响传输,是什么原因啊如图

提示说“权限不够”!
既要有FTP访问权限,又要有文件夹访问权限.两权限取其严格!

㈦ vsftp,客户端上传文件主机卡死

1、检查磁盘空间大小,是否为磁盘占满导致,use如果大于80%,系统性能下降
命令如下:df -h
2、网络连接中断,在本地ping所连主机,看网络是否稳定
命令如下:ping 主机ip
3、检查防火墙配置,如果为running,添加访问端口,保存后重启
命令如下:查看防火墙状态:service iptables staus
修改防火墙配置:vi /etc/sysconfig/iptables
#允许远程ssh
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
#允许FTP连接
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
重启防火墙:service iptables restart

㈧ linux 网站目录 的属主是root 还是ftp用户 ,如是root 那 权限为755 ftp就不能上传文件了 怎么设置vsftpd

vsftpd要求ftp服务器的根目录必须是ftp用户和ftp组,可以用如下命令修改属主

chown -R ftp:ftp 目录名

㈨ vsftp上传中文文件夹报错

打包后上传呢,或者上传一个英文文件如果可以说明是语言配置错误,一般在option中都有语言配置选项的,祝你好运

热点内容
芯片写程序需要配置哪些文件 发布:2024-10-09 00:38:39 浏览:934
存储储存搬运 发布:2024-10-09 00:28:42 浏览:717
吃鸡电脑适合什么配置 发布:2024-10-09 00:18:24 浏览:228
java线程实例 发布:2024-10-09 00:05:34 浏览:193
文档放在安卓手机哪里 发布:2024-10-08 23:35:00 浏览:439
我的世界服务器拔刀强化 发布:2024-10-08 22:59:37 浏览:430
服务器换ip宝塔面板 发布:2024-10-08 22:58:56 浏览:433
如何通过服务器搭建网站 发布:2024-10-08 22:58:54 浏览:240
赛尔编程 发布:2024-10-08 22:30:12 浏览:163
威驰车有哪些配置 发布:2024-10-08 22:19:32 浏览:565