public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.1.8: login 1.4 problem, sshd problem (Win2k and NT): invalid password
@ 2001-02-07 15:34 Martin Lenze
  2001-02-07 15:54 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Lenze @ 2001-02-07 15:34 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]

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.

This seems to have been working with an older version of cygwin1.dll
as I had "sshd" installed as single application beforehand with an
older cygwin1.dll which I found here:
http://marvin.criadvantage.com/caspian/Software/SSHD-NT/default.php

I'm sorry, but I do not have the time to search for the bug and my C
programming knowledge is not good enough, to supply a patch already.

M. Lenze
---------------------------------------------------------------
Thinking Objects Software GmbH              martin.lenze@to.com
Kranstr. 8, 70499 Stuttgart, Germany          +49 711 838981-50
fax +49 711 838981-69 cel. +49 170 7917721 home +49 6221 618036


[-- Attachment #2: cygcheck.out --]
[-- Type: text/x-Algol68, Size: 7724 bytes --]


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Thu Feb  8 00:19:38 2001

WinNT Ver 5.0 build 2195 Service Pack 1

Path:	/usr/local/bin
	/usr/bin
	/bin
	/cygdrive/c/TeX/bin/win32
	/cygdrive/c/Oracle/Ora81/bin
	/cygdrive/c/Program Files/Oracle/jre/1.1.7/bin
	/cygdrive/c/Perl/bin
	/cygdrive/c/WINNT/system32
	/cygdrive/c/WINNT
	/cygdrive/c/WINNT/System32/Wbem
	/cygdrive/c/PROGRA~1/F-Secure/Ssh/Program
	/cygdrive/c/Program Files/PGPNT
	/cygdrive/c/PROGRA~1/TCL/bin
	/cygdrive/c/Program Files/Resource Pro Kit/
	/cygdrive/c/Oracle/Ora81/orb/bin
	/cygdrive/c/TeX/ImageMagick
	/cygdrive/c/TeX/netpbm/bin
	/usr/bin
	/usr/bin
	/usr/sbin
	/cygdrive/c/TeX/XEmacs/XEmacs-21.2/i586-pc-win32
	.

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/login-1.4'
USER = `mlenze'
MAKE_MODE = `unix'
HOME = `/home/mlenze'

NUMBER_OF_PROCESSORS = `1'
PROMPT = `$P$G'
LOGONSERVER = `\\LT-ML'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
COMSPEC = `C:\WINNT\system32\cmd.exe'
!C: = `C:\cygwin\bin'
SYSTEMDRIVE = `C:'
HOSTNAME = `LT-ML'
PROCESSOR_REVISION = `0803'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
COMPUTERNAME = `LT-ML'
CLASSPATH = `C:\Oracle\Ora81\orb\classes\yoj.jar;C:\Oracle\Ora81\orb\classes\share.zip'
WINDIR = `C:\WINNT'
USERPROFILE = `C:\Documents and Settings\mlenze'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
PROGRAMFILES = `C:\Program Files'
!:: = `::\'
MACHTYPE = `i686-pc-cygwin'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel'
OS = `Windows_NT'
OLDPWD = `/usr/include/w32api'
PROCESSOR_ARCHITECTURE = `x86'
TEMP = `/cygdrive/c/DOCUME~1/mlenze/LOCALS~1/Temp'
MAGICK_MODULES_PATH = `c:\TeX\ImageMagick'
PROCESSOR_LEVEL = `6'
SYSTEMROOT = `C:\WINNT'
HOMEDRIVE = `C:'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
SHLVL = `1'
TEXMFCNF = `c:\TeX\texmf-var\web2c'
APPDATA = `C:\Documents and Settings\mlenze\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
HOMEPATH = `\'
MAGICK_DELEGATE_PATH = `c:\TeX\ImageMagick'
USERDOMAIN = `LT-ML'
USERNAME = `mlenze'
SHELL = `/bin/sh'
HOSTTYPE = `i686'
OSTYPE = `cygwin'
TERM = `cygwin'
EMACSPACKAGEPATH = `c:\TeX\XEmacs\site-packages;c:\TeX\XEmacs\mule-packages;c:\TeX\XEmacs\xemacs-packages'
_ = `/usr/bin/cygcheck'
TZ = `WEST-1WEST-1,M10.5.0/3,M10.5.0/3'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:/cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:/cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:/cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  FAT32   5187Mb  90% CP    UN           WIN2K
d:  cd  CDFS     621Mb 100%    CS UN           FTP5
e:  hd  FAT       95Mb  32% CP    UN           DOS
f:  hd  FAT32    685Mb  95% CP    UN           FTP

C:\cygwin\bin  /usr/bin  system  binmode
C:\cygwin\lib  /usr/lib  system  binmode
C:\cygwin  /        system  binmode

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2000/11/21 0:53
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2000/10/23 3:26
  163k 2001/02/03 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2001/2/3 22:21
   14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2000/10/23 20:02
   45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjbig1.dll" v0.0 ts=2000/10/23 0:06
  119k 2000/10/23 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2000/10/23 1:58
   82k 2001/01/21 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/1/21 21:39
   53k 2001/01/21 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/1/21 21:39
  414k 2001/01/21 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/1/21 21:40
  299k 2001/01/21 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/1/21 21:38
   34k 2001/01/21 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/1/21 21:38
   17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 5:34
  108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 5:34
  243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2000/10/23 2:14
   41k 2000/11/20 C:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-noX4.dll" v0.0 ts=2000/11/20 3:41
   45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-X4.dll" v0.0 ts=2000/11/20 3:45
   49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2001/2/3 21:35
   81k 2000/11/26 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/26 2:43
   35k 2000/11/26 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/26 2:43
  390k 2000/11/26 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/26 2:39
    5k 2000/11/26 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/11/26 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/26 2:39
  623k 2000/11/26 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/26 2:43
  615k 2001/01/31 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/1/31 16:08
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 8
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 34
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Wed Jan 31 10:08:38 EST 2001
        shared id: cygwin1S3

Use -h to see help about each section


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 1.1.8: login 1.4 problem, sshd problem (Win2k and NT): invalid password
  2001-02-07 15:34 1.1.8: login 1.4 problem, sshd problem (Win2k and NT): invalid password Martin Lenze
@ 2001-02-07 15:54 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2001-02-07 15:54 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-02-07 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-07 15:34 1.1.8: login 1.4 problem, sshd problem (Win2k and NT): invalid password Martin Lenze
2001-02-07 15:54 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).