cat > /etc/rsyncd.conf <<EOF
use chroot = false
strict modes = false
[rsync_test]
path = /path/to/share
comment = Rsync test
read only = true
auth users = admin
secrets file = /etc/rsync.password
EOF
echo 'admin:password_2314' > /etc/rsync.password
chmod 600 /etc/rsync.password
rsync --config=/etc/rsyncd.conf --daemon