Filezilla无法上传文件
问题描述:
我的Filezilla可以连接实例并下载所有文件,但我永远无法上传或创建单个文件。我检查了许可,看起来很好。我遵循标准程序使用Filezilla中的sftp设置进行连接,可能的解决方案是什么?我错过了什么?Filezilla无法上传文件
活动:
Status: Retrieving directory listing of "/wordpress/wp-content"...
Status: Listing directory /wordpress/wp-content
Status: Directory listing of "/wordpress/wp-content" successful
Status: Retrieving directory listing of "/wordpress/wp-content/themes"...
Status: Listing directory /wordpress/wp-content/themes
Status: Directory listing of "/wordpress/wp-content/themes" successful
Status: Creating directory '/wordpress/wp-content/themes/bridge'...
Command: mkdir "bridge"
Error: mkdir /wordpress/wp-content/themes/bridge: permission denied
Command: mkdir "/wordpress/wp-content/themes/bridge"
Error: mkdir /wordpress/wp-content/themes/bridge: permission denied
答
我的猜测是,在你的虚拟机的目录/wordpress
是通过读取系统上的所有用户,但只有root
可以写入。您可以通过连接到你的虚拟机并运行验证这一点:
ls -ld /wordpress
如果你希望能够通过Filezilla的管理您的文件,你需要做以下操作之一:
- 给您的用户名写权限(见
chmod
and permissions),或 - 创建new Linux group and give the group write access,和自己加入到这个组
我的建议是使用运因为这是更一般和未来的证明。
这不是Google Compute Engine特有的,这是标准的Linux功能。
我试过你的上面的建议,我可以看到文件的所有者是www数据,但我不知道如何添加写入权限。有没有任何详细的文件。 –
@BhagathGuru - 我将#1和#2中的说明链接到相关文档。 –