X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=RUOEoLIK/whHuU3/hmnrPqlAILPSLPaTSo/QFD4WiY1nFOoKldbIr USl7Qdl8zS0GMpn8FuwaFozPnN9fGeOuDwUovo1isl4lnYUl3obPHzkyGg2g08cF 8Svs6h+4tOn/gGxP8UzScC771CVGD+uZjrkoPKTYi0+655/oYZvFP4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=sF21tz8AFUZYZt7QSTiKhbeVu0o=; b=A1dqZLUnDHUfh/Uz4j0opYign7Fc TLNPlTjldCjE6r3q1x60vY7zjkObslbJuz5WtCqRA70AvyGpCVXqWnEuzcFsyDu6 ohssRf160XqY8gNdRLbgVvdjyfzS5vbu7czADXT005X9v659nrBk6Jf1WFh7k23x lBnZRUomss8NnSM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Tue, 17 Mar 2015 15:24:51 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: who is root? (or /usr/bin/sshd fails to start because of /var/log ownership) Message-ID: <20150317142451.GT6096@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Bi+HF1AHjw0mn3zx" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --Bi+HF1AHjw0mn3zx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 17 10:10, Mirko Vukovic wrote: > Hello, >=20 > A few weeks ago, sshd stopped working after a cygwin64 update. I > reinstalled cygwin64 (because of the new user and password handling, I > figured that to be easiest). >=20 > I still cannot get sshd to run. I get an error message: > >/usr/sbin/sshd.exe -d > debug1: sshd version OpenSSH_6.7, OpenSSL 1.0.1k 8 Jan 2015 > debug1: private host key: #0 type 1 RSA > debug1: private host key: #1 type 2 DSA > debug1: private host key: #2 type 3 ECDSA > debug1: private host key: #3 type 4 ED25519 > /var/empty must be owned by root and not group or world-writable. >=20 > Here is what /var/empty looks like (I obfuscated the machine name part) > >ls -lrd /var/empty > drw-------+ 1 XXXXXXXXXX+cyg_server Administrators 0 Feb 25 09:41 /var/em= pty/ >=20 > There is no root user on my machine. Should I create it? No. The "must be owned by root" in sshd is the original upstream error message. The test leading to the message on the other hand is tweaked for Cygwin to test if the /var/empty file is owned by the user running sshd. So, if you run sshd from the command line, it refuses to run if /var/empty isn't owned by your current user account. If you're running sshd as service from the XXXXXXXXXX+cyg_server account, /var/empty must be owned by the XXXXXXXXXX+cyg_server account. Does that help? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Bi+HF1AHjw0mn3zx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVCDkzAAoJEPU2Bp2uRE+gdL0P/iBVx0XlPaUKngKtJ/8Fl2NS bw6+elprRuti9Yb1fGspXpP1R/IvPaJrw7Q5U9nOoqWGgjVaEMGeRBHfUOM9DIVk YPotJ54vP9PrKzFP4PpgqjbdUaeRnDrSR26M/OwV2MciLMRyK7egs8wzVeaF0VQ6 OpezFtTu2pVAfvPRtEiqjMR1dOfZR2KKswHlMbFPf98wPAGN38ku8RO4tJEXC9RD uC5P4YPADDKNBwIuZQvofyYa+sB5keptzlW352WjxSKS5OzbeP0+tfoBp6RW39k7 cXYTF/ddgGsFc2naDKqdEWeMYWVkSj6Dxpu/N6qtKQc0NFpVVWa4L1vTCgSAAgDs PytmIBUk+ompmAbRYzL1skgc2ltnasPHkM8L1wQjD0WZQzzYF0Ufn3PGy5ui0Nzz HGIkAnxXEUQx/xn/qIsHChXvy8heyWg9hj7V9RkMLkdKg3enPM9BTjDLKeRwagPO ABgjSIgSX01EU0aqvlQEx2uxXVhQXykS4M/iGa7oZtW/1l03BL7c2vSMOk+YghS0 6sadCaAXPQWs2F4nVnXP1YcZBCnFz0c3N4Jry3y+da827j9FvQbxj2hzA3ba8DtI VpjNfgSYEax1ciNgIs87hU+p4M49qho6UCv5VTmrIcDnM3MPEY3CAvsvpxy58xYE nUu/sLZ32AdBz+Upem3y =5Kc1 -----END PGP SIGNATURE----- --Bi+HF1AHjw0mn3zx--