在排除rsync服务器和客户端故障时遇到问题。
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]
我的/etc/rsyncd.conf如下。
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
我有chmod 600的/etc/rsyncd.conf和/etc/rsyncd.secrets寻求build议。
我想对/home/backup或/home的权限对nobody uid / gid来说太严格了。 请检查这些。 如果一些较早的path阻止访问,那么轻松访问/home/backup/test是不够的。