[root@localhost opt]# rsync -az --delete --password-file=/etc/server.pass [email protected]::hhh

文章目录


[root@localhost opt]# rsync -az --delete --password-file=/etc/server.pass [email protected]::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
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/xiaobai316/article/details/121362933