---
title: "centos vsftpd 553 Could not create file."
author: "不念书的小子"
date: "2013-01-31T16:10:27Z"
tags: []
categories: ["操作系统"]
slug: "centos-vsftpd-553-could-not-create-file"
draft: false
lastmod: "2013-01-31T16:10:27Z"
id: 1781740
url: "https://tompig.iteye.com/blog/1781740"
---

问题由于selinux引起的，问题解决办法：

输入：getsebool -a | grep ftpd  
allow\_ftpd\_anon\_write –&gt; off  
allow\_ftpd\_full\_access –&gt; on  
allow\_ftpd\_use\_cifs –&gt; off  
allow\_ftpd\_use\_nfs –&gt; off  
ftp\_home\_dir –&gt; on  
ftpd\_connect\_db –&gt; off  
httpd\_enable\_ftp\_server –&gt; off  
sftpd\_anon\_write –&gt; off  
sftpd\_enable\_homedirs –&gt; off  
sftpd\_full\_access –&gt; off  
sftpd\_write\_ssh\_home –&gt; off  
tftp\_anon\_write –&gt; off

红色的要为on才行，更改命令：

setsebool allow\_ftpd\_full\_access on  
setsebool ftp\_home\_dir on  
或者setsebool allow\_ftpd\_full\_access 1