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

重新同步,成功:

时间: 2024-10-06 12:36:29

rsync报错rsync: failed to set times on "." (in backup): Permission denied (13)的相关文章

./configure报错mv: cannot move './confsjjYiM/out' to 'cmake/Makefile': Permission denied

权限不足而报错: mv: cannot move './confsjjYiM/out' to 'cmake/Makefile': Permission denied config.status: error: could not create cmake/Makefile [email protected]:/usr/local/proj-4.9.1$ make Making all in src make[1]: 正在进入目录 `/usr/local/proj-4.9.1/src' make[

Centos7 JDK安装过程中 解决java -version 报错: bash: /home/jdk1.8.0_161/bin/java: Permission denied

1.执行Linux命令 -----vim /etc/profile  编辑profile  文件,在里面添加: #set java enviroment JAVA_HOME=/opt/JavaHome/jdk1.8.0_171JRE_HOME=/opt/JavaHome/jdk1.8.0_171/jreCLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/libPATH=$PATH:$JAVA_HOME/bin

关于rsync报错的问题

现在这里总结一下,rsync报错常见的有2个原因: 1.密码文件权限没有改为600 2.server上密码文件为myuser:mypass,client端为mypass即可 3.关于共享路径,不要设错.

git push报错error: failed to push some refs to '[email protected]:

$ git push -u origin master To [email protected]:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:xxx/xxx.git' hint: Updates were rejected because the remote contains work that you do hint:

在CentOS中安装32位或64位MySql报错error: Failed dependencies解决办法

在CentOS中安装MySql报错error: Failed dependencies解决办法 安装64位MySql报错内容如下:error: Failed dependencies:        libaio.so.1()(64bit) is needed by MySQL-server-5.6.19-1.el6.x86_64    libaio.so.1(LIBAIO_0.1)(64bit) is needed by MySQL-server-5.6.19-1.el6.x86_64    

VM虚拟机启动报错Reason Failed to lock the file怎么办

VMware启动报错Reason: Failed to lock the file的解决方法 症状:  启动VMware虚拟机的时候出现了Cannot open the disk '*.vmdk' or one of the snapshot disks it depends on.Reason: Failed to lock the file.的错误. 解决办法一: 1.在VMware该虚拟机路径下的所有.lck文件和文件夹下删除或迁移至其它目录,一般就可以解决了. 2.如果再次启动VMwar

svn报错cleanup failed–previous operation has not finished; run cleanup if it was interrupted的解决办法

今天在svn提交的时候它卡顿了一下,我以为已经提交完了,就按了一下,结果就再也恢复不了,也继续不了了... 报错 cleanup failed–previous operation has not finished; run cleanup if it was interrupted 试过执行cleanup,结果也是失败,要更新先要cleanup,但是cleanup的失败信息又叫我cleanup……这是一个死循环! 感觉这是一个设计上的缺陷:使用工作队列来保存数据,后一个操作依赖于前一个操作的结

Android Studio报错:Failed to complete Gradle execution.

解决Android Studio报错:Failed to complete Gradle execution. 运行Android Studio的时候,出现以下错误: 原因:用于启动虚拟机的内存不够,android studio的默认最大内存是10g,所以对于4g.8g内存的电脑来说,内存不够用,不过为什么有时不会出问题有时会,可能是google优化不好吧,但这又有个问题,把参数改为1g.2g都不行,一定要更小才行,只能说明Android studio确实有bug. 解决方法 1: 解决方法 2

解决Eclipse启动报错【Failed to create the Java Virtual Machine】

电脑:2G内存,WIN7 32位. 启动adt-bundle-windows-x86-20140702\eclipse\eclipse.exe时,报错[Failed to create the Java Virtual Machine].点确定后,Eclipse自动关闭 解决方法如下: 修改Eclipse目录下的配置文件[eclipse.iniadt-bundle-windows-x86-20140702\eclipse\eclipse.ini] 将下面两个值改为原来的0.5倍,然后保存,重新启