小知识:cwrsync invalid uid nobody 解决方法

使用rsync/cwrsync工具进行档案同步的时候出现了下面的错误:

?
1
2
3
C:Program FilescwRsyncbin>rsync.exe -av rsync://192.168.0.211:52326/test /cygdrive/e/www.01314.cn/rsync 
@ERROR: invalid uid nobody 
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]

解决办法:在rsyncd.conf文件中添加下面两行即可解决问题

uid = 0

gid = 0

完整rsyncd.conf文件
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
uid = 0
gid = 0
use chroot = false
strict modes = false
hosts allow = * 
log file = rsyncd.log 
pid file = rsyncd.pid 
port = 52326 
max connections = 4
# Module definitions 
# Remember cygwin naming conventions : c:work becomes /cygwin/c/work 
[test] 
path = /cygdrive/e/rsync/res 
read only = yes
transfer logging = yes
lock file = rsyncd.lock 
secrets file = /etc/rsyncd.pass

cwRsync客户端密码文件的权限配置和invalid uid nobody疑难

cwRsync客户端密码文件的权限配置处置办法。

  windows 在 cygwin 下运用 chmod

  创立文件后,把权限改为600

  chmod 600 /rsyncd.passwd

  invalid uid nobody处置办法。

  修正配置文件:rsyncd.conf

  在文件开头添加

  uid = 0

  gid = 0
声明: 猿站网有关资源均来自网络搜集与网友提供,任何涉及商业盈利目的的均不得使用,否则产生的一切后果将由您自己承担! 本平台资源仅供个人学习交流、测试使用 所有内容请在下载后24小时内删除,制止非法恶意传播,不对任何下载或转载者造成的危害负任何法律责任!也请大家支持、购置正版! 。本站一律禁止以任何方式发布或转载任何违法的相关信息访客发现请向站长举报,会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。本网站的资源部分来源于网络,如有侵权烦请发送邮件至:2697268773@qq.com进行处理。
建站知识

小知识:如何使用 Rails 和七牛云存储,在 15 分钟内打造一个图片分享社交应用原型

2023-4-26 13:01:10

建站知识

小知识:RSync实现文件备份同步详解

2023-4-26 13:15:39

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索