[問題] rsync 卡在密碼檔

看板Linux作者 (熊)時間13年前 (2012/04/10 09:52), 編輯推噓0(003)
留言3則, 1人參與, 最新討論串1/1
我下了這指令: /usr/bin/rsync -avz --delete --password-file=/etc/rsyncd.secrets /hom e/andy/tmp root@192.168.9.2::test 出現error message: @ERROR: auth failed on module test rsync error: error starting client-server protocol (code 5) at main.c(1518) 自行檢查: 1.到192.168.9.2電腦上檢查 /etc/rsyncd.conf 上面的 auth user 確定有加入root 2.檢查rsyncd.secrets檔案 確定權限為600 也確定內容為root的密碼 3.拿掉 password-file 測試 下指令 /usr/bin/rsync -avz --delete /home/andy/tmp root@192.168.9.64::test 手動key入正確密碼 能夠成功完成同步 手動key不正確密碼 又出現 @ERROR: auth failed on module test rsync error: error starting client-server protocol (code 5) at main.c(1518) 我有確定 /etc/rsyncd.secrets 的內容確實是跟我手動key的密碼相同!! 想請問該如何排解這個error? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.130.49.94

04/10 10:26, , 1F
找到問題點了 !! 雖然很瞎 但是還是分享一下
04/10 10:26, 1F

04/10 10:28, , 2F
在local的rsync.secret檔案中, 因為我有寫註解#..xxoo
04/10 10:28, 2F

04/10 10:28, , 3F
它抓密碼時 連註解也抓進去... 砍掉註解就沒問題了^^
04/10 10:28, 3F
文章代碼(AID): #1FWv9xSa (Linux)