X-Recipient: archive-cygwin@delorie.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=NZfn/spB+VoklFTXJr5GPCgTcvdCXWFh+dx0hPJpL6J
	GLnwSoeBzMkaoKxJdlt7RXZWcHPYh7lOEjawjk4E/U4kzLCJgxYbBp2oWH9gFSaj
	sycIpqCzAaGm/PPIKdxILsOYa11yb6H4wP2kCFYbMa89WWNeWVvU8ygj9BjFkGp0
	=
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=XkE2TuGXRUzkqcRc4SB120EXTjM=; b=BMZmivkz12+oQmzho
	bicwhMqpvyLgON086omyezxRINJJJYxgZOQEngbyc0pp/O7iQJDFmzSYYw/Y/ATy
	TeChR+omJfoFP252z8dsn3VCDN1igNbzis0d6awTPHU86Yk/3foGeukoi5zWD/GY
	xjy48Wuq1MPY9tNILoymjD3DHs=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.4 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: <534DA152.2080304@cornell.edu>
Date: Tue, 15 Apr 2014 14:14:58 -0700
From: Ken Brown <kbrown@cornell.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@cygwin.com
Subject: Re: Still testing needed: New passwd/group AD/SAM integration
References: <20140410145323.GB2437@calimero.vinschen.de> <53487C6E.9010905@cornell.edu> <20140412111325.GA3271@calimero.vinschen.de> <53494BAA.3020005@cornell.edu>
In-Reply-To: <53494BAA.3020005@cornell.edu>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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@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@localhost
kbrown-admin@localhost's password:
Permission denied, please try again.
kbrown-admin@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.

Ken

--
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

