rsync报错rsync: failed to set times on "." (in backup): Permission denied (13)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rsync报错rsync: failed to set times on "." (in backup): Permission denied (13)相关的知识,希望对你有一定的参考价值。
实际运用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报错@ERROR: auth failed on module XX
rsync报错:rsync: chgrp ".hejian.txt.D1juHb" (in backup) failed: Operation not permitted
rsync服务端启动报错rsync: link_stat "/etc/rc.d/init.d/–daemon" failed: No such file or directory
rsync auth failed on module xxx
使用 rsync 出错:rsync: chgrp "XXXX" failed: Operation not permitted