【问题标题】:rsync hosts file - permission deniedrsync 主机文件 - 权限被拒绝
【发布时间】:2015-01-04 01:02:46
【问题描述】:

我想将一台服务器的主机文件与其他几台服务器同步。我对其他文件没有任何问题。 只有主机文件不起作用。错误信息也很奇怪:

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

【问题讨论】:

    标签: linux permissions rsync host


    【解决方案1】:

    我自己解决了这个问题。 我是 hosts 文件的所有者,但不是 /etc/ 文件夹的所有者。改变这个解决了我的问题

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-05-31
      • 1970-01-01
      • 2013-06-30
      • 2012-06-17
      • 1970-01-01
      • 2011-11-10
      • 2012-11-24
      • 2016-07-29
      相关资源
      最近更新 更多