在机器上直接登录
![](/icons/72238dou.gif)
/var/empty/sshd must be owned by root and not group or world-writable.
问题:
Linux上
![](/icons/72238de.gif)
报告/var/empty/sshd must be owned by root and not group or world-writable.
解决办法:
首先通过物理终端进入到linux上
![](/icons/72238dou.gif)
-bash-2.05b# /etc/init.d/sshd status
sshd is stopped
手工启动服务
![](/icons/72238dou.gif)
![](/icons/72238cuowu.gif)
![](/icons/72238dou2.gif)
-bash-2.05b# /etc/init.d/sshd start
Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.
[FAILED]
-bash-2.05b#
使用rpm -V 命令可检查到ssh
![](/icons/72238de.gif)
![](/icons/72238dou.gif)
![](/icons/72238de.gif)
![](/icons/72238cuowu.gif)
![](/icons/72238dou2.gif)
-bash-2.05b# rpm -V openssh-server
S.5..... c /etc/ssh/sshd_config
.....U.. /var/empty/sshd
-bash-2.05b#
经查看发现这个目录
![](/icons/72238de.gif)
![](/icons/72238dou.gif)
-bash-2.05b# ls -ld /var/empty/sshd/
d--x--x--x 2 vu00106 root 1024 Feb 2 2005 /var/empty/sshd/
-bash-2.05b#
修改为root属主
![](/icons/72238dou.gif)
-bash-2.05b# chown root /var/empty/sshd/
-bash-2.05b# /etc/init.d/sshd start
Starting sshd: [ OK ]
-bash-2.05b#
至此问题修复
![](/icons/72238dou2.gif)
另外
![](/icons/72238dou.gif)
这个是权限
![](/icons/72238de.gif)
可采取以下两步解决
chown -R root.root /var/empty/sshd
chmod 744 /var/empty/sshd
service sshd restart
就可以解决上述
![](/icons/72238de.gif)
![](/icons/72238dou2.gif)
最新评论