#记一次rsync出现的错误(网上基本都是说权限问题)

#这并不是权限的问题,应为实际的文件已经传过去了,但是rsync就是会报这个错误,(虽然使用是正常的,但是看着就是不爽)

[root@localhost ]# rsync -avz  /etc/hosts    vuser@10.0.0.8::test  --password-file=/etc/rsync.password
sending incremental file list
hosts
rsync: chgrp "/.hosts.NBCxBB" (in test) failed: Operation not permitted (1) sent 85 bytes received 133 bytes 436.00 bytes/sec
total size is 257 speedup is 1.18
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

  

解决方案

在rsyncd.conf配置文件中加上fake super = yes(旧版本不需要,新版本需要)

[root@localhost ~]# head    /etc/rsyncd.conf
uid=www
gid=www
use chroot = yes
incoming chmod = Du=rwx,Dg=rwx,Do=rx,Fu=rwx,Fg=rwx,Fo=r
port 873
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
fake super = yes #添加这行

  

最新文章

  1. ReactiveCocoa源码拆分解析(六)
  2. Mysql备份还原数据库之mysqldump实例及参数详细说明
  3. div被object覆盖的解决办法
  4. Head First Design Patterns学习笔记-观察者模式
  5. jQuery 遍历 json 方法大全
  6. 表现层及ASP.NET MVC介绍(二)
  7. js操作
  8. 0517JS综合练习、挂事件练习
  9. 【原创】大叔问题定位分享(30)mesos agent启动失败:Failed to perform recovery: Incompatible agent info detected
  10. pyhton图片合成模块-PIL
  11. OpenCV 入门
  12. Angular4学习笔记(四)- 依赖注入
  13. 浅copy与深copy举例
  14. 23种设计模式之原型模式(Prototype)
  15. Alpha版本项目展示要求(加入模板)
  16. 1073: 动物简介(animal)
  17. 【TCP/IP详解 卷一:协议】第一章概论 学习笔记
  18. Simple drag and drop
  19. 使用Unity创建塔防游戏(Part3)—— 项目总结
  20. CSS文本溢出处理

热门文章

  1. 转://云和恩墨的两道Oracle面试题
  2. icon图标库记录
  3. Django 分页器
  4. 获取数值型数组中大于60的元素个数,给数值型数组中不足60分的加20分。(数组,for循环,if条件判断语句)
  5. 用for循环打印九九乘法表(for嵌套循环)
  6. 关于NOIP2018复赛若干巧合的声明
  7. c#简单的io
  8. 【原创】一个线程oom,进程里其他线程还能运行吗?
  9. Winform开发框架中的综合案例Demo
  10. Apache Commons Codec的Base64加解密库