Alicia Martinez Puebla
2003-Nov-01 03:12 UTC
@ERROR: access denied / using rsync 2.5.6 over SSH on Solaris
Dear list members, this is very similar to a problem which has been discussed last summer on the list, but there was no final solution then (as far as I could follow the thread of messages). Would you please take a look at my problem, to see if I'm missing something? Here is the useful data: * Purpose: using rsync over SSH as a non-anonymous file server to transfer files between two machines. * Trial reduced to this minimum: alicia@aaa.bbb.ccc.ddd does rsync over SSH to start a daemon server owned by alicia ON THE SAME MACHINE, and copy alicia's files. * aaa.bbb.ccc.ddd runs Solaris 8 * 'alicia' is a common user (no root privileges; not so dummy as nobody) * rsync: version 2.5.6 downloaded in package format from www.sunfreeware.com (already compiled; any comments here?) * SSH version 3.2.0 * Our addresses are IPv4; all our DNS services are working properly. * rsyncd.conf at alicia's $HOME: [global] log file = /export/home/alicia/rsyncd.log [mymodule] comment = "some comment" path = /export/home/alicia lock file = /export/home/alicia/rsyncd.lock use chroot = no readonly = no hosts allow = aaa.bbb.ccc.ddd, mymachine.domain.subdomain.net * I get this failure: $ rsync myfile mymachine.domain.subdomain.net::mymodule -a --rsh="ssh -l alicia" -vvv opening connection using ssh -l alicia mymachine.domain.subdomain.net rsync --server --daemon . alicia's password: @ERROR: access denied to mymodule from unknown (0.0.0.0) rsync: connection unexpectedly closed (69 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(165) _exit_cleanup(code=12, file=io.c, line=165): about to call exit(12) $ $ more rsyncd.log (...) 2003/10/31 16:38:44 [22021] rsync: name lookup failed for 0.0.0.0: host/servname not known 2003/10/31 16:38:44 [22021] malformed address mymachine.domain.subdomain.net 2003/10/31 16:38:44 [22021] rsync denied on module mymodule from unknown (0.0.0.0) (...) * But... If I comment/delete the 'hosts allow' line in the conf file, I get rsync working: $ rsync dudua mymachine.domain.subdomain.net::mymodule -a --rsh="ssh -l alicia" -vvv opening connection using ssh -l alicia mymachine.domain.subdomain.net rsync --server --daemon . alicia's password: building file list ... make_file(4,dudua) expand file_list to 4000 bytes, did move done send_file_list done send_files starting send_files phase=1 send files finished total: matches=0 tag_hits=0 false_alarms=0 data=0 wrote 108 bytes read 40 bytes 26.91 bytes/sec total size is 47883 speedup is 323.53 _exit_cleanup(code=0, file=main.c, line=620): about to call exit(0) $ $ more rsyncd.log (...) 2003/10/31 16:19:41 [25358] rsync: name lookup failed for 0.0.0.0: host/servname not known 2003/10/31 16:19:41 [25358] rsync allowed access on module mymodule from UNKNOWN (0.0.0.0) 2003/10/31 16:19:41 [25358] rsync to mymodule from UNKNOWN (0.0.0.0) 2003/10/31 16:19:41 [25365] wrote 32 bytes read 108 bytes total size 47883 (...) I'd be most grateful if you could throw any light upon this matter. Thanks in advance, -- Alicia Martinez-Puebla e-mail: almartinez@ub.edu System Administrator Phone: (34) 93 402 1714 University of Barcelona (.es) Fax: (34) 93 402 1505