SUSE Linux because the/var/lib directory permissions cause SSH to not use the problem

Source: Internet
Author: User
Tags ssh linux

SSH is not available because of/var/lib directory permissions

A colleague of the morning said a server SSH login is not.

Initially thought that the SSH service did not start, the execution service sshd status.

Linux-34:/var/lib # service SSHD status

Checking for service sshd running

The display is started, then reboot, execute service sshd restart. The problem comes out, the error

Linux-34:/var/lib # service Sshd restart

Shutting down SSH Daemon done

Starting SSH Daemon/var/lib/empty must is owned by root and not group or world-writable.

This paper url:http://www.bianceng.cn/os/linux/201410/45608.htm

Startproc:exit Status of Parent of/usr/sbin/sshd:255

Then I went online and found out it might be a file permission Setup issue.

Linux-34:/var/lib # Ls-ld/var/lib/empty

DRWXRWXRWX 2 root root 4096 June 2006/var/lib/empty

The permissions are then modified to 755

chmod 755/var/lib/empty

Then reboot again, and the reboot is successful.

Linux-34:/var/lib # service Sshd restart

Shutting down SSH Daemon done

Starting SSH daemon Done

Linux-34:/var/lib # service SSHD status

Checking for service sshd running

Finally with SECURECRT login, OK, problem solving!

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.