SSH on Linux cannot start, report/var/empty/sshd must be owned by root and not group or world-writable__linux

Source: Internet
Author: User
Tags ssh

First through the physical terminal into Linux, Manual Check ssh found not running

#/etc/init.d/sshd Status
sshd is stopped

The service was manually started and the report permissions error was found.

#/etc/init.d/sshd Start 
starting sshd:/var/empty/sshd must is owned by root and not group or world-writable. [FAILED]

Using the Rpm-v command, you can check that the software package for SSH is normal, but a directory is a master error.

# rpm-v Openssh-server
s.5 ... c/etc/ssh/sshd_config ...
U../var/empty/sshd

after viewing the owner of this directory is not root, so start the SSH error

# ls-ld/var/empty/sshd/
d--x--x--x 2 vu00106 root 1024 Feb 2 2005/var/empty/sshd/

Change to root owner, start successful

# chown root/var/empty/sshd/
/etc/init.d/sshd start
starting sshd: [OK]

Fix this problem.

Alternatively, you can try:

This is a matter of authority.
The following two steps can be taken to resolve
Chown-r root.root/var/empty/sshd
chmod 744/var/empty/sshd
Service sshd Restart
Can solve the above problems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.