zoukankan      html  css  js  c++  java
  • [rsync][cwRsync]@ERROR: invalid uid administrator

    如题所描述的错误,在客户端执行 rsync同步的时候同样会提示一个没见到过的错误,但是根据报错信息和互联网搜索,可以得到大致是解决的方案,我汇总一下,如下所展示,如果您遇到了类似的问题,希望能够这样解决:

    1.首先去服务器端的cwRsync上面检查安装目录下是否有

    rsyncd.conf

    这个文件,这个文件是进行配置reync服务端的配置文件,里面的默认内容为:

     1 use chroot = false
     2 strict modes = false
     3 hosts allow = *
     4 log file = rsyncd.log
     5 
     6 # Module definitions
     7 # Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
     8 #
     9 [test]
    10 path = /cygdrive/c/work
    11 read only = false
    12 transfer logging = yes

    这样的信息可能不能够完成我们的初始化需要,因此需要在这个基础上进行一下改造:

     1 use chroot = false
     2 strict modes = false
     3 hosts allow = *
     4 log file = rsyncd.log
     5 pid file = rsyncd.pid
     6 uid = 0
     7 gid = 0
     8 
     9 # Module definitions
    10 # Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
    11 #
    12 [backup]
    13 comment = OurFuture
    14 path = /cygdrive/e/backup
    15 read only = no
    16 transfer logging = yes
    17 secrets file = /cygdrive/e/rsync.pass

    对于本问题,我所做的修改主要是第六行,第七行,这样的操作时允许所有的用户与组参与同步。

    2.如果这样操作还是没用,而转换成了另一种错误提示

    @ERROR: invalid gid nobody

    那请参考上一篇日志,解决一下密码文件的权限问题,就可以了。

    3.同时如果遇到这个问题

    sending incremental file list
    ERROR: module is read only
    rsync: read error: Software caused connection abort (113)
    rsync error: error in rsync protocol data stream (code 12) at io.c(769) [sender=3.0.7]

    请尝试修改上述原始配置文件中的第十一行,使其保持False或者0的参数。

    4.处理好的同步语句,在客户端上执行后的样子:

    rsync -av /cygdrive/e/test/ administrator@10.5.83.25::backup

    sending incremental file list
    ./
    新建 RTF 文档 (2).rtf
    新建 RTF 文档.rtf
    新建压缩(zipped)文件夹.zip

    sent 276 bytes received 74 bytes 700.00 bytes/sec
    total size is 36 speedup is 0.10

    -=EOB=-

  • 相关阅读:
    TeX系列: tikz-3dplot绘图宏包
    TeX系列: MATLAB和LaTeX结合绘图
    Tex系列: pgfplots安装
    C 标准库
    C 标准库
    C 标准库
    C 标准库
    C 标准库
    C 标准库
    C 标准库
  • 原文地址:https://www.cnblogs.com/mannyzhoug/p/3092339.html
Copyright © 2011-2022 走看看