| delorie.com/archives/browse.cgi | search |
| 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=unVjhmBw9FbUeIV7grFa+xumsM+t4xibs/ydDGMMBFysYzS4s+o63 | |
| ZaVbJ+AGXuZxzQmusTE5xU4jXvpk9ULzDfNz4HkXd/dkelUkaffz1WDFFu5KchZi | |
| VgXOq1cooPWgCVP3CLxmneGRF1IbOhgxse3MdqtFeAsRjNniYVaKS4= | |
| 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=gQzMsY4jRuzFvkHOGLNFx/oOrvI=; b=xbkjJFWT45DLkMayYvYjzKPZTXjn | |
| ALgvOvFB6YQPJW63Mm2ixmpF+bkytCRBNGtYdhkSoUwDj9+rUxrg24b+3rdzqEr9 | |
| Yf0laK2mOTXvVlyDfcgDR7CKw8ugyWszU6ns4MAYltXtwG2dbCAz7qMdh+1W3h9C | |
| PKZkZYrKUh56SHs= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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=-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 |
| Date: | Thu, 2 Feb 2017 14:08:06 +0100 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Problems with ssh-host-config on Windows 10 |
| Message-ID: | <20170202130806.GC4310@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <CAOTD34YFY-79CN8vfrJxLQHk=2SQOa_AQyzsqOG7Wxy0=F9LWw AT mail DOT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <CAOTD34YFY-79CN8vfrJxLQHk=2SQOa_AQyzsqOG7Wxy0=F9LWw@mail.gmail.com> |
| User-Agent: | Mutt/1.7.1 (2016-10-04) |
--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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:'<cygwin home=3D"/var/empty" shell=3D"/bin/false"/>'
>=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"
-----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--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |