X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.4 required=5.0	tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <4E4998F5.7080208@cygwin.com>
Date: Mon, 15 Aug 2011 18:08:53 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: sshd on win7 x64
References: <4E36CB68.3000606@ank-sia.com> <4E400F0A.6080001@ank-sia.com> <4E42AD9F.5030505@cygwin.com> <4E454B99.2090805@ank-sia.com>
In-reply-to: <4E454B99.2090805@ank-sia.com>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit
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 8/12/2011 11:49 AM, Alexey Luchko wrote:
> Hi!
>
> I've got back and tried to set up sshd again.
>
> Now it tricks me in other way. It fails on seteuid() when I try to connect
> with a domain user.
> """
> $ /usr/sbin/sshd.exe -dd

<snip>

> debug1: temporarily_use_uid: 11135/10513 (e=1003/513)
> seteuid 11135: Permission denied

<snip>

> I've tried to login with a local user. It seems it seteuid() works with
> local user. But then it claims again that chown() on tty fails:

Yeah, it's a known issue that 'sshd' cannot log you in as a domain user
unless the user running the 'sshd' service is also a domain user with
the correct permissions.  You can check in the archives if you want
details of how to set this up but generally it's easier to just stick
with local users if that's acceptable.  The 'ssh-host-config' script can
and does set up the ability to handle local users.

<snip>

> debug1: session_pty_req: session 0 alloc /dev/tty3
> chown(/dev/tty3, 1001, 513) failed: Bad file descriptor

This is weird.  I've not seen it reported before by others and certainly
haven't seen it myself.  Perhaps this is a case of BLODA?

<http://cygwin.com/acronyms/#BLODA>

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

