vsftpd-VSFTPD,可以FTP下载但是FTP上传时报“550 Permission denied.”

问题描述

VSFTPD,可以FTP下载但是FTP上传时报“550 Permission denied.”

ubuntu14.04 安装VSFTPD,可以FTP下载但是FTP上传时报“550 Permission denied.”恳请各位大神求助

我把FTP主目录文件夹的权限都设置成777了,但还是不能上传(下载文件是可以的)
配置文件(/etc/vsftpd.conf)那里我是设置成用本地用户登录的;
write_enable=YES,这个东西也设置了。我已经搞了2天了,都没搞好,要崩溃了。。。。

配置脚本如下:

Example config file /etc/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.

#
#

Run standalone? vsftpd can run either from an inetd or as a standalone

daemon started from an initscript.

listen=YES
#

Run standalone with IPv6?

Like the listen parameter, except vsftpd will listen on an IPv6 socket

instead of an IPv4 one. This parameter and the listen parameter are mutually

exclusive.

#listen_ipv6=YES
#

Allow anonymous FTP? (Disabled by default)

anonymous_enable=NO
#

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
#

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
#

If enabled, vsftpd will display directory listings with the time

in your local time zone. The default is to display GMT. The

times returned by the MDTM FTP command are also affected by this

option.

use_localtime=YES
#

Activate logging of uploads/downloads.

xferlog_enable=YES
#

Make sure PORT transfer connections originate from port 20 (ftp-data).

#connect_from_port_20=YES
port_enable=NO
connetc_from_port_20=NO
#

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=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 format.

Note that the default log file location is /var/log/xferlog in this case.

#xferlog_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
#

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.

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_download_enable=YES
#

You may fully customise the login banner string:

ftpd_banner=Welcome to blah FTP service.
#

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

useful for combatting certain DoS attacks.

#deny_email_enable=YES

(default follows)

#banned_email_file=/etc/vsftpd.banned_emails
#

You may restrict local users to their home directories. See the FAQ for

the possible risks in this before using chroot_local_user or

chroot_list_enable below.

#chroot_local_user=YES
#

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().

