From owner-freebsd-current@FreeBSD.ORG Sat Mar 8 21:22:06 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25684106566B for ; Sat, 8 Mar 2008 21:22:06 +0000 (UTC) (envelope-from mouss@netoyen.net) Received: from balou.adapsec.com (balou.adapsec.com [91.121.103.130]) by mx1.freebsd.org (Postfix) with ESMTP id DBB878FC1C for ; Sat, 8 Mar 2008 21:22:05 +0000 (UTC) (envelope-from mouss@netoyen.net) X-Virus-Scanned: amavisd-new at adapsec.com Received: from [192.168.1.65] (ouzoud.netoyen.net [82.239.111.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mouss@netoyen.net) by balou.adapsec.com (Postfix) with ESMTPSA id 090FE3ACDCC2; Sat, 8 Mar 2008 22:22:13 +0100 (CET) Message-ID: <47D3037B.8000103@netoyen.net> Date: Sat, 08 Mar 2008 22:22:03 +0100 From: mouss User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <47C34D7E.1010305@netoyen.net> <6.0.0.22.2.20080225180357.025db140@mail.computinginnovations.com> <47C35CCC.9090300@netoyen.net> <47C3DDCF.6070109@gmail.com> <47C4039A.3060907@netoyen.net> <86lk552ukh.fsf@ds4.des.no> In-Reply-To: <86lk552ukh.fsf@ds4.des.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org, Derek Ragona , Juraj Lutter Subject: Re: ssh_exchange_identification: Connection closed by remote host X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 21:22:06 -0000 Dag-Erling Smørgrav wrote: > mouss writes: > >> I found the problem: >> fatal: /var/empty must be owned by root and not group or world-writable. >> I have created an account and set the home to /var/empty, but this >> changed the owner of /var/empty. sigh. >> > > There is no need to create an account. > there is a need:) just to clarify: I created an account for another service, and I mistakenly "reused" the empty /var/empty, but adduser changed the owner of this directory to the newly created user. thus the problem. If I could make some suggestions: - add a "fix" in /etc/rc.d/sshd to prevent such situations. if a chown is risky, then moving the directory and recreating it would do. - add a warning in the documentation - don't change owner in addusr if directory already exists - ... > Also, 'cd /usr/src; make hierarchy' would have fixed it for you. > thanks for the pointer. but I think an automatic fix is needed as losing ssh access is critical when the machine is far away. > DES >