rsync 权限失败无法打开目录

rsync 权限失败无法打开目录

我在对 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

我对 /etc/rsyncd.conf 和 /etc/rsyncd.secrets 都进行了 chmod 600,寻求建议。

答案1

/home/backup我猜想或 的权限/home对于 uid/gid 来说太严格了。请检查这些权限。如果某个较早的路径阻止访问,nobody那么放宽访问是不够的。/home/backup/test

相关内容