i encounter a problem when troubleshooting rsync server and client.

rsync: opendir "/." (in pub) failed: Permission denied (13)
drwxr-xr-x        4096 2014/01/27 12:02:24 .
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1536) [generator=3.0.9]

My /etc/rsyncd.conf is as below.

max connections = 2
log file = /var/log/rsync.log
timeout = 300

    comment = random thing available for download
    path = /home/backup/test
    read only = yes
    list = yes
    uid = nobody
    gid = nobody
    auth users = admin
    secrets file = /etc/rsyncd.secrets

I have chmod 600 for both /etc/rsyncd.conf and /etc/rsyncd.secrets seeking for advice.

  • @Janne is correct this is a permission issue, the user nobody doesn't have read permission to the test directory. – user9517 Jan 27 '14 at 8:19

I guess the permissions for /home/backup or /home are too restrictive for nobody uid/gid. Please check those, too. It's not enough to have relaxed access to /home/backup/test if some earlier path prevents the access.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.