Wednesday, November 6, 2013

Solution: must be owned by root and not group or world-writable

I started debugging this problem when I saw a connection refused for ssh.

This is the error that can be seen when you typically see that ssh is dead or some other service is dead and you are not able to remotely connect to your machine.

[root@ZZZZZZ~]# service sshd restart
Stopping sshd:                                             [FAILED]
Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.   [FAILED]

The solution to this problem is simple. You somehow mucked up the permissions on /var/empty. I fixed my problem by:
# sudo su
# chmod 750 -R /var
# service sshd restart

0 comments:

Post a Comment