Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 8 Feb 2001 00:54:18 +0100
From: Corinna Vinschen <cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: 1.1.8: login 1.4 problem, sshd problem (Win2k and NT): invalid password
Message-ID: <20010208005418.I23481@cygbert.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <000a01c0915e$7b5e8800$0307a8c0@ltml>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <000a01c0915e$7b5e8800$0307a8c0@ltml>; from martin.lenze@to.com on Thu, Feb 08, 2001 at 12:34:14AM +0100

On Thu, Feb 08, 2001 at 12:34:14AM +0100, Martin Lenze wrote:
> Hi,
> I've got problems with login and sshd on win2k and NT 4.0.
> If I try to login via ssh or with login to localhost I get "Invalid
> password" error, even when trying to log on to localhost.
> Both machines I have tested with are not  belonging to any domain, so
> authentication should be local.
> 
> Reading through the source of login 1.4 I found, that "HANDLE hToken =
> cygwin_logon_user( pwd, pp);"
> returns a true condition for the following if case "if ( hToken !=
> INVALID_HANDLE_VALUE)."
> 
> But passwords are o.k. and /etc/passwd is also (rewritten with
> mkpasswd) regarding correct "SID"-Values comma seperated after the
> user name in the comment field.

Did you read /usr/doc/Cygwin/openssh-2.3.0p1.README?

Don't forget to set the user rights of the user starting the
application which tries to change the user context (sshd,
login) according to the above documentation. A similar hint
is in /usr/doc/Cygwin/inetutils-1.3.2.README.

Then I suggest reading the online user docs http://cygwin.com/docs.html
and especially the corresponding part in the NTSEC chapter 
http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

