[rsync][cwRsync]@ERROR: invalid uid administrator錯誤

來源:互聯網
上載者:User

如題所描述的錯誤,在用戶端執行 rsync同步的時候同樣會提示一個沒見到過的錯誤,但是根據報錯資訊和互連網搜尋,可以得到大致是解決的方案,我匯總一下,如下所展示,如果您遇到了類似的問題,希望能夠這樣解決:

1.首先去伺服器端的cwRsync上面檢查安裝目錄下是否有

rsyncd.conf

這個檔案,這個檔案是進行配置reync服務端的設定檔,裡面的預設內容為:

use chroot = falsestrict modes = falsehosts allow = *log file = rsyncd.log    # Module definitions# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work#[test]path = /cygdrive/c/workread only = falsetransfer logging = yes

本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/Servers/zs/

這樣的資訊可能不能夠完成我們的初始化需要,因此需要在這個基礎上進行一下改造:

use chroot = falsestrict modes = falsehosts allow = *log file = rsyncd.logpid file = rsyncd.piduid = 0gid = 0    # Module definitions# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work#[backup]comment = OurFuturepath = /cygdrive/e/backupread only = notransfer logging = yessecrets 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.