ls -al 查看权限,发现rwx均在root用户。 sudo su root 切换成root, chmod -R 777 文件名,修改权限。 ls -al 查看文件权限,看到其他用户及用户组为可读可写可执行, 之后就可以保存文件。