David Dahl david at
Sun Oct 14 04:50:44 EST 2001

warning: rsync/sysadmin newbie question...

I want to sync the web directory from my production server to my 
backup server (through ssh).  rsync is working fine, except that it 
doesn't seem to authenticate my rsync user which is not a system 
user.  If  I run the command  manually, sshd asks for the far end 
user's password.  If I use that user's password, the files are 
rsynced to a direcory inside the user's home directory, (i.e.: 

Do I need to write a shell script that allows for sshd authentication 
and rsyncd authenication?  Does anyone have an example script that 
uses the same procedure?

here are my config files and command:


motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/
lock file = /var/run/rsync.lock
max connections = 2
path = /var/www/html
comment = path to HTDOCS dir
uid = nobody
gid = nobody
read only = no
list = yes
auth users = www
hosts allow =
secrets file = /etc/rsyncd.scrt



rsync command:

rsync --verbose  --progress --stats --compress --rsh=/usr/bin/ssh \
       --recursive --times --perms --links --delete \

thanks in advance!

David Dahl
-------------- next part --------------
HTML attachment scrubbed and removed

More information about the rsync mailing list