Google

Installare un server Rsync in debian

Written on:settembre 17, 2011
Comments
Add One

Per prima cosa installiamo i pacchetti necessari

apt-get install rsync openbsd-inetd

Poi creiamo il file /etc/rsyncd.conf (in questo esempio andremo a sincronizzare l cartella /home/prova per l’utente pippo)

max connections = 10
log file = /var/log/rsync.log
timeout = 300
pid file=/var/run/rsyncd.pid

[prova]
comment = Rsync prova
path = /home/prova
read only = no
list = yes
uid = pippo
gid = root
auth users=pippo
list = yes
hosts allow = x.x.x.x
secrets file = /etc/rsyncd.secrets

Poi andiamo a creare il file /etc/rsyncd.secret dove al suo interno mettere le  credenziali di accesso nel seguente formato

pippo:password_utente_pippo

ricordiamo di dare il corretto permesso al file

chmod 600 /etc/rsyncd.secret

Poi andiamo a modificare il file /etc/inetd.conf inserendo la seguente riga

rsync stream tcp nowait root /usr/bin/rsync rsync –daemon

Riavviamo inetd

/etc/init.d/openbsd-inetd restart

il gioco è fatto !

 

Condividi su

googlebuzz Installare un server Rsync in debian
googleplus Installare un server Rsync in debian

Leave a Comment

L'indirizzo email non verrà pubblicato. I campi obbligatori sono contrassegnati *

*

È possibile utilizzare questi tag ed attributi XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Web Statistics