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: 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> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit 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 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 > debug1: temporarily_use_uid: 11135/10513 (e=1003/513) > seteuid 11135: Permission denied > 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. > 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? -- 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