Thursday, December 29, 2005

Unix: Rsync password authentication

1) create configre file /usr/local/etc/rsyncd.conf
chmod 640 rsyncd.conf

uid = rsync
gid = rsync
use chroot = no
max connections = 4
syslog facility = local5
pid file = /var/run/rsyncd.pid

[www]
path = /usr/local/websites/
comment = all of the websites

2) create user/group as rsync/rsync

3) run rsyncd as "rsync --daemon"

4) create /usr/local/etc/rsyncd.conf (use mode 640)
auth users = tridge, susan
secrets file = /usr/local/etc/rsyncd.secrets

5) create /usr/local/etc/rsyncd.secrets (chmod 640)
tridge:mypass
susan:herpass

6) rsync -avz susan@ducky::www /home/dan/test

7) add option "--password-file /home/dan/test/rsync.password"
add password in /home/dan/test/rsync.password

0 Comments:

Post a Comment

<< Home