我想将一台服务器的主机文件与其他几台服务器同步。我在监视其他文件时没有遇到任何问题。 只有主机文件不起作用。错误消息也很奇怪:
rsync: mkstemp "/etc/.hosts.NOmAJ8" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
我使用的命令是
rsync -a /etc/hosts user@host:/etc/hosts
最佳答案
我自己解决了这个问题。 我是主机文件的所有者,但不是/etc/文件夹的所有者。改变这个解决了我的问题
关于linux - rsync 主机文件 - 权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26797835/