Paswortübergabe bei rsync

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
Saxenpower

Paswortübergabe bei rsync

Beitrag von Saxenpower » 06.03.2007 10:00:44

Hallo,

ich habe Probleme beim EInrichten einer Datenspiegelung von Server Heidelberg auf Server Samba mit rsync. rsync soll die Daten von Server Heidelberg auf Server Samba schaufeln, damit sie hier gesichert werden können. Jetzt klappt das mit der Passwortübergabe nicht wie geplant.

Code: Alles auswählen

rsync -av --delete --password-file=/etc/rsync.secrets backup@207.7.125.50:/home/makler02 /backup/
und auf beiden Servern habe ich die Datei "rsync.secrets" wie folgt angelegt:

Code: Alles auswählen

backup:seCret$
und die Rechte 600 gegeben.
Auf dem entfernten Server Heidelberg läuft der rsyncd-Dämon mit folgender rsyncd.conf:

Code: Alles auswählen

# sample rsyncd.conf configuration file

# GLOBAL OPTIONS

#motd file=/etc/motd
log file=/var/log/rsyncd.log
# for pid file, do not use /var/run/rsync.pid if
# you are going to run rsync out of the init.d script.
pid file=/var/run/rsyncd.pid
#syslog facility=daemon
#socket options=
#auth users = root
#secrets file = /etc/rsyncd.secrets

gid = users
read only = true
use chroot = true
transfer logging = yes
hosts allow = 217.156.19.36/255.255.255.0

# MODULE OPTIONS
[gaspers]
    comment = /home/gaspers-Verzeichnis
    path = /home/gaspers
    read only = yes
    list = yes
    uid = nobody
    gid = nobody
    hosts allow = 217.156.19.36/255.255.255.0

[makler01]
    comment = /home/makler01-Verzeichnis
    path = /home/makler01
    read only = yes
    list = yes
    uid = nobody
    gid = nobody
    hosts allow = 217.156.19.36/255.255.255.0

[makler02]
    comment = /home/makler02-Verzeichnis
    path = /home/makler02
    read only = yes
    list = yes
    uid = nobody
    gid = nobody
    hosts allow = 217.156.19.36/255.255.255.0

[documents]
        comment = public archive
        path = /home/documents
        use chroot = yes
#       max connections=10
        lock file = /var/lock/rsyncd
# the default for read only is yes...
        read only = yes
        list = yes
        uid = nobody
        gid = nogroup
#       exclude =
#       exclude from =
#       include =
#       include from =
        auth users = root
        secrets file = /etc/rsyncd.secrets
        strict modes = yes
#       hosts allow =
#       hosts deny =
        ignore errors = no
        ignore nonreadable = yes
        transfer logging = no
#       log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes.
        timeout = 600
        refuse options = checksum dry-run
        dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz
Das ist allerdings für die Automatisierung mittel cron Unsinn, weil ich hier ja kein Passwort eingeben kann. Was muss ich also anders/richtig machen, dass der Prozess nicht nach der manuellen Passworteingabe fragt?

Grüsse

SaxenPower

Antworten