Date: Sat, 08 Mar 2008 22:22:03 +0100 From: mouss <mouss@netoyen.net> To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= <des@des.no> Cc: freebsd-current@freebsd.org, Derek Ragona <derek@computinginnovations.com>, Juraj Lutter <wilbuy@gmail.com> Subject: Re: ssh_exchange_identification: Connection closed by remote host Message-ID: <47D3037B.8000103@netoyen.net> In-Reply-To: <86lk552ukh.fsf@ds4.des.no> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smørgrav wrote: > mouss <mouss@netoyen.net> 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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47D3037B.8000103>