文章目录
[root@localhost opt]# rsync -az --delete --password-file=/etc/server.pass backuper@192.168.3.11::wwwroot /opt/hhh
ERROR: password file must not be other-accessible
rsync error: syntax or usage error (code 1) at authenticate.c(196) [Receiver=3.1.2]
报错
故障排查和解决方法:
根据报错提示的英文语句进行翻译:
密码文件不能被其他用户访问。
原来是密码文件只能被属主读取和写入,不能被其他用户读取,这是不安全的!
而创建的文件默认权限是644,需要将其设为600
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/2e77904d0ee5355541cd62bed38f0f47.png)