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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=aH6WQyNDJYM5q6gT0RXg7ZCcUan3DsR60qLvR+3f3lAcJqV7ipwWE 2wOEJx7r+aFDYI81oJsXEpgCJnmC/rkyt3dPn9NHACHG5qkweO2mqQDaTniOFbND eQwFyS9GMt0dc65v1RvcGHNFcs1aa3Z9XoEq+uYGc9ianZ6Cmo99Ho= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=fj0BW+Q7bIn26Mx3J/SiSawtE0A=; b=Sr2VClgr06yRDcKopeTIbmTuuu8Y Hw4nRPLjbbg0sY2bpgcDRDcBBg0AQ8Ji6OOUsBaXwkp0C9lWzQ3cf4CBa5ADZ0gV sukS1CoziDuvUlD798osfM1N3OAGeUXTx9Co6b1owrqkFhXjdqwUGDH5EjgAda4V n6iN92QuLVgeJJk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_FSL_HELO_BARE_IP_2 autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Achim Gratz Subject: Re: Windows Server 2012R2 64bit and 32bit Cygwin sshd Date: Tue, 2 Sep 2014 16:24:48 +0000 (UTC) Lines: 16 Message-ID: References: <8761hphfps DOT fsf AT Rainer DOT invalid> <20140902140751 DOT GD6056 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Corinna Vinschen cygwin.com> writes: > I have no idea what could be wrong in your environment, sorry. Some more information: up until the check for /etc/nologin everything works. Things fall apart when sshd tries to switch to the user logging on. I've traced this again, sshd apparently then tries to use the user token to set the primary group and gets the predictable error "0xC000005B -- STATUS_INVALID_PRIMARY_GROUP". The 64bit sshd catches the resulting exception in that same pid, sets errno and then goes on to switch the uid. In 32bit the exception winds up in the parent process instead and leads to the termination of the connection. The seteuid32 call is never initiated. Regards, Achim. -- 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