From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52932 invoked by alias); 2 Feb 2017 13:08:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 52905 invoked by uid 89); 2 Feb 2017 13:08:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=bray, Bray, H*i:sk:2SQOa_A, H*f:sk:CAOTD34 X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 02 Feb 2017 13:08:09 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id B8AED72106C11 for ; Thu, 2 Feb 2017 14:08:06 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 29C105E016D for ; Thu, 2 Feb 2017 14:08:06 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 145C2A80382; Thu, 2 Feb 2017 14:08:06 +0100 (CET) Date: Thu, 02 Feb 2017 13:08:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Problems with ssh-host-config on Windows 10 Message-ID: <20170202130806.GC4310@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Bn2rw/3z4jIqBvZU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-02/txt/msg00016.txt.bz2 --Bn2rw/3z4jIqBvZU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1757 On Feb 2 12:19, Erik Bray wrote: > Hi all, >=20 > I've been trying to get a Cygwin sshd server running on a Windows 10 > VM, and have found it to be surprisingly tricky without some > additional fiddling, and it's not clear to me whether that's expected > or if it's a bug. I've attached the cygcheck output from the VM. >=20 > The symptom I've having seems to be the same as in this post: >=20 > https://cygwin.com/ml/cygwin/2015-06/msg00265.html >=20 > The problem seems to be stemming from some assumptions in: > /usr/share/csih/cygwin-service-installation-helper.sh >=20 > It creates the "privileged user" (in my case with the default name > cyg_server) with `net user`, including the SAM comment entry: >=20 > /comment:'' >=20 > Shortly after it calls: >=20 > passwd -e "${csih_PRIVILEGED_USERNAME}" >=20 > and this fails with: >=20 > Warning: Setting password expiry for user 'desktop-mk2koav+cyg_server' fa= iled! >=20 > This happens because this is a fresh Cygwin install with all the > default settings in /etc/nsswitch.conf. In particular, no passwd > entry is found for the cyg_server user unless I explicitly add "local" > to db_enum. Furthermore, the SAM comment entry is not read correctly > without db_home: desc and db_shell: desc. In summary, I had to edit > /etc/nsswitch.conf to: >=20 > passwd db > db_enum: local > db_home: desc > db_shell: desc The assumption in ssh-host-config is that your nsswitch.conf settings are already correct. It's kind of tricky to set up accounts and stuff in a not yet configured environment. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Bn2rw/3z4jIqBvZU Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYky81AAoJEPU2Bp2uRE+g3aIP+gPUPyCZtzl2gKZLM23syaJN jEvi3pK8xSbDl7Nr3N+DYuiAAL8j1PMWAFIzMSQ02d5e6/j22LJu0airW79DRgnx y2tKgChKndE1iVoQ92ucgjozVCZh+2s4A+ahwWGgjkPjMigN4bxqEwKS3Gab7iwO IAl6mpjqCMCnRi8rUwFB4ARh543R5u6mHyHDwEoui71iBAh7TUtFgS4HbaypQu/G ZbUNa/ZNOyro31m40oY4/y0ylmdCnzztH3qmQDjl5/i/6DZuV1JDhJigxoBrHAmL mhqTuSqleBKIrw9Rx58I0zNIThDSrc3WXsAIVegk6b5KKmBZi2rZfJotnSrsyRmg kt1H+e42tUNw4Zs7VJiubd7KKBoUzWiiQZn+OgacFx0+eybi9d4uVdGqtKjKMbOm xBCKYYwqgsdeas1xTbc99sJj3ZMM6qNY/u9K0W+jEd60tCMP8HUX/eHGt5OKnkE+ grfMzPoHTNiQNyvx9wSjwyaF9Tj2plonAPK4yrQORVeUIDJiNifoeqOZIs50qAcl yusiNqv04Kjabv6+aAzkDYmc8QwklENE1E26Ttl/sGpV+CiD7avnCysjFNZtFeJa HSgxDrk9NKuexqM90/T9FaD/yWVz36xF2AmLEQatdVHV/z7xzBfMYwxlzyPviVRD NT/MDbTL0CbeLWOjoDaC =3ego -----END PGP SIGNATURE----- --Bn2rw/3z4jIqBvZU--