{"id":1172,"date":"2010-12-05T09:05:09","date_gmt":"2010-12-05T13:05:09","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1172"},"modified":"2013-03-20T08:43:57","modified_gmt":"2013-03-20T12:43:57","slug":"starting-sshd-missing-privilege-separation-directory-varemptysshd","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/starting-sshd-missing-privilege-separation-directory-varemptysshd","title":{"rendered":"Starting sshd: Missing privilege separation directory: \/var\/empty\/sshd"},"content":{"rendered":"<p>The SSHD service while restarting, looks for the &#8220;\/var\/empty\/sshd\/etc&#8221; directory which contains a symlink to the &#8216;localtime&#8217; file. If the file doesn&#8217;t exist, it results in a &#8220;cannot create symbolic link `\/var\/empty\/sshd\/etc&#8217;: No such file or directory&#8221; error message.<\/p>\n<p>The complete error message is as follows:<strong><\/strong><\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">-bash-3.2# service sshd restart <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">cp: cannot create symbolic link `\/var\/empty\/sshd\/etc': <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">No such file or directory <\/span><\/pre>\n<pre><span style=\"color: #0000ff;\">Starting sshd: Missing privilege separation: \/var\/empty\/sshd [FAILED]<\/span><\/pre>\n<\/blockquote>\n<p><strong>The solution is to create the &#8220;\/var\/empty\/sshd\/etc&#8221; directory and then create a symlink for localtime file.<\/strong><\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># mkdir \/var\/empty\/sshd\/etc<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\"># cd \/var\/empty\/sshd\/etc<\/span><\/pre>\n<pre><span style=\"color: #0000ff;\"># ln -s \/etc\/localtime localtime<\/span><\/pre>\n<\/blockquote>\n<p>Once done, you should be able to restart the sshd service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The SSHD service while restarting, looks for the &#8220;\/var\/empty\/sshd\/etc&#8221; directory which contains a symlink to the &#8216;localtime&#8217; file. If the file doesn&#8217;t exist, it results in a &#8220;cannot create symbolic link `\/var\/empty\/sshd\/etc&#8217;: No such file or directory&#8221; error message.<br \/>\nThe complete error message is as follows:<\/p>\n<p>-bash-3.2# service sshd restart<br \/>\ncp: cannot create symbolic link `\/var\/empty\/sshd\/etc&#8217;:<br \/>\nNo such file or directory<br \/>\nStarting sshd: Missing privilege separation: \/var\/empty\/sshd [FAILED]<\/p>\n<p>The solution is to create the &#8220;\/var\/empty\/sshd\/etc&#8221; directory and then create a symlink for localtime file.<\/p>\n<p># mkdir \/var\/empty\/sshd\/etc<br \/>\n# cd \/var\/empty\/sshd\/etc<br \/>\n# ln -s \/etc\/localtime [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1127,1126,1129,1130,1128],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1172"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1172"}],"version-history":[{"count":14,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1172\/revisions"}],"predecessor-version":[{"id":2271,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1172\/revisions\/2271"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}