backuppc / rsync-bpc

Rsync-bpc is a customized version of rsync that is used as part of BackupPC
GNU General Public License v3.0
28 stars 17 forks source link

Prb with cygwin-rsyncd-3.2.3.1 under Windows 10 #21

Open gfontaniere opened 3 years ago

gfontaniere commented 3 years ago

Hi,

I have installed cygwin-rsyncd-3.2.3.1 on my Windows 10 v20H2 and i have some issues with rsync authentication. I have completed rsyncd.conf and rsyncd.secrets as expected. I have completed RsyncdUserName et RsyncdPasswd on BackupPC side. Version is : 4.4.0

When i try to backup my computer on the server i have thir error :

This is the rsync child about to exec /usr/local/bin/rsync_bpc ERROR: password file must not be other-accessible Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode rsync error: syntax or usage error (code 1) at authenticate.c(196) [Receiver=3.1.3.0] rsync_bpc exited with fatal status 1 (256) (rsync error: syntax or usage error (code 1) at authenticate.c(196) [Receiver=3.1.3.0])

On the computer in rsyncd.log i have :

2021/03/21 13:36:44 [211] rsyncd version 3.2.4dev-no-msgs2stderr starting, listening on port 873 2021/03/21 13:36:58 [212] name lookup failed for 192.168.1.2: Name or service not known 2021/03/21 13:36:58 [212] connect from UNKNOWN (192.168.1.2) 2021/03/21 13:36:58 [212] rsync allowed access on module users from UNKNOWN (192.168.1.2) 2021/03/21 13:36:58 [212] auth failed on module users from UNKNOWN (192.168.1.2): invalid challenge response 2021/03/21 13:37:36 [211] sent 0 bytes received 0 bytes total size 0

I don't understand the next message because i am on Winwows 10 : This is the rsync child about to exec /usr/local/bin/rsync_bpc ERROR: password file must not be other-accessible

Any idea ?

Thank you.

Gerald.

gfontaniere commented 3 years ago

I have installed cygwin and change permissions witch chmod 500 but i have the same issue.

gfontaniere commented 3 years ago

On server side, with standard rsync :

su - backuppc backuppc@backup38:~/tmp$ rsync backuppc@192.168.1.90::users Password: drwxr-xr-x 0 2021/02/23 16:09:08 . lrwxrwxrwx 45 2020/10/20 15:31:54 Application Data lrwxrwxrwx 73 2020/10/20 15:31:54 Cookies lrwxrwxrwx 43 2020/10/20 15:31:54 Local Settings lrwxrwxrwx 74 2020/10/20 15:31:54 Menu Démarrer lrwxrwxrwx 39 2020/10/20 15:31:54 Mes documents lrwxrwxrwx 73 2020/10/20 15:31:54 Modèles -rw-r--r-- 2,883,584 2021/03/21 14:12:07 NTUSER.DAT

With rsync_bpc :

backuppc@backup38:~/tmp$ rsync_bpc backuppc@192.168.1.90::users rsync error: syntax or usage error (code 1) at options.c(1882) [client=3.1.3.0]

Help, please.

spi43984 commented 3 years ago

I have a similar issue with rsync over ssh. When running (as user backuppc) rsync --rsh="ssh -l root -p 5022" client:/root/xxx . this works well and I get file xxx. Running this rsync_bpc --rsh="ssh -l root -p 5022" client:/root/xxx . I get the error rsync error: syntax or usage error (code 1) at options.c(1320) [client=3.0.9.12]

I am getting theses errors on every single client when running rsync_bpc (even with version 3.1.3.0) from shell. But on all but one client the backups still work. Only one client I can't backup and I see this error in the web gui as well. This one client sets up a reverse ssh tunnel and I try to backup it through this tunnel.

git-Contributor commented 2 years ago

I have exactly same issue as @gfontaniere. Fresh install. Rsync itself seems to be ok, rsync_bpc has same error. And on client same invalid challenge response.

Have you managed to solve this somehow?