红联Linux门户
Linux帮助

提示rsync:mkstemp failed:Permission denied的解决

发布时间:2016-03-02 15:26:13来源:linux网站作者:classpath

错误提示:
[root@test181 ~]# rsync -azv bb.tar rsync_backup@10.0.0.182::ggp --password-file=/etc/rsync.password

sending incremental file list
bb.tar
rsync: mkstemp "/.bb.tar.CXMF7s" (in ggp) failed: Permission denied (13)


解决:
/etc/rsyncd.conf配置模板:

[root@test181 ~]# cat /etc/rsyncd.conf
uid = rsync
gid = rsync
max connections = 200
timeout = 300
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/ryncd.log
[ggp]
path = /ggp/
ingnore errors
read only = false
list = false
hosts allow = 10.0.0.0/24
hosts deny = 0.0.0.0/32
auth users = rsync_backup
secrets file = /etc/rsync.password


原因:/ggp的权限不正确。
[root@ggp ~]# chown -R rsync.rsync /ggp

再次执行成功。

[root@test181 ~]# rsync -azv bb.tar rsync_backup@10.0.0.182::ggp --password-file=/etc/rsync.password
sending incremental file list
bb.tar
sent 227 bytes  received 27 bytes  508.00 bytes/sec
total size is 10240  speedup is 40.31


本文永久更新地址:http://www.linuxdiyf.com/linux/18555.html