---
title: "vsftpd出现550 SITE CHMOD command failed."
author: "ciaos"
date: "2016-01-16T17:20:20Z"
tags: []
categories: ["非技术"]
slug: "vsftpd-550-site-chmod-command-failed"
draft: false
lastmod: "2016-01-16T17:20:20Z"
id: 2271560
url: "https://ciaos.iteye.com/blog/2271560"
---

centos 6（centos 7没遇到这个问题）

 

ftp 配置后，用sublime text修改文件保存时出如下问题

 

b'FTPSync \[default] &gt; Connected to: localhost:21 (timeout: 30) (key: cf1870902e065b11b67b92a95b960a3e)'

b'FTPSync \[default] &gt; Logged in as: ftp (using password: YES)'

b'FTPSync \[default] &gt; Failed ensure root exists \[Exception: 550 SITE CHMOD command failed.]'

 

怀疑是vsftpd用自带的根目录作为前缀去定位用户文件路径导致chmod错误

 

修改vsftpd.conf为每次都从根目录"/"定位文件，而不是vsftpd默认的/var/www/ 

 

local\_root=/

 

重启就ok了。（还有别的原因也可能导致这个问题，如文件无权限，selinux等）