(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

(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
#

Customization

#

Some of vsftpd's settings don't fit the filesystem layout by

default.

#

This option should be the name of a directory which is empty. Also, the

directory should not be writable by the ftp user. This directory is used

as a secure chroot() jail at times vsftpd does not require filesystem

access.

secure_chroot_dir=/var/run/vsftpd/empty
#

This string is the name of the PAM service vsftpd will use.

pam_service_name=vsftpd
#

This option specifies the location of the RSA certificate to use for SSL

encrypted connections.

rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem

This option specifies the location of the RSA key to use for SSL

encrypted connections.

rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#wei add
seccomp_sandbox=NO
userlist_enable=YES
userlist_deny=YES
userlist_file=/etc/allowed_users
pasv_enable=YES
pasv_max_port=0
pasv_max_port=0

解决方案

vsftpd 550 Permission denied.
vsftpd 550 Permission denied
FTP服务FileZilla Server上传提示550 Permission denied

时间: 2024-08-01 06:45:18

vsftpd-VSFTPD,可以FTP下载但是FTP上传时报“550 Permission denied.”的相关文章

Java实现FTP批量大文件上传下载篇1_java

本文介绍了在Java中,如何使用Java现有的可用的库来编写FTP客户端代码,并开发成Applet控件,做成基于Web的批量.大文件的上传下载控件.文章在比较了一系列FTP客户库的基础上,就其中一个比较通用且功能较强的j-ftp类库,对一些比较常见的功能如进度条.断点续传.内外网的映射.在Applet中回调JavaScript函数等问题进行详细的阐述及代码实现,希望通过此文起到一个抛砖引玉的作用. 一.引子 笔者在实施一个项目过程中出现了一种基于Web的文件上传下载需求.在全省(或全国)各地的用

ftp软件的bug: 上传和下载的php文件换行丢失

在使用ftp软件上传下载php源文件时,我们偶尔会发现在本地windows下notepad++编辑器写好的php文件,在使用ftp上传到linux服务器后,php文件的换行符全部丢失了,导致php文件无法正常运行. 这个时候,再次通过ftp软件把刚才上传的php文件下载到本地windows,用notepad++编辑器打开后,发现php源代码变成了一行,换行丢失. 发生这种情况的原因是什么呢?飘易就以一句话概括下: 由于linux下换行是n,而windows下换行是rn,当ftp软件在上传时,默认

FTP 550 Permission denied 只能建文件夹,没法删除及上传文件的原因说明_FTP服务器

出现这种问题, ①首先检查用户对应的角色名,然后看路径设置是否正确,有没有相关的权限,如果这些都没问题,然后就尝试下面的操作: ②重起FTP服务,最好从服务里面重启(不能根本解决): ③重新设置Server-U帐号和目录访问里的文件路径(如果还不行,尝试下面操作): ④删除用户,重新建. 原创 SU整理(FTP)收藏 整理如下: 1开头-成功 2开头-成功 3开头-权限问题 4开头-文件问题 5开头-服务器问题 150 FILE: %s 150 Opening %s mode data conn

服务器-Java FTP上传文件夹,只能上传到FTP根目录,如何上传到指定目录

问题描述 Java FTP上传文件夹,只能上传到FTP根目录,如何上传到指定目录 Java FTP上传文件夹,只能上传到FTP根目录,如何上传到指定目录 如果文件较大,如何完整的上传到FTP的服务器 解决方案 用ftpClient.changeWorkingDirectory更改路径,路径不必以/开始

路由器后电脑下载正常但是上传速度慢如何解决

  解决路由器后电脑下载正常但是上传速度慢的方法一.宽带线路本身问题 随着互联网的发展."云时代"的来临,越来越多的人习惯将照片.视频等文件进行云存储或上传给他人共享.使用路由器过程中,上网终端下载速度正常,上传速度很慢. 上传速度主要取决于上行带宽,而绝大多数家庭宽带线路,上下行带宽并不对称,上行带宽远远低于下行带宽.在电话线路上,上行带宽与下行带宽之比可能为1:10. 注意:运营商提供的宽带速率单位为Mbps,而上传软件的速率单位为MB/s,请注意单位换算,1MB/s=8Mbps.

link环境下使用codefirst技术制作的《网盘软件》,下载器下载的同时上传怎么做?

问题描述 link环境下使用codefirst技术制作的<网盘软件>,下载器下载的同时上传怎么做? link环境下使用codefirst技术制作的<网盘软件>,下载器下载的同时上传怎么做? 解决方案 开两个线程,一个上传一个下载就是了,你的问题是什么

firefox浏览器用jquery.uploadify插件上传时报HTTP 302错误

 这篇文章主要介绍了firefox浏览器用jquery.uploadify插件上传时报HTTP 302错误,分析了下,原来是利用flash进行post上传时没有包含原来的session信息,而是重新创建了一个session,知道原因了,我们来看看如何解决吧.     解决了uploadify插件在chrom频繁崩溃的问题,又遇到了新问题,ff浏览器下报HTTP 302错误, ff浏览器下 uploadify 利用flash进行post上传时没有包含原来的session信息,而是重新创建了一个se

EDI中JAVA通过FTP工具实现文件上传下载实例_java

最近接手一个EDI项目,收获颇多.其实我在第一家公司是接触过EDI的,当初我们用EDI主要实现了订单数据传输,客户向我们下达采购订单,通过VPN及FTP工具将采购订单以约定的报文形式放到指定的文件服务器中,然后我们EDI系统会定时去文件服务器中获取报文,最后解析并生成我们的销售订单.这些年过去了,我仍记着当初用的最多的是EDI850.EDI855.  一.首先介绍一下EDI的概念 Electronic data interchange,电子数据交换. EDI其实就是把原来纸质的订单/发货通知等业

php下连接ftp实现文件的上传、下载、删除文件实例代码_php基础

php ftp传送文件到服务器 复制代码 代码如下: <?php // 开始 $ret = ftp_nb_get ($my_connection, "test", "README", FTP_BINARY, filesize("test")); // 或: $ret = ftp_nb_get ($my_connection, "test", "README", // FTP_BINARY, FTP_A