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

问题描述:

开发反馈在增加Oracle用户后,能PING通主机,Telnet不通对应端口。客户端截图如下:

问题分析:

可能多用户操作过程中或创建用户设置属组\属主权限的时权限操作失误等;

操作步骤:

1.查看SSH服务状态:

[[email protected] ~]# service sshd restart
Stopping sshd:                 [FAILED]
Starting sshd: /var/empty/ssdh must be owned by root and not group or world-writable. [FAILED]
[[email protected] ~]# /etc/init.d/sshd status
Openssh-daemon is stopped

注解:Restart服务,发现报告权限错误。

2.使用rpm -V 检查ssh的软件包状态,发现某个目录的属主错误。

正常环境下检查状态如下:

本环境下状态如下:

[[email protected] ~]# rpm -V openssh-server
S.5....T. c  /etc/ssh/sshd_config
.M.......   /var/empty/sshd

3.查看该目录属主权限,并与正常环境下目录做对比。

正常环境下检查状态如下:

本环境下状态如下:

[[email protected] ~]# ls -ld /var/empty/sshd/
drwxrwxrwx. 2 root root 4096 Mar 22 2016 /var/empty/sshd/

对比后分析可能是权限问题。

4.修改/var/empty/sshd目录权限:

[[email protected] ~]# chmod 744 /var/empty/sshd
[[email protected] ~]# service sshd restart
Stopping sshd: [ FAILED ]
Starting sshd:   [     OK    ]

备注:部分情况下,可能是属组属主问题,可通过修改属组\属主解决问题。

[[email protected] ~]# chown -R root.root /var/empty/sshd
[[email protected] ~]# chmod 744 /var/empty/sshd

5. Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable. [FAILED] 问题解决。

时间: 2024-08-09 10:41:37

/var/empty/ssdh must be owned by root and not group or world-writable的相关文章

Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim is not owned by root.

sudo chown -R root /Applications/Xcode6.1.1.app/ 这里把这个 /Applications/Xcode6.1.1.app/替换成你xocde据在的位置

linux查看与开启sshd服务

1.首先通过物理终端进入到linux上,手工检查ssh发现没运行/etc/init.d/sshd statussshd is stopped 手工启动服务,发现报告权限错误./etc/init.d/sshd start Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.[FAILED] 使用rpm -V 命令可检查到ssh的软件包正常,但某个目录的属主错误.rpm -V open

Linux ssh key 失效

处理/etc/ssh/ssh_host_rsa_key 失效问题处理/etc/ssh/ssh_host_rsa_key 失效问题@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@        WARNING: UNPROTECTED PRIVATE KEY FILE!          @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Permission

linux查看与开启ssh

首先通过物理终端进入到linux上,手工检查ssh发现没运行/etc/init.d/sshd statussshd is stopped手工启动服务,发现报告权限错误./etc/init.d/sshd start Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable.[FAILED]使用rpm -V 命令可检查到ssh的软件包正常,但某个目录的属主错误.rpm -V openssh-

putty连接报NetWork error:connection refused

首先通过物理终端进入到linux上,手工检查ssh发现没运行 /etc/init.d/sshd status 使用rpm -V 命令可检查到ssh的软件包正常 /rpm -V openssh-server 手工启动服务,发现报告权限错误. /etc/init.d/sshd start Starting sshd:/var/empty/sshd must be owned by root and not group or world-writable. 这个是权限的问题chown   -R   r

ssh连接失败,排错经验

一.场景描述 ssh连接服务器,发现连接失败,但是对应服务器的ip能够ping通. 场景: [[email protected] ~]# ssh [email protected] ssh_exchange_identification: read: Connection reset by peer [[email protected]-web ~]# ping 10.1.101.35 PING 10.1.101.35 (10.1.101.35) 56(84) bytes of data. 64

Linux ssh连接的一个问题

今天突然发现无法使用ssh连接到centos 查找原因发现sshd服务没有启动 执行 service sshd 服务,提示/var/emtpy/sshd must be owned by root and not group or world-writable 原来是之前不小心把/var/emtpy/sshd这个的权限修改为了777,执行 chmod g-w,o-w /var/empty/sshd service sshd start 重新连接,正常

移植Openssh到开发板

1.下载源码 zlib,openssl , openssh,配置编译链,编译,安装.大致的配置如下: 编译zlib./configure --prefix=/home/potato/openssl/install/zlib-1.2.3make make install 编译openssl./Configure --prefix=/home/potato/openssl/install/openssl-0.9.8e  os/compiler:arm-linux-gccmake make insta

用户管理知识

第1章 知识概述 提纲: 各种命令 与用户有关的文件和目录 如何让普通用户具有root用户的权限 行为审计 1.1 用户的分类 root用户     皇帝      UID:0 特点:权限最高 想干啥就干啥 虚拟用户 (傀儡)   UID:1-499 特点:每个服务.程序运行的时+候都需要一个用户 傀儡用户不需要用来登录系统(无法登陆) 傀儡用户 grep nobody /etc/passwd su - nobody [[email protected] ~]# grep nobody /etc