I would like to only allow /etc/named.conf
to be synced, so if I in etc/rsyncd.conf
do
[named]
path = /etc/named.conf
and then
# OPTS='-aHEXv --password-file=/etc/rsync.secrets'
# rsync $OPTS eeer@ns::named /etc
@ERROR: chroot failed
rsync error: error starting client-server protocol (code 5) at main.c(1648) [Receiver=3.1.2]
# rsync $OPTS eee@ns::named/named.conf /etc
@ERROR: chroot failed
rsync error: error starting client-server protocol (code 5) at main.c(1648) [Receiver=3.1.2]
The problem is I don't want to allow the client to have access to anything else than etc/rsyncd.conf
, so setting path = /etc
would not be a good solution.
Question
Does anyone know how to only allow one file to be rsync'ed?