码迷,mamicode.com
首页 > 其他好文 > 详细

rsync报错rsync: failed to set times on "." (in backup): Permission denied (13)

时间:2016-08-31 12:13:15      阅读:1263      评论:0      收藏:0      [点我收藏+]

标签:rsync

实际运用rsync练习中遇到rsync报错信息如:

rsync: failed to set times on "." (in backup): Permission denied (13)
rsync: recv_generator: failed to stat "ccc" (in backup): Permission denied (13)

翻译可知:更新.文件的时间失败:原因是权限不够。

此问题为权限问题,在文件权限无误:

技术分享

参考文献,克制此处为selinux权限限制,临时更改为setenforce 0,永久更改为修改/etc/sysconfig/selinux,将SELINUX=enforcing修改为SELINUX=diabled或者SELINUX=permissive

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

重新同步,成功:

技术分享

rsync报错rsync: failed to set times on "." (in backup): Permission denied (13)

标签:rsync

原文地址:http://9598767.blog.51cto.com/9588767/1844669

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!