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=HDUY0t1/+qc/2K70g8VKiCHsC7nqVXm6gVpCrDa5CtsOq6RldLb1J | |
q3iNslPNKF0f1O4UJfJrivQANr8/RaRvFlN73K1FscwbnTOq7ve2jKE6hm+rGaut | |
DmgROIUkTzZINLGJQ5gaRf0ON7Zh52FHeJX3Mi0UfSHMeXwo7pKni8= | |
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=bQcJcZyXSh6jstAAHu6fTOkizQM=; b=HLcvpwgzUpopPJ+4DsMR24VQC+cK | |
/Np0At860Ez1dUf3bNLT7MTDuM00A9U/yulVBsegpuZ0CV83UC5adK9n+5vapoJ1 | |
nar+0nLk6046VcisSdzo1qz00jLSOjuJ9aWHYj84SITM/lqLD5v3IC2foX+/zAs6 | |
Ej6w7hqg4AXHLCE= | |
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-Spam-SWARE-Status: | No, score=0.8 required=5.0 tests=BAYES_00,DNS_FROM_AHBL_RHSBL,RCVD_IN_DNSWL_NONE,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.1 spammy=H*F:D*cygwin.com, password |
X-HELO: | mout.kundenserver.de |
Date: | Wed, 6 Mar 2019 21:13:31 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: sshd problem on WS2008R2 64bit |
Message-ID: | <20190306201331.GB3785@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <20190306010254 DOT GA4210 AT zebra> <20190306121154 DOT GN3785 AT calimero DOT vinschen DOT de> <20190306124816 DOT GR3785 AT calimero DOT vinschen DOT de> <20190306141716 DOT GS3785 AT calimero DOT vinschen DOT de> <20190306143424 DOT GU3785 AT calimero DOT vinschen DOT de> <CANV9t=SHLCT_xN_T35qTgJmoEBu98gGPaKjHMt559MZ+AwyToQ AT mail DOT gmail DOT com> <20190306153404 DOT GX3785 AT calimero DOT vinschen DOT de> <CANV9t=QiOH4cB47XzKZsReH7RLdaB0CxgY-o3jYgZ46DbV3OdA AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CANV9t=QiOH4cB47XzKZsReH7RLdaB0CxgY-o3jYgZ46DbV3OdA@mail.gmail.com> |
User-Agent: | Mutt/1.11.3 (2019-02-01) |
--R10gueRtU1pFqy+X Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mar 6 09:45, Bill Stewart wrote: > On Wed, Mar 6, 2019 at 8:34 AM Corinna Vinschen wrote: >=20 > > On Mar 6 08:38, Bill Stewart wrote: > > > On Wed, Mar 6, 2019 at 7:34 AM Corinna Vinschen wrote: > > > > On Mar 6 15:17, Corinna Vinschen wrote: > > > > > But the old Systems like Windows 7 don't want to play nice. > > > > > > > > > > - On Vista and Windows 7 WOW64, MsV1_0S4ULogon isn't implemented > > > > > at all, which required to keep the create_token method > > > > > available > > > > > > > > > > - On Vista and Windows 7 MsV1_0S4ULogon does not work without > > > > > some user logged in locally, even if it's just the cyg_server > > > > > service account. > > > > > > > > FTR, Windows 8 / Server 2012 is affected as well, > > > > Windows 8.1 / Server 2012 R2 is not. > > > > > > > > > > Question is, what is a good solution? Reverting cyglsa as > > > > > well to allow the old methods to work as before? This is > > > > > the opposite of what I had hoped to accomplish :( > > > > > > I agree that the new S4U logon method is by far the best solution. > > > > > > It seems to me that this MSV1 S4ULogon behavior on versions older than > NT > > > 6.3 (Vista/Srv2008/Win7/Srv2008R2/Win8/Srv2012) is not expected. > > > > > > What precisely happens when Cygwin uses MSV1 S4ULogon on versions old= er > > > than 6.3 before a user has logged on? > > > > MsV1S4ULogon returns with STATUS_NOT_SUPPORTED. Funny status code, > > given it works if some user already logged in by other means... >=20 > OK, so here's another potential workaround that doesn't require running t= he > service as a specific user... >=20 > Create a scheduled task to run using the following settings: >=20 > General -> Run using user account - > choose a local account > General -> "Run whether user is logged on or not" > Triggers -> Run at system startup > Actions -> Start a program -> Program/script: %SystemRoot%\Cystem32\cmd.e= xe > Actions -> Start a program -> Add arguments: /c exit >=20 > Full password logon is required (seems we can't use "do not store passwor= d" > option). >=20 > The local account does not have to be a member of Administrators, but it > does require user right "Log on as a batch job" (SeBatchLogonRight). >=20 > In my prefunctory testing this seems to fix this problem. >=20 > Does this work? This does indeed work in my local testing on Windows 7, with a local dummy user just for this scheduled job and sshd running under SYSTEM. Now, if that's a feasible workaround for users of these older systems...? Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --R10gueRtU1pFqy+X Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyAKesACgkQ9TYGna5E T6BXwA//ZlFn6sHfb7+8l0UCJv1MC5Vl4QbaCGzmeLaiYnn9WUMcQDIlpiglmxVk DS4940LOxDbQBz2SLyOelBLLqpqNlGx8mbeMsCLOFg0DJbluBq4hLSMwcXiZyIjC sP/du4zjE73H0AVnFj+c6Kbr00FCtXqvh6JNy2zgAhLCRrUgtzOk/MX8+g1SPBOn 0XD+zRvtvULuXlRbyV72H3xLoAn9AvIZLj9Mgj30WrZKaycRCgc9tnKTwPO0EDol wkYYhkG4JdXExQ1v5XZe8pMGuR0Zoo6fxH1Igr5kQCaslT1vA+IELAA+2YYAiyoa VhKpfPtok6OCnUi8kzjtAr/h9gbTeUkvu9ZyMZrHL1TCfDyaKxicxv0MhBqwhC5I C5bUhZQepLyHPbNyhKHLih9w7ED0jlRToOxsY0iYFTlR58y57YZ40Vi93oKxQkY+ KkRO2ULfH72AHTcD+VslJsdzzmPbNsGdVniM9S25z1uWTdT+jbQR7z6eawVmTVeG iCOlcTlQQgG6cn1wG9aKdaR1Ta+ogki8a2+qdQNNX7UmSsDOvcTcuDfUQCdfCvpk dXnB3nvJ30SbZUp5eUkNTrp5CvBvhNN28+NXX7pDH2bxPe3wcNHFBvLYG7GzIHgq kgVNatDozWpGIHSP5gY3fZKCIlqWGNTR484PXWc4pibD15kKyvk= =IPTg -----END PGP SIGNATURE----- --R10gueRtU1pFqy+X--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |