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