Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

[pub]
    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.

share|improve this question
    
@Janne is correct this is a permission issue, the user nobody doesn't have read permission to the test directory. –  Iain Jan 27 at 8:19

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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