delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/25/11:37:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=D2xFG3LCJKb9zDC+
491h4RipIzDScAvE/69tNuYjMtYMkwBCIUJXpBuPmyA3UGqmJzbzJcYIezcwFdaO
3y3tEwbU58ENupy9tXQd3dom5U/KxRzQodf26j3fGZ383M2cv99uu2TzLMWYOJJd
OwcjO6Q1LZGDIeTj3yZEWGp/n3M=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ch97BLbaN4OwjhKJHqpkHT
aItKs=; b=uV5/o8YXfVIt/9v9b0u0+FwxB2Bh1fqLCelh86FQ6h0zcdf8blUDQb
+2TFAiSjyviHZZnb/Z5PXle/R2+BENslSyjKbhH0TcSFCAcTLZLi/uRWsJm9z1q6
P+zN7Z2IErGxjmooVc5W+zeSGqg1KyWKl6piRrt/4iqAKXVV4AAJo=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173019pub.verizon.net
Message-id: <53FB5802.6080904@cygwin.com>
Date: Mon, 25 Aug 2014 11:36:34 -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 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Windows 7 sshd can only login as cyg_server
References: <53F6459F DOT 5060203 AT prager DOT ws> <20140822130626 DOT GK32314 AT calimero DOT vinschen DOT de> <53F77CAB DOT 4000800 AT cygwin DOT com> <20140822201933 DOT GN32314 AT calimero DOT vinschen DOT de> <53F7A865 DOT 6030801 AT cygwin DOT com> <20140822204402 DOT GP32314 AT calimero DOT vinschen DOT de> <53F7B515 DOT 8020704 AT cygwin DOT com> <20140825105139 DOT GE11052 AT calimero DOT vinschen DOT de>
In-reply-to: <20140825105139.GE11052@calimero.vinschen.de>

On 08/25/2014 06:51 AM, Corinna Vinschen wrote:

<snip>

>> I can only make a local non-admin user.  If I use that, it is just
>> returning "Permission denied" after I enter the password.  I guess I'll
>> have to fiddle with it a little more to see if I can figure out why that
>> is.  But that seems tangential to the issue reported.
>
> But your effect doesn't sound good either.

Indeed.

>> If I try using the cyg_server account (yuck, I feel filthy! ;-) ), I get
>> kicked out the same way as reported minus the message about chown.  That's
>> as close as I've gotten and, of course, it's exactly opposite what was
>> reported.
>
> Right.  But the default setup of the cyg_server account in /etc/passwd
> is to start /bin/false as login shell.  Did you change that to /bin/bash?

Right.  No I didn't.  I believe my half-finished thought was to suggest the
OP had done this to get the connection with cyg_server to work.  Don't we
have that mind-reading plugin for the list working yet?  It would help
allot. ;-)

<snip>

>> Indeed.  Maybe the OP has an actual file for the pseudo /dev/pty1 file?  If
>> so, maybe the permissions on the file are getting in the way??
>
> That would be one good idea but I think that's not very likely.
> Cygwin's device handling wouldn't notice the file and call all
> the internal functions for ptys instead.  This includes chown,
> which on ptys is a change of the ACL of four synchronization objects
> representing the pty.

Yeah, I had experimented a little with this idea myself to see if I could
prove that this would have any effect but I couldn't (as you suggest)...

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