rsync: chgrp "/.hosts.NBCxBB" (in test) failed: Operation not permitted (1)
阿新 • • 發佈:2019-01-14
#記一次rsync出現的錯誤(網上基本都是說許可權問題)
#這並不是許可權的問題,應為實際的檔案已經傳過去了,但是rsync就是會報這個錯誤,(雖然使用是正常的,但是看著就是不爽)
[[email protected] ]# rsync -avz /etc/hosts [email protected]::test --password-file=/etc/rsync.password sending incremental file list hosts rsync: chgrp "/.hosts.NBCxBB" (in test) failed: Operation not permitted (1) sent 85 bytes received 133 bytes 436.00 bytes/sec total size is 257 speedup is 1.18 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
解決方案
在rsyncd.conf配置檔案中加上fake super = yes(舊版本不需要,新版本需要)
[[email protected] ~]# head /etc/rsyncd.conf uid=www gid=www use chroot = yes incoming chmod = Du=rwx,Dg=rwx,Do=rx,Fu=rwx,Fg=rwx,Fo=r port 873 log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid fake super = yes