错误
Password:
sending incremental file list
rsync: failed to set times on "/." (in mod1): Operation not permitted (1)
./
111.txt
rsync: mkstemp "/.111.txt.dFliDp" (in mod1) failed: Permission denied (13)
sent 113 bytes received 195 bytes 88.00 bytes/sec
total size is 4 speedup is 0.01
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]
原因
/etc/rsync.conf 文件内,指定的uid 、 gid 有问题
在模块中,重新定义uid以及gid,问题解决
rsync在执行文件同步时遇到权限问题,具体表现为无法设置时间戳和创建临时文件。问题根源在于rsync配置文件(/etc/rsync.conf)中的uid和gid设置不正确。通过在模块中重新定义这些用户ID和组ID,可以成功解决这个问题。
2027

被折叠的 条评论
为什么被折叠?



