Hi all,
I hope someone can shed some light on what I am doing. I am wondering if I just have things back to front.
Server (MESH):
Fedora 13
Firewall ports open tcp 22(ssh), tcp 873(rsync)
sshd service started
Client (RADIUS):
Fedora 13
Firewall ports open tcp 22(ssh)
sshd service started
Step 1.
Create network eg hardware, network address etc
Step 2.
Test network
ping client to server
Quote:
[mengoshmink@RADIUS ~]$ ping -c 3 mesh
PING mesh.config (192.168.1.72) 56(84) bytes of data.
64 bytes from mesh.config (192.168.1.72): icmp_seq=1 ttl=64 time=0.392 ms
64 bytes from mesh.config (192.168.1.72): icmp_seq=2 ttl=64 time=0.289 ms
64 bytes from mesh.config (192.168.1.72): icmp_seq=3 ttl=64 time=0.282 ms
--- mesh.config ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.282/0.321/0.392/0.050 ms
[mengoshmink@RADIUS ~]$
|
ping server to client
Quote:
[mengoshmink@MESH ~]$ ping -c 3 radius
PING radius.config (192.168.1.69) 56(84) bytes of data.
64 bytes from radius.config (192.168.1.69): icmp_seq=1 ttl=64 time=0.303 ms
64 bytes from radius.config (192.168.1.69): icmp_seq=2 ttl=64 time=0.316 ms
64 bytes from radius.config (192.168.1.69): icmp_seq=3 ttl=64 time=0.292 ms
--- radius.config ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.292/0.303/0.316/0.022 ms
[mengoshmink@MESH ~]$
|
Step 3.
Create a folder and files on the server and client for test purposes
Client
Quote:
[mengoshmink@RADIUS ~]$ ls -l /tmp/test/
total 0
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 00:40 testRADIUS
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 09:34 testRADIUS-1
[mengoshmink@RADIUS ~]$
|
Server
Quote:
[mengoshmink@MESH ~]$ ls -l /tmp/test/
total 0
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 07:54 testMESH
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 07:54 testMESH-2
[mengoshmink@MESH ~]$
|
Step 4.
Create server-side config file
Quote:
|
[root@MESH mengoshmink]# nano /etc/rsyncd.conf
|
Code:
#motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[testpath]
path = /tmp/test
comment = Test comment
uid = nobody
gid = nobody
read only = no
list = yes
auth users = mengoshmink
secrets file = /etc/rsyncd.scrt
Step 5.
Create server-side secrets file and set access to it
Quote:
|
[root@MESH mengoshmink]# nano /etc/rsyncd.scrt
|
Quote:
|
[root@MESH mengoshmink]# chmod 600 /etc/rsyncd.scrt
|
Step 6.
Start rsync daemon on the server
Quote:
[root@MESH mengoshmink]# rsync --daemon
[root@MESH mengoshmink]#
|
Step 7.
View file list on the server, remotely
Quote:
[mengoshmink@RADIUS ~]$ rsync rsync://mesh/testpath/
Password:
drwxrwxr-x 4096 2010/06/29 09:17:24 .
-rw-rw-r-- 0 2010/06/29 07:54:04 testMESH
-rw-rw-r-- 0 2010/06/29 07:54:14 testMESH-2
[mengoshmink@RADIUS ~]$
|
Step 8.
Transfer files
from the server
Quote:
[mengoshmink@RADIUS ~]$ rsync -rv rsync://mesh/testpath/ /tmp/test/
Password:
receiving incremental file list
testMESH
testMESH-2
sent 103 bytes received 203 bytes 122.40 bytes/sec
total size is 0 speedup is 0.00
|
Quote:
[mengoshmink@RADIUS ~]$ ls -l /tmp/test/
total 0
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 09:54 testMESH
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 09:54 testMESH-2
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 00:40 testRADIUS
-rw-rw-r--. 1 mengoshmink mengoshmink 0 Jun 29 09:34 testRADIUS-1
[mengoshmink@RADIUS ~]$
|
All looks good so far
Now for the problem
Transfer files
to the server
Quote:
[mengoshmink@RADIUS ~]$ rsync -rv /tmp/test/ rsync://mesh/testpath/
Password:
sending incremental file list
testMESH
testMESH-2
testRADIUS
testRADIUS-1
rsync: mkstemp "/.testMESH.rc5Wzb" (in testpath) failed: Permission denied (13)
rsync: mkstemp "/.testMESH-2.s3IIJU" (in testpath) failed: Permission denied (13)
rsync: mkstemp "/.testRADIUS.qlYvTD" (in testpath) failed: Permission denied (13)
rsync: mkstemp "/.testRADIUS-1.qM9j3m" (in testpath) failed: Permission denied (13)
sent 229 bytes received 84 bytes 69.56 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1042) [sender=3.0.7]
[mengoshmink@RADIUS ~]$
|
FYI
I have not written it here but I can successfully transfer files by ssh / scp.
Any comments or suggestions welcome.
Thank you in advance.