delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/15/18:09:37

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT 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 AT cygwin DOT com
Subject: Re: sshd on win7 x64
References: <4E36CB68 DOT 3000606 AT ank-sia DOT com> <4E400F0A DOT 6080001 AT ank-sia DOT com> <4E42AD9F DOT 5030505 AT cygwin DOT com> <4E454B99 DOT 2090805 AT ank-sia DOT com>
In-reply-to: <4E454B99.2090805@ank-sia.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019