X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0	tests=AWL,BAYES_00,SPF_NEUTRAL,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4CE59463.7050201@cornell.edu>
Date: Thu, 18 Nov 2010 16:02:27 -0500
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: sshd problem with recent snapshots
References: <4CE1972C.4080809@cornell.edu> <20101116135814.GC26851@calimero.vinschen.de> <4CE29643.2030005@cornell.edu> <20101116145906.GD26851@calimero.vinschen.de> <4CE3ED2A.9040308@cornell.edu> <20101117154736.GC11144@calimero.vinschen.de> <4CE45117.4040200@cornell.edu> <20101118011127.GA13375@ednor.casa.cgf.cx> <20101118110733.GB26196@calimero.vinschen.de> <20101118162218.GF18309@calimero.vinschen.de> <20101118185604.GH18309@calimero.vinschen.de>
In-Reply-To: <20101118185604.GH18309@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
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

On 11/18/2010 1:56 PM, Corinna Vinschen wrote:
> On Nov 18 17:22, Corinna Vinschen wrote:
>> On Nov 18 12:07, Corinna Vinschen wrote:
>>> On Nov 17 20:11, Christopher Faylor wrote:
>>>> On Wed, Nov 17, 2010 at 05:03:03PM -0500, Ken Brown wrote:
>>>>> On 11/17/2010 10:47 AM, Corinna Vinschen wrote:
>>>>>> Hmm.  Except, maybe, since you seem to be set up to build Cygwin from
>>>>>> CVS, could you start building the 09-12 version from CVS and then just
>>>>>> add one change from CVS at a time using
>>>>>>
>>>>>>     cvs up -D 'yyyy-mm-dd HH:MM'
>>>>>>
>>>>>> as filter until you encounter the problem?  An interesting situation to
>>>>>> test would be, if you have the state after this change:
>>>>>>
>>>>>>     2010-09-12  Corinna Vinschen<...>
>>>>>>
>>>>>>       * sec_acl.cc (acl_worker): Remove.
>>>>>>       (acl32): Implement acl_worker functionality here.
>>>>>>       (lacl32): Just return -1 with errno set to ENOSYS.
>>>>>>       (lacl): Ditto.
>>>>>>       * include/cygwin/acl.h (lacl): Remove this call.
>>>>>>
>>>>>> and then just add this single change from the first 2010-09-13 checkin:
>>>>>>
>>>>>>       * fhandler_tty.cc (fhandler_tty_slave::init): Use tty::setpgid method.
>>>>>
>>>>> It's fine through the fhandler_tty.cc change, and then the problem
>>>>> occurs as soon as I add the rest of the 2010-09-13 11:17:36 checkin.
>>>>
>>>> FWIW, I've finally unravelled the problems on my system that stopped me
>>>> from logging in via ssh (I needed to revert to a backup of my security
>>>> settings from 9/2009).  I can't even login at all using the 9/17
>>>> snapshot although I can run commands like 'ssh localhost "/bin/ls"'.
>>>>
>>>> I'm somewhat distracted right now but I'll do some more digging as time
>>>> permits.
>>>
>>> Additionally I'll set up a new XP SP3 system for testing.  Maybe I can
>>> finally reproduce this as well...
>>
>> Success.  I can reproduce the issue.  I also could reproduce it now on
>> my other XP SP3 system.  It turned out that it depends on the account
>> under which the sshd service is started.  Originally I started sshd
>> under my cyg_server account, just like on any other system.  I changed
>> that back to the default(*) SYSTEM account and, voila, suddenly I get
>> the `permission denied' problem.  I still have to debug it, though.
>
> I think I found the bug.  At least it works now for me.  Please test
> current CVS, or the next developers snapshot.

It works for me too.  Thanks.

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

