X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.7 required=5.0	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4EF29183.8060408@shaddybaddah.name>
Date: Thu, 22 Dec 2011 13:10:11 +1100
From: Shaddy Baddah <lithium-cygwin@shaddybaddah.name>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: sftp-server -h succeeds on cmd, fails on mintty
References: <4EF28545.4090901@shaddybaddah.name> <4EF28709.8000208@cygwin.com>
In-Reply-To: <4EF28709.8000208@cygwin.com>
Content-Type: text/plain; charset=ISO-8859-1
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

Hi Larry,

On 22/12/11 12:25, Larry Hall (Cygwin) wrote:
> On 12/21/2011 8:17 PM, Shaddy Baddah wrote:
>> Hi,
>>
>> I'm experiencing a wider problem with sftp'ing to/from a Cygwin sshd
>> service. However as a starting point into debugging, I've identified a
>> simple failure in the sftp-server that may give an indication into the
>> wider problem.
>>
>> When I ran just a simple usage argument to sftp-server in a mintty
>> session, the command failed:
>>
>> sbaddah@*********** ~
>> $ /usr/sbin/sftp-server -h; x=$?; echo $x
>> 127
>
> This works fine for me from mintty.  Just a shot in the dark but can
> you try it with a local user?  How about a local user that's part of
> the local Administrators group?

Yes, this has made a difference. Thank you. I ran against a local
user, although they were not a local administrator. It ran fine:

portapps@*********** ~
$ /usr/sbin/sftp-server -h
usage: sftp-server [-ehR] [-f log_facility] [-l log_level] [-u umask]

I guess that points towards a pseudo terminal handling glitch for a
domain user, right?

Regards,
Shaddy

>
>


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

