输入 /etc/rc.d/init.d/sshd start 启动sshd服务,报如下错误:

/var/empty must be owned by root and not group or world-writable.

这是权限问题,可以这样解决:

chown -R root.root /var/empty/sshd

chmod 744 /var/empty/sshd

/etc/rc.d/init.d/sshd start

如果/var/empty/下没有sshd 可以手动创建:mkdir sshd,如果/var/empty的用户组不是root,需要手动修改:chown root.root /var/empty

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-10-02
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2022-01-07
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案