[root@nfs01 backup]# rsync -avz /backup rsync_backup@172.16.1.41::backup
Password:
@ERROR: auth failed on module backup
rsync error: error starting client-server protocol (code 5) at main.c(1648) [sender=3.1.2]
1. 输入密码后报错 首先检查密码文件中的密码是否正确
[root@backup01 backup]# cat /etc/rsync.password
rsync_backup:123456
查询密码之后发现我的密码是123456 ,刚才输入了1234567所以报错.
2. 查询密码文件/etc/rsync.password的权限是否是600
[root@backup01 backup]# ll /etc/rsync.password
-rw------- 1 root root 20 Jan 13 15:02 /etc/rsync.password
3. 查询服务端备份目录归属组是否为rsync
[root@backup01 backup]# ll -d /backup
drwxr-xr-x 2 rsync rsync 6 Jan 14 10:35 /backup
三步排查后一般问题就解决了
网友评论