delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/25/23:41:35

X-Spam-Check-By: sourceware.org
Message-ID: <4657ACD9.4030904@u.washington.edu>
Date: Fri, 25 May 2007 20:43:21 -0700
From: Dan Miller <dgmiller AT u DOT washington DOT edu>
Reply-To: dguthriem AT gmail DOT com
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: password authentication fails in cygwin openssh windows xp pro
References: <4655A077 DOT 60407 AT gmail DOT com> <Pine DOT LNX DOT 4 DOT 58 DOT 0705241028510 DOT 18442 AT dargo DOT trilug DOT org> <4655A398 DOT 80504 AT u DOT washington DOT edu> <f354ln$t9h$1 AT sea DOT gmane DOT org> <4656341F DOT 2000603 AT u DOT washington DOT edu> <f35fgh$6vt$1 AT sea DOT gmane DOT org> <46565B7E DOT 906 AT u DOT washington DOT edu> <f35mvj$nj3$1 AT sea DOT gmane DOT org> <46566DB0 DOT 8090106 AT u DOT washington DOT edu> <f35v01$aev$1 AT sea DOT gmane DOT org> <4656EF3B DOT 1030504 AT u DOT washington DOT edu> <f3715b$5ou$1 AT sea DOT gmane DOT org>
In-Reply-To: <f3715b$5ou$1@sea.gmane.org>
X-IsSubscribed: yes
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

René Berber wrote:
> Dan Miller wrote:
>
>   
>> Path statement appears fine. I think I'm missing something here. Isn't
>> it wierd that it is looking in /home/dan for keys and identities when
>> I'm logging in as the new user "fshd"?
>>     
>
> No, that is the way ssh works: you are user "dan" trying to login as user "fshd"
> to somewhere, so it uses (local) dan keys and (remote) fshd authorized_keys.
>
>   
>> I ran mkpasswd and mkgroup to
>> /etc/passwd and /etc/group and when I ssh localhost -l fshd it seems to
>> login and authenticate the password but then closes immediately.
>>     
>
> That's what the log showed.
>
>   
>> I'm wondering if it is looking for the .bash files and not finding them
>> ...ie file not found....and then closing. I copied the .bash files from
>> skel but that didn't solve the problem.
>>     
>
> No, that's no it.
>
>   
>> is this the problem?
>> debug3: channel 0: close_fds r -1 w -1 e 6 c -1
>> debug3: fd 1 is not O_NONBLOCK
>> debug3: fd 2 is not O_NONBLOCK
>> Connection to localhost closed.
>>     
>
> No.
>
>   
>> I just want to be able to login to this server as user fshd. fshd is
>> currently a user in windows, and member of the "users" group
>>     
>
> And it is almost working, it does log in, what happens next is what fails.  That
> means it can't execute the shell, did you change permissions? remember when you
> said you made /bin/bash 0700 (which doesn't allow execution by any other user
> different from the one that installed Cygwin)?
>   
Rene,

I got it working. It was completely due to permissions restrictions I 
had placed on the FSHD user. A few modifications and it logs in fine 
now. In particular (for anyone playing along at home) I used windows to 
change folder access permissions to cygwin folder, bin, and home 
directories. Thank you very much for you help. I've been working on this 
for a while.

Dan

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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