首页 > 代码库 > rsync报错rsync: failed to set times on "." (in backup): Permission denied (13)
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)