/var/empty/ssdh must be owned by root and not group or world-writable
2017-03-30 15:14
423 查看
问题描述:
开发反馈在增加Oracle用户后,能PING通主机,Telnet不通对应端口。客户端截图如下:
问题分析:
可能多用户操作过程中或创建用户设置属组\属主权限的时权限操作失误等;
操作步骤:
1.查看SSH服务状态:
2.使用rpm -V 检查ssh的软件包状态,发现某个目录的属主错误。
正常环境下检查状态如下:
本环境下状态如下:
正常环境下检查状态如下:
本环境下状态如下:
4.修改/var/empty/sshd目录权限:
备注:部分情况下,可能是属组属主问题,可通过修改属组\属主解决问题。
开发反馈在增加Oracle用户后,能PING通主机,Telnet不通对应端口。客户端截图如下:
问题分析:
可能多用户操作过程中或创建用户设置属组\属主权限的时权限操作失误等;
操作步骤:
1.查看SSH服务状态:
[root@Centos67108 ~]# service sshd restart Stopping sshd: [FAILED] Starting sshd: /var/empty/ssdh must be owned by root and not group or world-writable. [FAILED] [root@Centos67108 ~]# /etc/init.d/sshd status Openssh-daemon is stopped注解:Restart服务,发现报告权限错误。
2.使用rpm -V 检查ssh的软件包状态,发现某个目录的属主错误。
正常环境下检查状态如下:
本环境下状态如下:
[root@Centos67108 ~]# rpm -V openssh-server S.5....T. c /etc/ssh/sshd_config .M....... /var/empty/sshd3.查看该目录属主权限,并与正常环境下目录做对比。
正常环境下检查状态如下:
本环境下状态如下:
[root@Centos67108 ~]# ls -ld /var/empty/sshd/ drwxrwxrwx. 2 root root 4096 Mar 22 2016 /var/empty/sshd/对比后分析可能是权限问题。
4.修改/var/empty/sshd目录权限:
[root@Centos67108 ~]# chmod 744 /var/empty/sshd [root@Centos67108 ~]# service sshd restart Stopping sshd: [ FAILED ] Starting sshd: [ OK ]
备注:部分情况下,可能是属组属主问题,可通过修改属组\属主解决问题。
[root@Centos67108 ~]# chown -R root.root /var/empty/sshd [root@Centos67108 ~]# chmod 744 /var/empty/sshd5. Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable. [FAILED] 问题解决。
相关文章推荐
- ssh服务启动失败 /var/empty must be owned by root and not group or world-writable.
- [原][问题解决] /var/empty/sshd must be owned by root and not group or world-writable
- Linux上的SSH无法启动,报告/var/empty/sshd must be owned by root and not group or world-writable
- /var/empty/sshd must be owned by root and not group or world-writable解决办法
- 启动 sshd:/var/empty/sshd must be owned by root and not group or world-writable
- Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.
- SSH无法启动,报告/var/empty/sshd must be owned by root and not group or world-writable
- 重启SSH报错 /var/empty/sshd must be owned by root and not group or world-writable.
- Error reading manifest file manifest.yml must be owned by the beat user (uid=0) or root
- tomcat 7 WARNING: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
- A context path must either be an empty string or start with a '/' and do not end with a '/' 问题解决方法
- 问题:sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
- [rsync][cwRsync]password file must be owned by root when running as root
- java.sql.SQLException: The SQL statement must not be null or empty.这个错误
- 新建了个用户 结果还sudo报错:sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
- Name for parameter binding must not be null or empty! On JDKs < 8, you need to use @Param for named
- windows下rsysnc提示password file must be owned by root when running as root的解决办法
- password file must be owned by root when running as root解决方法
- sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set的解决办法
- sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set