delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/16/11:32:29

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=XauQ4odLu0M9kWtq85ZObnhA5/ggSoVhHAnp4I9C6Iz
rpP9qyMjKn3DvqQdfCEtsTOqy5WbBd19qeqc8qEjiUmEvnpiQ2XSh2PqeuWN9k58
7erplysKWdqTzLZj+6VawaOuFRNm0K6/OStTrKtonM7VCr007TN5kA9DCSCUQRhw
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=z2/I6I4RdVbsG2HcpMnuPQH1jnM=; b=dAFwjsqu4RWGpaeo1
gvLnmu5cPYJj7StS5xJVNwU337lYaD1J+ydvkQw82Em0EIITLbTL/7vZuau5arvk
q03sto8vTIm7hQdpuFXDvMA5G6+chQeCeMvprd5CIDXTGIPKm8SeWDvWrYpdCqbI
ey3/5LvQD598mC22pmkfciUBXM=
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=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: limerock01.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <534EA277.1080404@cornell.edu>
Date: Wed, 16 Apr 2014 08:32:07 -0700
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Still testing needed: New passwd/group AD/SAM integration
References: <20140410145323 DOT GB2437 AT calimero DOT vinschen DOT de> <53487C6E DOT 9010905 AT cornell DOT edu> <20140412111325 DOT GA3271 AT calimero DOT vinschen DOT de> <53494BAA DOT 3020005 AT cornell DOT edu> <534DA152 DOT 2080304 AT cornell DOT edu> <20140416080420 DOT GO3271 AT calimero DOT vinschen DOT de> <20140416093519 DOT GQ3271 AT calimero DOT vinschen DOT de> <534EA18D DOT 60200 AT cornell DOT edu>
In-Reply-To: <534EA18D.60200@cornell.edu>
X-IsSubscribed: yes

On 4/16/2014 8:28 AM, Ken Brown wrote:
> On 4/16/2014 2:35 AM, Corinna Vinschen wrote:
>> Hi Ken,
>>
>> On Apr 16 10:04, Corinna Vinschen wrote:
>>> On Apr 15 14:14, Ken Brown wrote:
>>>> I've come across a glitch involving sshd and cygserver.  I normally
>>>> have both running, but I've discovered that I have to start sshd
>>>> before I start cygserver, or else I have problems (can't ssh from a
>>>> non-administrator account to an administrator account).  Here are
>>>> the details on 64 bit Cygwin; I haven't tested 32 bit:
>>>>
>>>> I've installed the full 2014-04-12 snapshot and removed /etc/passwd
>>>> and /etc/group.  I have an ordinary user kbrown and an administrator
>>>> user kbrown-admin.  I now do the following:
>>>>
>>>> 1. Start sshd.
>>>> 2. Start cygserver.
>>>> 3. Start a Cygwin Terminal as user kbrown.
>>>> 4. ssh into the kbrown-admin account (with publickey authentication
>>>> used by default).
>>>>
>>>> $ ssh kbrown-admin AT localhost
>>>> Enter passphrase for key '/home/kbrown/.ssh/id_rsa':
>>>> setsockopt IPV6_TCLASS 16: Protocol not available:
>>>> Last login: Tue Apr 15 13:57:12 2014 from fe80::9956:cbba:6928:151c%11
>>>>
>>>> Everything is fine.
>>>>
>>>> Now I close the Cygwin Terminal, stop both services, and restart
>>>> them in the other order (cygserver first, then sshd).  Repeating
>>>> steps 3 and 4, I can't login:
>>>>
>>>> $ ssh kbrown-admin AT localhost
>>>> kbrown-admin AT localhost's password:
>>>> Permission denied, please try again.
>>>> kbrown-admin AT localhost's password:
>>>>
>>>> Notice that (a) I didn't get a prompt for the passphrase for my ssh
>>>> key, and (b) my password wasn't accepted.
>>>
>>> Thanks for the report, Ken.  I'll have a look.
>>
>> To clarify:  This is a non-domain machine, right?  And sshd is running
>> under the cyg_server account while cygserver is running under the
>> LocalSystem account?
>
> Yes to all.
>
>> I'm just testing this, only with a domain machine and domain accounts,
>> and I can't reproduce this.  I have a bit of a problem to test this on a
>> non-domain machine because my network is set up for domain machines...
>>
>> However, I found that I made a blatant mistake in cygserver.  The
>> message length was computed one byte too short, so the trailing \0 in
>> the passwd/group string wasn't transmitted.  This *might* be the cause
>> for your problem.
>>
>> I just built a new snapshot.  Can you please try if this fixes it for
>> you?  Make sure to use the new cygserver!
>
> Yes, that fixed it.  Thanks.
>
>> While I was at it, I also added a patch to get rid of the "setsockopt
>> IPV6_TCLASS 16: Protocol not available" message.
>
> Good.  It's nice to see that anymore.
                   ^
                  not

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019