打开visudo 添加 www ALL = NOPASSWD: /bin/chown root /etc/vsftpd/vsftpd.d/[a-z0-9]* 到sudoers 找到Default requiretty这一行,把他注释掉