Rsync server is not working

I installed rsync server -> /etc/rsyncd.conf

max connection = 5 log file = /var/log/rsync.log [web] path = /srv/www/html read only = false list = yes hosts allow = 127.0.0.1 uid = nobody gid = nobody [ root@localhost www]# ls -l /srv/www/html/ -rwxrwxrwx. 1 amit amit 8 Apr 28 10:37 index.html 

if i do

 $rsync 127.0.0.1:: $web 

that is, it displays the module name correctly but if I do

 $rsync 127.0.0.1::web @ERROR: chroot failed rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6] 

I do not know why? I test rsync work first on localhost as it failed rsync remotely

+4
source share
1 answer

Solution: In /etc/rsyncd.conf on the server add

 use chroot = false 

I do not know why its default. Got a good luck solution when viewing rsync documentation. Hope this saves time for others.
Greetings

+13
source

All Articles