vsftpd 本地用户无法上传文件解决方法
来源:互联网 发布:linux rpm 安装目录 编辑:程序博客网 时间:2024/05/22 04:37
vsftpd.conf 配置文件 :
[root@bogon ~]# vi /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=NO## Uncomment this to allow local users to log in.# When SELinux is enforcing check for SE bool ftp_home_dir<span style="color:#ff0000;"><strong>local_enable=YES</strong></span>## Uncomment this to enable any form of FTP write command.<span style="color:#ff0000;"><strong>write_enable=YES</strong></span>## 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.# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access#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## Activate logging of uploads/downloads.xferlog_enable=YES## Make sure PORT transfer connections originate from port 20 (ftp-data).
使用put命令以ascii模式上传文件时,报:
ftp> put 01.txt200 PORT command successful. Consider using PASV.553 Could not create file.
解决办法:
修改 /etc/sysconfig/selinux 文件
SELINUX=enforcing 修改为 <pre name="code" class="html"><span style="color:#ff0000;">SELINUX=disabled</span>
[root@bogon ~]# vi /etc/sysconfig/selinux # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.#SELINUX=enforcing<span style="color:#ff0000;">SELINUX=disabled</span># SELINUXTYPE= can take one of three two values:# targeted - Targeted processes are protected,# minimum - Modification of targeted policy. Only selected processes are protected.# mls - Multi Level Security protection.SELINUXTYPE=targeted
0 0
- vsftpd 本地用户无法上传文件解决方法
- 使用vsftpd搭建ftp,用户无法上传文件
- SUSE VSFTPD 无法上传文件
- Linux下vsftpd本地用户无法登录
- Vsftpd 不能上传文件的错误解决方法
- vsftpd匿名用户不能上传文件
- vsftpd服务-本地用户
- vsftpd 匿名用户能下载,不能上传文件
- VSFTPD使用本地用户访问
- VSFTPD无法上传下载的解决方法
- php无法上传大文件的解决方法
- fedora22:vsftp无法上传文件的解决方法
- 为vsftpd 本地用户指定目录
- vsftpd服务的配置(本地用户)
- vsftpd服务器-匿名-本地-虚拟用户
- linux下ftp服务器vsftpd-允许匿名用户上传文件
- vsftpd 基本配置实践 匿名anonymous用户上传文件 和 root 登陆
- vsftpd安装之后只能下载,无法上传
- 使用百度地图出现java.lang.UnsatisfiedLinkError错误
- jsp与JavaBean
- HOG:用于人体检测的梯度方向直方图 Histograms of Oriented Gradients for Human Detection
- Linux中程序的栈帧分析以及修改函数地址
- RabbitMQ安装与使用
- vsftpd 本地用户无法上传文件解决方法
- 【ITOO】----遍历表格得到每行数据
- bug:datanode启动后立刻死掉:java.io.IOException: Incompatible clusterIDs in....
- HIT ACM 1004 Prime Palindromes
- 《剑指offer》:[36]数组中的逆序对
- Ubuntu 安装jenkins
- SpringMVC中的注解驱动(九)
- 二维数组中的查找
- 二分类SVM方法Matlab实现