Hi,
I'm trying to use the rsync method for updating/synchronizing my webserver.
The webserver (unix) is located outside our firewall. Inside we have a NT
machine with the (source)design of the webpages.
I want them pages updated every day at nighttime by a scheduled job.
I could use winsched for it I guess. It's nessesary to use sort of password
protection, so I used the option --password-file=<filename>.
Anyway, no matter what I do, it won't upload them files. (download is no
problem)
NT says that the passwordfile I use should not be world accessable.
I created therefor a specific user with no other (group) rights other than it's
own.
Still the password mechanism doesn't work.
When I type in the password when it asks for it, it accepts the phrase I type
in.
However the rights are right, it comes up with write permission errors.
I'll show you my configfiles and hope you can recognize faults in it.
Maybe you can give me some advise.
==========================================================
C:\rsync>ls -al
drw-rw-rw-- 0 Tue Jul 11 13:13:56 2000 .
drw-rw-rw-- 0 Tue Jul 11 13:13:56 2000 ..
-rw-rw-rw-a 456192 Tue Jul 11 12:14:44 2000 cygwin1.dll
-rw-rw-rw-a 95 Tue Jul 11 13:21:04 2000 download.bat
-rw-rw-rw-a 8 Tue Jul 11 11:48:16 2000 f
-rw-rw-rw-a 485505 Tue Jul 11 11:43:12 2000 rsync.exe
-rw-rw-rw-a 51 Tue Jul 11 15:29:52 2000 upload.bat
C:\rsync>type f
passwd1
C:\rsync>type upload.bat
rsync -avr --password-file=f /temp/rsync/ user1@machine1::module1
C:\rsync>dir \temp\rsync
Volume in drive C has no label.
Volume Serial Number is 3885-5EC7
Directory of C:\temp\rsync
11-07-00 11:02 <DIR> .
11-07-00 11:02 <DIR> ..
11-07-00 11:02 8 prutje3
3 File(s) 8 bytes
1.870.495.744 bytes free
C:\rsync>upload
C:\rsync>rsync -avr --password-file=f /temp/rsync/ user1@machine1::module1
password file must not be other-accessible
continuing without password file
Password:
building file list ... done
/
prutje3
cannot create .prutje3.0mAD3a : Permission denied
wrote 206 bytes read 93 bytes 8.19 bytes/sec
total size is 8 speedup is 0.30
/
===========================================================
# cd /usr/local/etc
# ls -al
total 82
drwxr-xr-x 2 root root 512 Jun 28 17:36 .
drwxr-xr-x 15 root other 512 May 31 09:05 ..
-r-------- 1 root other 28 Jul 10 16:12 rsync.secrets
-rw-r--r-- 1 root other 658 Jul 11 13:11 rsyncd.conf
# cat rsync.secrets
user1:passwd1
# cat rsyncd.conf
#
# rsyncd.conf
#
# ---- General settings and defaults for modules
secrets file = /usr/local/etc/rsync.secrets
read only = false
log file = /var/log/rsyncd.log
transfer logging = true
strict modes = true
timeout = 300
max connections = 1
# list = false
hosts allow = 131.224.2.0/24 131.224.100.0/250
auth users = .
lock file = /tmp/rsyncd.lock
# ---- Modules
[module1]
comment = www.web.nl
path = /data/www/www.web/rsync/docs/
auth users = user1
hosts allow = mylocal.host.nl
# ls -al /data/www/www.web/rsync/docs/
total 6
drwxr-xr-x 2 admweb wwwweb 512 Jul 11 13:25 .
drwxr-xr-x 3 admweb wwwweb 512 Jul 10 15:45 ..
-rw-r--r-- 1 root other 8 Jul 11 11:02 prutje4
#
===========================================================
Thanks in advance for your possible answers.
Kind regards,
Frits VandenHeuvel