Suresh Le Rochus <(E-Mail Removed)> wrote in
news:Xns978C502D5A93sureshtiscalifr@81.174.50.80:
> hello,
>
> I recently installed rsync to test it and I am experiencing some
> problem using authentification with it.
> My /etc/rsyncd.conf is like that:
> "
> [share_rsync]
> path = /sauvegarde/intern
> comment = Synchro fichiers internes
> read only = false
> auth users = test1
> secret file = /etc/rsyncd.secrets
> list = true
> "
> and my /etc/rsyncd.secrets file:
> "
> test1:test
> #blank line
> "
> On the other computer I have this:
> "
> rsync -avnz --stats --progress test1@192.168.0.4::share_rsync/
> /cygdrive/d/temp
> Password:
> @ERROR: auth failed on module share_rsync
> rsync error: error starting client-server protocol (code 5) at main.c
> (1296) [receiver]
> "
> When prompted I typed "test" like it is configured in the file.
> I don't understand why it doesn't work.
>
> I did some research on the net, and I found that in the rsyncd.conf
> file, some use "secret file" and other "secrets file". I tested both
> of them but it still doesn't work.
>
> Of course, when I comment the lines "auth users" and "secret file" it
> works, but anyone can write on it!
>
> And another problem with SSH, but the same nature (authentification):
> My ssh server is perfectly runing on my server and *I can log on it
> with "login" and "password".
> I tried to use rsync over SSH to secure the transfer.
> I had this :
> "
> rsync -avnz -e "ssh -l login" --stats --progress test1@
> 192.168.0.4::share_rsync/ /cygdrive/d/temp
> login@192.168.0.4's password:
> @ERROR: chroot failed
> rsync error: error starting client-server protocol (code 5) at main.c
> (1296) [receiver]
> "
> what's this chroot failed error? I thought the "use chroot" option was
> true by default.
>
> Thank you.
>
sorry, the SSH tunel is working correctly, it's a problem with rsync
configuration.
There's something strange, because when I do:
"
rsync -avz --stats --progress 192.168.0.4::share_rsync/ /cygd
rive/d/temp/
"
it works, but if I do:
"
rsync -avz -e "ssh -l login" --stats --progress 192.168.0.4::share_rsync/
/cygd
rive/d/temp/
"
it doesn't and says the same chroot error !
--
Suresh Le Rochus
|