Tag Archives: rsync error

Rsync Error: Operation not permitted [How to Solve]

1. The problem is reported: Operation not permitted.

Solution:

Add a parameter in the configuration file,

fake super = yes
#Or change the running user to root
uid = root
gid = root

2. The problem is reported:

[root@nfs01 ~]# rsync -av -P /data/ rsync_password@ 10.0 . 0.41 ::data
Password: 
@ERROR: auth failed on module data
rsync error: error starting client -server protocol (code 5 ) at main.c( 1648 ) [sender= 3.1 . 2 ]

Solution: change the password file permissions

[root@backup ~]# chmod  600 /etc/rsync.password

rsync error: error starting client-server protocol (code 5) at main.c(1648) [Receiver=3.1.2]

Rsync error: error starting client-server Protocol (Code 5) at main.c(1648) [Receiver=3.1.2]
1. Try to close the firewall test

[root@sm ~]# systemctl stop firewalld

2. Check whether the confidential file attribute is 600

[root@sm ~]# ls -l /etc/rsyncd.secrets 
-rw------- 1 root root 26 Nov 29 22:00 /etc/rsyncd.secrets

3, check the configuration file for formatting errors, including command comments cannot be peer

[share]
comment = user share
path = /share
ignore errors
#exclude = lost+found/  
auth users = bob,maray

4, command syntax formatting error
rsync command syntax formatting error.