public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* sshd conflicts with mintty allocating /dev/tty[0-9]
@ 2011-08-01 15:51 Alexey Luchko
  2011-08-01 16:10 ` Christopher Faylor
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Alexey Luchko @ 2011-08-01 15:51 UTC (permalink / raw)
  To: cygwin

Hi, everyone!


I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config, 
turned on privilege separation, installed it as a service.

'CYGWIN sshd' service starts normally but it closes connection right after 
successful login:
"""
$ ssh localhost
user@localhost's password:
Connection to localhost closed by remote host.
Connection to localhost closed.
"""

Logged in sshd's account and started '/usr/sbin/sshd -d' and tries to login 
via ssh localhost.  Tail of sshd output follows:
"""
debug1: userauth-request for user user service ssh-connection method password
debug1: attempt 2 failures 1
Accepted password for user from ::1 port 63719 ssh2
debug1: monitor_child_preauth: user has been authenticated by privileged 
process
debug1: Entering interactive session for SSH2.
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_global_request: rtype no-more-sessions@openssh.com 
want_reply 0
debug1: server_input_channel_req: channel 0 request pty-req reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
debug1: Allocating pty.
debug1: session_pty_req: session 0 alloc /dev/tty2
chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
debug1: do_cleanup
debug1: session_pty_cleanup: session 0 release /dev/tty2
"""

It conflicts with mintty because every mintty allocates terminal for 
himself like this running in mintty:
"""
$ ls -l `tty`
crw--w---- 1 user Domain Users 136, 0 Aug  1 18:46 /dev/tty0
"""

Version: CYGWIN_NT-6.1-WOW64 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin


--
Regards,
Alexey.



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

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

* Re: sshd conflicts with mintty allocating /dev/tty[0-9]
  2011-08-01 15:51 sshd conflicts with mintty allocating /dev/tty[0-9] Alexey Luchko
@ 2011-08-01 16:10 ` Christopher Faylor
  2011-08-01 16:41 ` Alexey Luchko
  2011-08-08 16:30 ` sshd on win7 Alexey Luchko
  2 siblings, 0 replies; 11+ messages in thread
From: Christopher Faylor @ 2011-08-01 16:10 UTC (permalink / raw)
  To: cygwin

On Mon, Aug 01, 2011 at 06:51:04PM +0300, Alexey Luchko wrote:
>Hi, everyone!
>
>
>I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config, 
>turned on privilege separation, installed it as a service.
>
>'CYGWIN sshd' service starts normally but it closes connection right after 
>successful login:
>"""
>$ ssh localhost
>user@localhost's password:
>Connection to localhost closed by remote host.
>Connection to localhost closed.
>"""
>
>Logged in sshd's account and started '/usr/sbin/sshd -d' and tries to login 
>via ssh localhost.  Tail of sshd output follows:
>"""
>debug1: userauth-request for user user service ssh-connection method password
>debug1: attempt 2 failures 1
>Accepted password for user from ::1 port 63719 ssh2
>debug1: monitor_child_preauth: user has been authenticated by privileged 
>process
>debug1: Entering interactive session for SSH2.
>debug1: server_init_dispatch_20
>debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
>debug1: input_session_request
>debug1: channel 0: new [server-session]
>debug1: session_new: session 0
>debug1: session_open: channel 0
>debug1: session_open: session 0: link with channel 0
>debug1: server_input_channel_open: confirm session
>debug1: server_input_global_request: rtype no-more-sessions@openssh.com 
>want_reply 0
>debug1: server_input_channel_req: channel 0 request pty-req reply 1
>debug1: session_by_channel: session 0 channel 0
>debug1: session_input_channel_req: session 0 req pty-req
>debug1: Allocating pty.
>debug1: session_pty_req: session 0 alloc /dev/tty2
>chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
>debug1: do_cleanup
>debug1: session_pty_cleanup: session 0 release /dev/tty2
>"""
>
>It conflicts with mintty because every mintty allocates terminal for 
>himself like this running in mintty:
>"""
>$ ls -l `tty`
>crw--w---- 1 user Domain Users 136, 0 Aug  1 18:46 /dev/tty0
>"""
>
>Version: CYGWIN_NT-6.1-WOW64 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin

I don't understand how this conflicts with mintty.  mintty should
allocate the first tty if it is the first thing run.  ssh would allocate
some other pty (tty2) after that.  I don't see anything amiss other than
the error message above.

We'll need to see the debugging details mentioned here:

http://cygwin.com/problems.html

Please provide information on any changes you've made to your ssh setup
as well as the cygcheck output mentioned there.

cgf

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

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

* Re: sshd conflicts with mintty allocating /dev/tty[0-9]
  2011-08-01 15:51 sshd conflicts with mintty allocating /dev/tty[0-9] Alexey Luchko
  2011-08-01 16:10 ` Christopher Faylor
@ 2011-08-01 16:41 ` Alexey Luchko
  2011-08-02  2:34   ` Larry Hall (Cygwin)
  2011-08-02 11:33   ` sshd failes " Alexey Luchko
  2011-08-08 16:30 ` sshd on win7 Alexey Luchko
  2 siblings, 2 replies; 11+ messages in thread
From: Alexey Luchko @ 2011-08-01 16:41 UTC (permalink / raw)
  To: cygwin

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

On 01.08.2011 18:51, Alexey Luchko wrote:
> I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config,
> turned on privilege separation, installed it as a service.
>
> 'CYGWIN sshd' service starts normally but it closes connection right after
> successful login:
> """
> $ ssh localhost
> user@localhost's password:
> Connection to localhost closed by remote host.
> Connection to localhost closed.
> """
>
> Logged in sshd's account and started '/usr/sbin/sshd -d' and tries to login
> via ssh localhost. Tail of sshd output follows:
> """
> debug1: userauth-request for user user service ssh-connection method password
> debug1: attempt 2 failures 1
> Accepted password for user from ::1 port 63719 ssh2
> debug1: monitor_child_preauth: user has been authenticated by privileged
> process
> debug1: Entering interactive session for SSH2.
> debug1: server_init_dispatch_20
> debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
> debug1: input_session_request
> debug1: channel 0: new [server-session]
> debug1: session_new: session 0
> debug1: session_open: channel 0
> debug1: session_open: session 0: link with channel 0
> debug1: server_input_channel_open: confirm session
> debug1: server_input_global_request: rtype no-more-sessions@openssh.com
> want_reply 0
> debug1: server_input_channel_req: channel 0 request pty-req reply 1
> debug1: session_by_channel: session 0 channel 0
> debug1: session_input_channel_req: session 0 req pty-req
> debug1: Allocating pty.
> debug1: session_pty_req: session 0 alloc /dev/tty2
> chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
> debug1: do_cleanup
> debug1: session_pty_cleanup: session 0 release /dev/tty2
> """
>
> It conflicts with mintty because every mintty allocates terminal for
> himself like this running in mintty:
> """
> $ ls -l `tty`
> crw--w---- 1 user Domain Users 136, 0 Aug 1 18:46 /dev/tty0
> """
>
> Version: CYGWIN_NT-6.1-WOW64 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin


Cygwin Configuration Diagnostics atteched.


--
Regards,
Alexey.

[-- Attachment #2: cygcheck.out --]
[-- Type: text/plain, Size: 27316 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Mon Aug 01 19:38:22 2011

Windows 7 Professional N Ver 6.1 Build 7601 Service Pack 1

Running under WOW64 on AMD64

Path:	c:\cygwin\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0\
	c:\usr\bin

Output from c:\cygwin\bin\id.exe
UID: 11135(user)          GID: 10513(Domain Users)
10513(Domain Users)       544(Administrators)       555(Remote Desktop Users)
545(Users)                11108(ANK.SUPPORT)

SysDir: C:\Windows\system32
WinDir: C:\Windows

CYGWIN = 'notty'
Path = 'c:\cygwin\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\usr\bin'

ALLUSERSPROFILE = 'C:\ProgramData'
APPDATA = 'C:\Users\user\AppData\Roaming'
CommonProgramFiles = 'C:\Program Files (x86)\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
CommonProgramW6432 = 'C:\Program Files\Common Files'
COMPUTERNAME = 'SOULNE4NY'
ComSpec = 'C:\Windows\system32\cmd.exe'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Users\user'
LOCALAPPDATA = 'C:\Users\user\AppData\Local'
LOGONSERVER = '\\ANKSRV'
NUMBER_OF_PROCESSORS = '4'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_ARCHITEW6432 = 'AMD64'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 42 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = '6'
PROCESSOR_REVISION = '2a07'
ProgramData = 'C:\ProgramData'
ProgramFiles = 'C:\Program Files (x86)'
ProgramFiles(x86) = 'C:\Program Files (x86)'
ProgramW6432 = 'C:\Program Files'
PROMPT = '$P$G'
PSI_ENABLE_VIDEO = '1'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
PUBLIC = 'C:\Users\Public'
SystemDrive = 'C:'
SystemRoot = 'C:\Windows'
TEMP = 'C:\Users\user\AppData\Local\Temp'
TMP = 'C:\Users\user\AppData\Local\Temp'
USERDNSDOMAIN = 'ANK-SIA.COM'
USERDOMAIN = 'ANK'
USERNAME = 'user'
USERPROFILE = 'C:\Users\user'
VCToolkitInstallDir = 'C:\usr\ms\vc7\'
windir = 'C:\Windows'
windows_tracing_flags = '3'
windows_tracing_logfile = 'C:\BVTBin\Tests\installpackage\csilogfile.log'

HKEY_CURRENT_USER\Console\C:_cygwin_bin_bash.exe
  (default) = 0x1e610066
  WindowSize = 0x00290066
  WindowPosition = 0x00790194
  FontSize = 0x0012000a
  FontFamily = 0x00000030
  FontWeight = 0x00000190
  FaceName = 'Terminal'
  QuickEdit = 0x00000001
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\c:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: c:\cygwin

c:  hd  NTFS     65538Mb  48% CP CS UN PA FC     win7 root
z:  hd  NTFS    131069Mb   3% CP CS UN PA FC     win7 var

c:\cygwin        /          system  binary,auto
c:\cygwin\bin    /usr/bin   system  binary,auto
c:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,auto

Found: c:\cygwin\bin\awk
 -> c:\cygwin\bin\gawk.exe
Found: c:\cygwin\bin\bash.exe
Found: c:\cygwin\bin\cat.exe
Found: c:\cygwin\bin\cp.exe
Found: c:\cygwin\bin\cpp.exe
 -> c:\cygwin\etc\alternatives\cpp
 -> c:\cygwin\bin\cpp-4.exe
Not Found: crontab
Found: c:\cygwin\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: c:\cygwin\bin\find.exe hides C:\Windows\system32\find.exe
Found: c:\cygwin\bin\gcc.exe
 -> c:\cygwin\etc\alternatives\gcc
 -> c:\cygwin\bin\gcc-4.exe
Not Found: gdb
Found: c:\cygwin\bin\grep.exe
Found: c:\cygwin\bin\kill.exe
Found: c:\cygwin\bin\ld.exe
Found: c:\cygwin\bin\ls.exe
Found: c:\cygwin\bin\make.exe
Found: c:\cygwin\bin\mv.exe
Found: c:\cygwin\bin\patch.exe
Found: c:\cygwin\bin\perl.exe
Found: c:\cygwin\bin\rm.exe
Found: c:\cygwin\bin\sed.exe
Found: c:\cygwin\bin\ssh.exe
Found: c:\cygwin\bin\sh.exe
Found: c:\cygwin\bin\tar.exe
Found: c:\cygwin\bin\test.exe
Found: c:\cygwin\bin\vi
 -> c:\cygwin\bin\vim-nox.exe
Found: c:\cygwin\bin\vim
 -> c:\cygwin\etc\alternatives\vim
 -> c:\cygwin\bin\vim-nox.exe

  117k 2011/05/16 c:\cygwin\bin\cygapr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygapr-1-0.dll" v0.0 ts=2011/5/16 20:15
   86k 2010/10/04 c:\cygwin\bin\cygaprutil-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygaprutil-1-0.dll" v0.0 ts=2010/10/5 1:28
   15k 2009/12/27 c:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2009/11/18 14:52
   95k 2010/06/24 c:\cygwin\bin\cygblkid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygblkid-1.dll" v0.0 ts=2010/6/24 22:20
   62k 2011/05/21 c:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011/5/21 22:16
  108k 2010/01/05 c:\cygwin\bin\cygcloog-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcloog-0.dll" v0.0 ts=2010/1/5 2:45
    7k 2003/10/19 c:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 10:57
 1147k 2011/03/16 c:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2011/3/16 22:54
  284k 2010/06/01 c:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2010/6/1 22:07
  943k 2007/12/17 c:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 15:12
 1296k 2007/12/17 c:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 15:12
  511k 2010/06/17 c:\cygwin\bin\cygedit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygedit-0.dll" v0.0 ts=2010/6/17 14:42
   57k 2010/12/06 c:\cygwin\bin\cygevtlog-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygevtlog-0.dll" v0.0 ts=2010/12/6 17:59
  118k 2008/05/09 c:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/9 7:03
   29k 2010/05/12 c:\cygwin\bin\cygfam-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfam-0.dll" v0.0 ts=2010/5/12 13:26
   22k 2011/03/22 c:\cygwin\bin\cygffi-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygffi-4.dll" v0.0 ts=2011/3/22 6:13
   43k 2010/01/02 c:\cygwin\bin\cygform-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-10.dll" v0.0 ts=2010/1/2 16:49
   40k 2009/03/01 c:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2009/3/1 8:32
   43k 2009/11/20 c:\cygwin\bin\cygform-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-9.dll" v0.0 ts=2009/11/20 21:14
   47k 2010/01/02 c:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2010/1/2 19:31
   44k 2011/03/22 c:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2011/3/22 6:02
   19k 2009/02/26 c:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009/2/26 9:58
    8k 2009/02/26 c:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009/2/26 9:58
  552k 2010/06/15 c:\cygwin\bin\cyggio-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggio-2.0-0.dll" v0.0 ts=2010/6/15 6:25
  764k 2010/06/15 c:\cygwin\bin\cygglib-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygglib-2.0-0.dll" v0.0 ts=2010/6/15 6:22
   14k 2010/06/15 c:\cygwin\bin\cyggmodule-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmodule-2.0-0.dll" v0.0 ts=2010/6/15 6:23
  317k 2011/07/31 c:\cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2011/7/31 8:14
   14k 2011/07/31 c:\cygwin\bin\cyggmpxx-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmpxx-4.dll" v0.0 ts=2011/7/31 13:31
  233k 2010/06/15 c:\cygwin\bin\cyggobject-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggobject-2.0-0.dll" v0.0 ts=2010/6/15 6:23
   25k 2011/03/22 c:\cygwin\bin\cyggomp-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggomp-1.dll" v0.0 ts=2011/3/22 6:16
   17k 2010/06/15 c:\cygwin\bin\cyggthread-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggthread-2.0-0.dll" v0.0 ts=2010/6/15 6:23
   24k 2009/06/23 c:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2009/6/23 15:20
   25k 2011/01/26 c:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2011/1/26 5:25
  358k 2011/04/29 c:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2011/4/29 7:37
  980k 2011/01/28 c:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/1/28 5:52
  193k 2010/05/16 c:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2010/5/16 16:37
   31k 2005/11/20 c:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/20 4:04
   31k 2009/04/03 c:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2009/4/3 4:15
   39k 2008/09/07 c:\cygwin\bin\cyglber-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-3-0.dll" v0.0 ts=2008/9/7 15:28
  189k 2008/09/07 c:\cygwin\bin\cygldap-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-3-0.dll" v0.0 ts=2008/9/7 15:29
  201k 2008/09/07 c:\cygwin\bin\cygldap_r-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-3-0.dll" v0.0 ts=2008/9/7 15:31
    5k 2011/03/29 c:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2011/3/29 0:14
    9k 2011/03/29 c:\cygwin\bin\cyglsa64.dll - os=5.2 img=0.0 sys=5.2
  123k 2011/05/19 c:\cygwin\bin\cyglzma-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-5.dll" v0.0 ts=2011/5/19 5:41
   25k 2010/01/02 c:\cygwin\bin\cygmenu-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-10.dll" v0.0 ts=2010/1/2 16:48
   21k 2009/03/01 c:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2009/3/1 8:31
   25k 2009/11/20 c:\cygwin\bin\cygmenu-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-9.dll" v0.0 ts=2009/11/20 21:13
   25k 2010/01/02 c:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2010/1/2 19:30
   24k 2008/10/30 c:\cygwin\bin\cygminires.dll - os=4.0 img=1.2 sys=4.0
                  "cygminires.dll" v0.0 ts=2008/10/31 1:53
  213k 2011/07/31 c:\cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2011/7/31 8:12
   64k 2009/11/09 c:\cygwin\bin\cygmpc-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpc-1.dll" v0.0 ts=2009/11/9 3:21
  269k 2009/06/07 c:\cygwin\bin\cygmpfr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpfr-1.dll" v0.0 ts=2009/6/8 0:10
   63k 2010/01/02 c:\cygwin\bin\cygncurses++-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-10.dll" v0.0 ts=2010/1/2 17:00
   66k 2009/03/01 c:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2009/3/1 8:39
   63k 2009/11/20 c:\cygwin\bin\cygncurses++-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-9.dll" v0.0 ts=2009/11/20 21:25
   63k 2010/01/02 c:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2010/1/2 19:41
  195k 2010/01/02 c:\cygwin\bin\cygncurses-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-10.dll" v0.0 ts=2010/1/2 16:45
  237k 2009/03/01 c:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2009/3/1 8:28
  198k 2009/11/20 c:\cygwin\bin\cygncurses-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-9.dll" v0.0 ts=2009/11/20 21:10
  244k 2010/01/02 c:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2010/1/2 19:28
  119k 2010/05/18 c:\cygwin\bin\cygneon-27.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-27.dll" v0.0 ts=2010/5/18 15:05
   13k 2010/01/02 c:\cygwin\bin\cygpanel-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-10.dll" v0.0 ts=2010/1/2 16:47
   11k 2009/03/01 c:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2009/3/1 8:30
   13k 2009/11/20 c:\cygwin\bin\cygpanel-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-9.dll" v0.0 ts=2009/11/20 21:12
   13k 2010/01/02 c:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2010/1/2 18:30
  224k 2010/06/15 c:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2010/6/15 7:10
   10k 2010/06/15 c:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2010/6/15 7:11
 1627k 2010/08/29 c:\cygwin\bin\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2010/8/28 21:17
   22k 2002/06/09 c:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 8:45
  695k 2009/04/18 c:\cygwin\bin\cygppl-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygppl-7.dll" v0.0 ts=2009/4/18 15:44
 2481k 2009/04/18 c:\cygwin\bin\cygppl_c-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygppl_c-2.dll" v0.0 ts=2009/4/18 15:47
  103k 2009/01/07 c:\cygwin\bin\cygpq.dll - os=4.0 img=1.0 sys=4.0
                  "cygpq.dll" v0.0 ts=2009/1/7 18:46
   27k 2009/09/07 c:\cygwin\bin\cygproxy-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygproxy-0.dll" v0.0 ts=2009/9/7 3:56
   18k 2009/04/18 c:\cygwin\bin\cygpwl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygpwl-4.dll" v0.0 ts=2009/4/18 15:44
  155k 2009/06/23 c:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2009/6/23 15:20
  164k 2011/01/26 c:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2011/1/26 5:25
   84k 2010/07/02 c:\cygwin\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-2.dll" v0.0 ts=2010/7/2 6:19
   54k 2011/03/04 c:\cygwin\bin\cygserf-0-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygserf-0-1.dll" v0.0 ts=2011/3/4 19:45
    8k 2011/05/05 c:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2011/5/5 10:33
 1613k 2010/12/01 c:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2010/12/1 14:20
  121k 2010/06/01 c:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2010/6/1 21:44
  263k 2011/03/16 c:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2011/3/16 22:54
    8k 2011/03/22 c:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2011/3/22 6:12
  771k 2011/03/22 c:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2011/3/22 6:53
  232k 2011/06/03 c:\cygwin\bin\cygsvn_client-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_client-1-0.dll" v0.0 ts=2011/6/2 20:45
   36k 2011/06/03 c:\cygwin\bin\cygsvn_delta-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_delta-1-0.dll" v0.0 ts=2011/6/2 20:40
   39k 2011/06/03 c:\cygwin\bin\cygsvn_diff-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_diff-1-0.dll" v0.0 ts=2011/6/2 20:40
   18k 2011/06/03 c:\cygwin\bin\cygsvn_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs-1-0.dll" v0.0 ts=2011/6/2 20:41
  141k 2011/06/03 c:\cygwin\bin\cygsvn_fs_base-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_base-1-0.dll" v0.0 ts=2011/6/2 20:41
  123k 2011/06/03 c:\cygwin\bin\cygsvn_fs_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_fs-1-0.dll" v0.0 ts=2011/6/2 20:41
    7k 2011/06/03 c:\cygwin\bin\cygsvn_fs_util-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_util-1-0.dll" v0.0 ts=2011/6/2 20:40
   29k 2011/06/03 c:\cygwin\bin\cygsvn_ra-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra-1-0.dll" v0.0 ts=2011/6/2 20:44
   23k 2011/06/03 c:\cygwin\bin\cygsvn_ra_local-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_local-1-0.dll" v0.0 ts=2011/6/2 20:43
  112k 2011/06/03 c:\cygwin\bin\cygsvn_ra_neon-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_neon-1-0.dll" v0.0 ts=2011/6/2 20:41
  113k 2011/06/03 c:\cygwin\bin\cygsvn_ra_serf-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_serf-1-0.dll" v0.0 ts=2011/6/2 20:41
   68k 2011/06/03 c:\cygwin\bin\cygsvn_ra_svn-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_svn-1-0.dll" v0.0 ts=2011/6/2 20:41
  140k 2011/06/03 c:\cygwin\bin\cygsvn_repos-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_repos-1-0.dll" v0.0 ts=2011/6/2 20:42
  238k 2011/06/03 c:\cygwin\bin\cygsvn_subr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_subr-1-0.dll" v0.0 ts=2011/6/2 20:40
  238k 2011/06/03 c:\cygwin\bin\cygsvn_wc-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_wc-1-0.dll" v0.0 ts=2011/6/2 20:41
  330k 2010/12/09 c:\cygwin\bin\cygsyslog-ng-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsyslog-ng-0.dll" v0.0 ts=2010/12/9 15:33
   48k 2010/01/02 c:\cygwin\bin\cygtic-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-10.dll" v0.0 ts=2010/1/2 16:45
   48k 2009/11/20 c:\cygwin\bin\cygtic-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-9.dll" v0.0 ts=2009/11/20 21:10
   48k 2010/01/02 c:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2010/1/2 19:28
   16k 2010/06/24 c:\cygwin\bin\cyguuid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyguuid-1.dll" v0.0 ts=2010/6/24 22:19
   28k 2010/03/28 c:\cygwin\bin\cygwrap-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwrap-0.dll" v0.0 ts=2010/3/28 12:02
   76k 2010/08/01 c:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2010/8/2 0:04
 2604k 2011/03/29 c:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2011/3/29 11:10
    Cygwin DLL version info:
        DLL version: 1.7.9
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 237
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Service             : sshd
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : .\sshd


Cygwin Package Information
Last downloaded files to: Z:\inst\cygwin\repa
Last downloaded files from: http://ftp.heanet.ie/pub/cygwin/

Package                 Version              Status
_update-info-dir        00970-1              OK
alternatives            1.3.30c-10           OK
attr                    2.4.43-1             OK
base-cygwin             3.0-1                OK
base-files              4.0-6                OK
bash                    4.1.10-4             OK
bc                      1.06-2               OK
binutils                2.21.53-1            OK
bzip2                   1.0.6-2              OK
colordiff               1.0.9-1              OK
colorgcc                1.3.2-2              OK
coreutils               8.10-1               OK
cpio                    2.11-1               OK
crypt                   1.1-1                OK
csih                    0.9.4-1              OK
curl                    7.20.1-1             OK
cvs                     1.12.13-10           OK
cvsps                   2.2b1-1              OK
cygrunsrv               1.34-1               OK
cygutils                1.4.6-1              OK
cygwin                  1.7.9-1              OK
cygwin-doc              1.7-1                OK
dash                    0.5.6.1-2            OK
diffutils               2.9-1                OK
dos2unix                5.3-1                OK
ed                      1.0-1                OK
editrights              1.01-2               OK
findutils               4.5.9-2              OK
gamin                   0.1.10-11            OK
gawk                    4.0.0-1              OK
Empty package gcc
gcc                     3.4.4-999            OK
gcc-core                3.4.4-999            OK
gcc-g++                 3.4.4-999            OK
Empty package gcc-mingw
gcc-mingw               20040810-1           OK
gcc-mingw-core          20050522-3           OK
gcc-mingw-g++           20050522-3           OK
gcc4                    4.3.4-4              OK
gcc4-core               4.3.4-4              OK
gcc4-g++                4.3.4-4              OK
gettext                 0.17-11              OK
git                     1.7.5.1-1            OK
gitk                    1.7.5.1-1            OK
grep                    2.6.3-1              OK
groff                   1.20.1-2             OK
gzip                    1.4-1                OK
ipc-utils               1.0-1                OK
keychain                2.6.8-1              OK
less                    444-1                OK
libapr1                 1.4.4-1              OK
libaprutil1             1.3.10-1             OK
libattr1                2.4.43-1             OK
libblkid1               2.17.2-1             OK
libbz2_1                1.0.6-2              OK
libcloog0               0.15.7-1             OK
libcurl4                7.20.1-1             OK
libdb4.5                4.5.20.2-2           OK
libedit0                20090923-1           OK
libevtlog0              0.2.12-1             OK
libexpat1               2.0.1-1              OK
libfam0                 0.1.10-11            OK
libffi4                 4.3.4-4              OK
libgcc1                 4.3.4-4              OK
libgdbm4                1.8.3-20             OK
libglib2.0_0            2.24.1-1             OK
libgmp3                 4.3.2-1              OK
libgmpxx4               4.3.2-1              OK
libgomp1                4.3.4-4              OK
libiconv2               1.13.1-2             OK
libidn11                1.18-1               OK
libintl3                0.14.5-1             OK
libintl8                0.17-11              OK
liblzma5                5.0.2_20110517-1     OK
libmpc1                 0.8-1                OK
libmpfr1                2.4.1-4              OK
libncurses10            5.7-18               OK
libncurses8             5.5-10               OK
libncurses9             5.7-16               OK
libncursesw10           5.7-18               OK
libneon27               0.29.3-1             OK
libopenldap2_3_0        2.3.43-1             OK
libopenssl098           0.9.8r-2             OK
libpcre0                8.02-1               OK
libpopt0                1.6.4-4              OK
libppl                  0.10.2-1             OK
libpq5                  8.2.11-1             OK
libproxy0               0.2.3-2              OK
libreadline6            5.2.14-12            OK
libreadline7            6.1.2-2              OK
libsasl2                2.1.23-1             OK
libserf0_1              0.7.1-1              OK
libsigsegv2             2.10-1               OK
libsqlite3_0            3.7.3-1              OK
libssh2_1               1.2.5-1              OK
libssp0                 4.3.4-4              OK
libstdc++6              4.3.4-4              OK
libstdc++6-devel        4.3.4-4              OK
libuuid1                2.17.2-1             OK
libwrap0                7.6-21               OK
links                   2.2-1                OK
login                   1.10-10              OK
lynx                    2.8.5-4              OK
make                    3.81-2               OK
man                     1.6f-1               OK
mingw-binutils          2.21-1               OK
mingw-gcc-core          4.5.2-1              OK
mingw-pthreads          20110507-1           OK
mingw-runtime           3.18-3               OK
mingw-w32api            3.17-2               OK
mingw-zlib-devel        1.2.5-6              OK
mingw-zlib1             1.2.5-6              OK
mingw64-x86_64-binutils 2.21.51-3            OK
mingw64-x86_64-gcc-core 4.5.3-1              OK
mingw64-x86_64-headers  1.0b_svn4214-1       OK
mingw64-x86_64-pthreads 20100619-3           OK
mingw64-x86_64-runtime  1.0b_svn4214-1       OK
minires                 1.02-1               OK
mintty                  1.0.1-1              OK
netcat                  1.10-2               OK
openssh                 5.8p1-1              OK
p7zip                   9.20.1-1             OK
patch                   2.5.8-9              OK
patchutils              0.3.2-1              OK
perl                    5.10.1-5             OK
perl-Error              0.17016-1            OK
ping                    1.0-1                OK
pwgen                   2.06-2               OK
rebase                  3.0.1-1              OK
rsync                   3.0.8-1              OK
run                     1.1.13-1             OK
sed                     4.2.1-1              OK
shutdown                1.7-1                OK
sqlite3                 3.7.3-1              OK
subversion              1.6.17-1             OK
syslog-ng               3.2.1-1              OK
tar                     1.25-1               OK
tcltk                   20080420-1           OK
terminfo                5.7_20091114-14      OK
terminfo0               5.5_20061104-12      OK
texinfo                 4.13-3               OK
tzcode                  2010j-1              OK
unzip                   6.0-10               OK
util-linux              2.17.2-1             OK
vim                     7.3.003-1            OK
w32api                  3.17-2               OK
wget                    1.12-1               OK
which                   2.20-2               OK
xz                      5.0.2_20110517-1     OK
zip                     3.0-11               OK
zlib                    1.2.5-1              OK
zlib-devel              1.2.5-1              OK
zlib0                   1.2.5-1              OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

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

* Re: sshd conflicts with mintty allocating /dev/tty[0-9]
  2011-08-01 16:41 ` Alexey Luchko
@ 2011-08-02  2:34   ` Larry Hall (Cygwin)
  2011-08-02 11:33   ` sshd failes " Alexey Luchko
  1 sibling, 0 replies; 11+ messages in thread
From: Larry Hall (Cygwin) @ 2011-08-02  2:34 UTC (permalink / raw)
  To: cygwin

On 8/1/2011 12:41 PM, Alexey Luchko wrote:
> On 01.08.2011 18:51, Alexey Luchko wrote:
>> I've run mkpasswd and mkgroups, installed sshd, run sshd-host-config,
>> turned on privilege separation, installed it as a service.
>>
>> 'CYGWIN sshd' service starts normally but it closes connection right after
>> successful login:
>> """
>> $ ssh localhost
>> user@localhost's password:
>> Connection to localhost closed by remote host.
>> Connection to localhost closed.
>> """
>>
>> Logged in sshd's account and started '/usr/sbin/sshd -d' and tries to login
>> via ssh localhost. Tail of sshd output follows:
>> """
>> debug1: userauth-request for user user service ssh-connection method password
>> debug1: attempt 2 failures 1
>> Accepted password for user from ::1 port 63719 ssh2
>> debug1: monitor_child_preauth: user has been authenticated by privileged
>> process
>> debug1: Entering interactive session for SSH2.
>> debug1: server_init_dispatch_20
>> debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max
>> 16384
>> debug1: input_session_request
>> debug1: channel 0: new [server-session]
>> debug1: session_new: session 0
>> debug1: session_open: channel 0
>> debug1: session_open: session 0: link with channel 0
>> debug1: server_input_channel_open: confirm session
>> debug1: server_input_global_request: rtype no-more-sessions@openssh.com
>> want_reply 0
>> debug1: server_input_channel_req: channel 0 request pty-req reply 1
>> debug1: session_by_channel: session 0 channel 0
>> debug1: session_input_channel_req: session 0 req pty-req
>> debug1: Allocating pty.
>> debug1: session_pty_req: session 0 alloc /dev/tty2
>> chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
>> debug1: do_cleanup
>> debug1: session_pty_cleanup: session 0 release /dev/tty2
>> """
>>
>> It conflicts with mintty because every mintty allocates terminal for
>> himself like this running in mintty:
>> """
>> $ ls -l `tty`
>> crw--w---- 1 user Domain Users 136, 0 Aug 1 18:46 /dev/tty0
>> """
>>
>> Version: CYGWIN_NT-6.1-WOW64 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
>
>
> Cygwin Configuration Diagnostics atteched.

Maybe crank up the debugging flags to maximum?  I assume sshd is still
stopped from your last run of sshd -d.  If that doesn't sound right to
you, you may want to investigate why it's not running now.

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

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

* sshd failes allocating /dev/tty[0-9]
  2011-08-01 16:41 ` Alexey Luchko
  2011-08-02  2:34   ` Larry Hall (Cygwin)
@ 2011-08-02 11:33   ` Alexey Luchko
  2011-08-02 20:50     ` Larry Hall (Cygwin)
  1 sibling, 1 reply; 11+ messages in thread
From: Alexey Luchko @ 2011-08-02 11:33 UTC (permalink / raw)
  To: cygwin

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

>> Cygwin Configuration Diagnostics atteched.
 >
 > Maybe crank up the debugging flags to maximum?  I assume sshd is still
 > stopped from your last run of sshd -d.  If that doesn't sound right to
 > you, you may want to investigate why it's not running now.

sshd was stopped while that run because it did not login anyway.  and still 
don't.

The messages
 >>> debug1: Allocating pty.
 >>> debug1: session_pty_req: session 0 alloc /dev/tty2
 >>> chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
 >>> debug1: do_cleanup
 >>> debug1: session_pty_cleanup: session 0 release /dev/tty2
were got running sshd -d in console.


I've started sshd and run the cygcheck again.  The output is attached.
However, there is no actual difference.

I've stopped using mintty and tried the same in a windows' cmd-console 
window.  The problem persists.  The only difference is ownership of /dev/tty2.

I've tried chown on /dev/tty2.  It reports missing file, however it exists"
"""
$ ls -l /dev/tty2
crw------- 1 SYSTEM Administrators 136, 2 Aug  2 14:26 /dev/tty2.
$ chown user /dev/tty2
chown: changing ownership of `/dev/tty2': No such file or directory
"""

Additional information that could be helpful:
"""
$ mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
Z: on /cygdrive/z type ntfs (binary,posix=0,user,noumount,auto)

$ groups
Domain Users Administrators Remote Desktop Users Users
"""

I have no clue.  It look like the /dev is virtual fs for chown and real for 
ls.  But both are from cygwin:
"""
$ which chown ls
/usr/bin/chown
/usr/bin/ls
"""


--
Regards,
Alexey.

[-- Attachment #2: cygcheck.out2 --]
[-- Type: text/plain, Size: 27389 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Tue Aug 02 14:21:31 2011

Windows 7 Professional N Ver 6.1 Build 7601 Service Pack 1

Running under WOW64 on AMD64

Path:	c:\cygwin\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0\
	c:\usr\bin

Output from c:\cygwin\bin\id.exe
UID: 11135(user)          GID: 10513(Domain Users)
10513(Domain Users)       555(Remote Desktop Users) 545(Users)
11108(ANK.SUPPORT)

SysDir: C:\Windows\system32
WinDir: C:\Windows

CYGWIN = 'notty'
Path = 'c:\cygwin\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\usr\bin'

ALLUSERSPROFILE = 'C:\ProgramData'
APPDATA = 'C:\Users\user\AppData\Roaming'
CommonProgramFiles = 'C:\Program Files (x86)\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
CommonProgramW6432 = 'C:\Program Files\Common Files'
COMPUTERNAME = 'SOULNE4NY'
ComSpec = 'C:\Windows\system32\cmd.exe'
FARHOME = 'C:\Program Files (x86)\Far'
FARLANG = 'English'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Users\user'
LOCALAPPDATA = 'C:\Users\user\AppData\Local'
LOGONSERVER = '\\ANKSRV'
NUMBER_OF_PROCESSORS = '4'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_ARCHITEW6432 = 'AMD64'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 42 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = '6'
PROCESSOR_REVISION = '2a07'
ProgramData = 'C:\ProgramData'
ProgramFiles = 'C:\Program Files (x86)'
ProgramFiles(x86) = 'C:\Program Files (x86)'
ProgramW6432 = 'C:\Program Files'
PROMPT = '$P$G'
PSI_ENABLE_VIDEO = '1'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
PUBLIC = 'C:\Users\Public'
SESSIONNAME = 'Console'
SystemDrive = 'C:'
SystemRoot = 'C:\Windows'
TEMP = 'C:\Users\user\AppData\Local\Temp'
TMP = 'C:\Users\user\AppData\Local\Temp'
USERDNSDOMAIN = 'ANK-SIA.COM'
USERDOMAIN = 'ANK'
USERNAME = 'user'
USERPROFILE = 'C:\Users\user'
VCToolkitInstallDir = 'C:\usr\ms\vc7\'
windir = 'C:\Windows'
windows_tracing_flags = '3'
windows_tracing_logfile = 'C:\BVTBin\Tests\installpackage\csilogfile.log'

HKEY_CURRENT_USER\Console\C:_cygwin_bin_bash.exe
  (default) = 0x1e610066
  WindowSize = 0x00290066
  WindowPosition = 0x00790194
  FontSize = 0x0012000a
  FontFamily = 0x00000030
  FontWeight = 0x00000190
  FaceName = 'Terminal'
  QuickEdit = 0x00000001
HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\c:\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c5e39b7a9d22bafb Path: c:\cygwin

c:  hd  NTFS     65538Mb  48% CP CS UN PA FC     win7 root
z:  hd  NTFS    131069Mb   3% CP CS UN PA FC     win7 var

c:\cygwin        /          system  binary,auto
c:\cygwin\bin    /usr/bin   system  binary,auto
c:\cygwin\lib    /usr/lib   system  binary,auto
cygdrive prefix  /cygdrive  user    binary,auto

Found: c:\cygwin\bin\awk
 -> c:\cygwin\bin\gawk.exe
Found: c:\cygwin\bin\bash.exe
Found: c:\cygwin\bin\cat.exe
Found: c:\cygwin\bin\cp.exe
Found: c:\cygwin\bin\cpp.exe
 -> c:\cygwin\etc\alternatives\cpp
 -> c:\cygwin\bin\cpp-4.exe
Not Found: crontab
Found: c:\cygwin\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: c:\cygwin\bin\find.exe hides C:\Windows\system32\find.exe
Found: c:\cygwin\bin\gcc.exe
 -> c:\cygwin\etc\alternatives\gcc
 -> c:\cygwin\bin\gcc-4.exe
Not Found: gdb
Found: c:\cygwin\bin\grep.exe
Found: c:\cygwin\bin\kill.exe
Found: c:\cygwin\bin\ld.exe
Found: c:\cygwin\bin\ls.exe
Found: c:\cygwin\bin\make.exe
Found: c:\cygwin\bin\mv.exe
Found: c:\cygwin\bin\patch.exe
Found: c:\cygwin\bin\perl.exe
Found: c:\cygwin\bin\rm.exe
Found: c:\cygwin\bin\sed.exe
Found: c:\cygwin\bin\ssh.exe
Found: c:\cygwin\bin\sh.exe
Found: c:\cygwin\bin\tar.exe
Found: c:\cygwin\bin\test.exe
Found: c:\cygwin\bin\vi
 -> c:\cygwin\bin\vim-nox.exe
Found: c:\cygwin\bin\vim
 -> c:\cygwin\etc\alternatives\vim
 -> c:\cygwin\bin\vim-nox.exe

  117k 2011/05/16 c:\cygwin\bin\cygapr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygapr-1-0.dll" v0.0 ts=2011/5/16 20:15
   86k 2010/10/04 c:\cygwin\bin\cygaprutil-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygaprutil-1-0.dll" v0.0 ts=2010/10/5 1:28
   15k 2009/12/27 c:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2009/11/18 14:52
   95k 2010/06/24 c:\cygwin\bin\cygblkid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygblkid-1.dll" v0.0 ts=2010/6/24 22:20
   62k 2011/05/21 c:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2011/5/21 22:16
  108k 2010/01/05 c:\cygwin\bin\cygcloog-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcloog-0.dll" v0.0 ts=2010/1/5 2:45
    7k 2003/10/19 c:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 10:57
 1147k 2011/03/16 c:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2011/3/16 22:54
  284k 2010/06/01 c:\cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2010/6/1 22:07
  943k 2007/12/17 c:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 15:12
 1296k 2007/12/17 c:\cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 15:12
  511k 2010/06/17 c:\cygwin\bin\cygedit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygedit-0.dll" v0.0 ts=2010/6/17 14:42
   57k 2010/12/06 c:\cygwin\bin\cygevtlog-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygevtlog-0.dll" v0.0 ts=2010/12/6 17:59
  118k 2008/05/09 c:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/9 7:03
   29k 2010/05/12 c:\cygwin\bin\cygfam-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfam-0.dll" v0.0 ts=2010/5/12 13:26
   22k 2011/03/22 c:\cygwin\bin\cygffi-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygffi-4.dll" v0.0 ts=2011/3/22 6:13
   43k 2010/01/02 c:\cygwin\bin\cygform-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-10.dll" v0.0 ts=2010/1/2 16:49
   40k 2009/03/01 c:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2009/3/1 8:32
   43k 2009/11/20 c:\cygwin\bin\cygform-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-9.dll" v0.0 ts=2009/11/20 21:14
   47k 2010/01/02 c:\cygwin\bin\cygformw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygformw-10.dll" v0.0 ts=2010/1/2 19:31
   44k 2011/03/22 c:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2011/3/22 6:02
   19k 2009/02/26 c:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2009/2/26 9:58
    8k 2009/02/26 c:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2009/2/26 9:58
  552k 2010/06/15 c:\cygwin\bin\cyggio-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggio-2.0-0.dll" v0.0 ts=2010/6/15 6:25
  764k 2010/06/15 c:\cygwin\bin\cygglib-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygglib-2.0-0.dll" v0.0 ts=2010/6/15 6:22
   14k 2010/06/15 c:\cygwin\bin\cyggmodule-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmodule-2.0-0.dll" v0.0 ts=2010/6/15 6:23
  317k 2011/07/31 c:\cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2011/7/31 8:14
   14k 2011/07/31 c:\cygwin\bin\cyggmpxx-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmpxx-4.dll" v0.0 ts=2011/7/31 13:31
  233k 2010/06/15 c:\cygwin\bin\cyggobject-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggobject-2.0-0.dll" v0.0 ts=2010/6/15 6:23
   25k 2011/03/22 c:\cygwin\bin\cyggomp-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggomp-1.dll" v0.0 ts=2011/3/22 6:16
   17k 2010/06/15 c:\cygwin\bin\cyggthread-2.0-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggthread-2.0-0.dll" v0.0 ts=2010/6/15 6:23
   24k 2009/06/23 c:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2009/6/23 15:20
   25k 2011/01/26 c:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2011/1/26 5:25
  358k 2011/04/29 c:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2011/4/29 7:37
  980k 2011/01/28 c:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/1/28 5:52
  193k 2010/05/16 c:\cygwin\bin\cygidn-11.dll - os=4.0 img=1.0 sys=4.0
                  "cygidn-11.dll" v0.0 ts=2010/5/16 16:37
   31k 2005/11/20 c:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/20 4:04
   31k 2009/04/03 c:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2009/4/3 4:15
   39k 2008/09/07 c:\cygwin\bin\cyglber-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyglber-2-3-0.dll" v0.0 ts=2008/9/7 15:28
  189k 2008/09/07 c:\cygwin\bin\cygldap-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap-2-3-0.dll" v0.0 ts=2008/9/7 15:29
  201k 2008/09/07 c:\cygwin\bin\cygldap_r-2-3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygldap_r-2-3-0.dll" v0.0 ts=2008/9/7 15:31
    5k 2011/03/29 c:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2011/3/29 0:14
    9k 2011/03/29 c:\cygwin\bin\cyglsa64.dll - os=5.2 img=0.0 sys=5.2
  123k 2011/05/19 c:\cygwin\bin\cyglzma-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyglzma-5.dll" v0.0 ts=2011/5/19 5:41
   25k 2010/01/02 c:\cygwin\bin\cygmenu-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-10.dll" v0.0 ts=2010/1/2 16:48
   21k 2009/03/01 c:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2009/3/1 8:31
   25k 2009/11/20 c:\cygwin\bin\cygmenu-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-9.dll" v0.0 ts=2009/11/20 21:13
   25k 2010/01/02 c:\cygwin\bin\cygmenuw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenuw-10.dll" v0.0 ts=2010/1/2 19:30
   24k 2008/10/30 c:\cygwin\bin\cygminires.dll - os=4.0 img=1.2 sys=4.0
                  "cygminires.dll" v0.0 ts=2008/10/31 1:53
  213k 2011/07/31 c:\cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2011/7/31 8:12
   64k 2009/11/09 c:\cygwin\bin\cygmpc-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpc-1.dll" v0.0 ts=2009/11/9 3:21
  269k 2009/06/07 c:\cygwin\bin\cygmpfr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmpfr-1.dll" v0.0 ts=2009/6/8 0:10
   63k 2010/01/02 c:\cygwin\bin\cygncurses++-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-10.dll" v0.0 ts=2010/1/2 17:00
   66k 2009/03/01 c:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2009/3/1 8:39
   63k 2009/11/20 c:\cygwin\bin\cygncurses++-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-9.dll" v0.0 ts=2009/11/20 21:25
   63k 2010/01/02 c:\cygwin\bin\cygncurses++w-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++w-10.dll" v0.0 ts=2010/1/2 19:41
  195k 2010/01/02 c:\cygwin\bin\cygncurses-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-10.dll" v0.0 ts=2010/1/2 16:45
  237k 2009/03/01 c:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2009/3/1 8:28
  198k 2009/11/20 c:\cygwin\bin\cygncurses-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-9.dll" v0.0 ts=2009/11/20 21:10
  244k 2010/01/02 c:\cygwin\bin\cygncursesw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygncursesw-10.dll" v0.0 ts=2010/1/2 19:28
  119k 2010/05/18 c:\cygwin\bin\cygneon-27.dll - os=4.0 img=1.0 sys=4.0
                  "cygneon-27.dll" v0.0 ts=2010/5/18 15:05
   13k 2010/01/02 c:\cygwin\bin\cygpanel-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-10.dll" v0.0 ts=2010/1/2 16:47
   11k 2009/03/01 c:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2009/3/1 8:30
   13k 2009/11/20 c:\cygwin\bin\cygpanel-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-9.dll" v0.0 ts=2009/11/20 21:12
   13k 2010/01/02 c:\cygwin\bin\cygpanelw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanelw-10.dll" v0.0 ts=2010/1/2 18:30
  224k 2010/06/15 c:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2010/6/15 7:10
   10k 2010/06/15 c:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2010/6/15 7:11
 1627k 2010/08/29 c:\cygwin\bin\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2010/8/28 21:17
   22k 2002/06/09 c:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 8:45
  695k 2009/04/18 c:\cygwin\bin\cygppl-7.dll - os=4.0 img=1.0 sys=4.0
                  "cygppl-7.dll" v0.0 ts=2009/4/18 15:44
 2481k 2009/04/18 c:\cygwin\bin\cygppl_c-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygppl_c-2.dll" v0.0 ts=2009/4/18 15:47
  103k 2009/01/07 c:\cygwin\bin\cygpq.dll - os=4.0 img=1.0 sys=4.0
                  "cygpq.dll" v0.0 ts=2009/1/7 18:46
   27k 2009/09/07 c:\cygwin\bin\cygproxy-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygproxy-0.dll" v0.0 ts=2009/9/7 3:56
   18k 2009/04/18 c:\cygwin\bin\cygpwl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygpwl-4.dll" v0.0 ts=2009/4/18 15:44
  155k 2009/06/23 c:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2009/6/23 15:20
  164k 2011/01/26 c:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2011/1/26 5:25
   84k 2010/07/02 c:\cygwin\bin\cygsasl2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsasl2-2.dll" v0.0 ts=2010/7/2 6:19
   54k 2011/03/04 c:\cygwin\bin\cygserf-0-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygserf-0-1.dll" v0.0 ts=2011/3/4 19:45
    8k 2011/05/05 c:\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygsigsegv-2.dll" v0.0 ts=2011/5/5 10:33
 1613k 2010/12/01 c:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2010/12/1 14:20
  121k 2010/06/01 c:\cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2010/6/1 21:44
  263k 2011/03/16 c:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2011/3/16 22:54
    8k 2011/03/22 c:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2011/3/22 6:12
  771k 2011/03/22 c:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2011/3/22 6:53
  232k 2011/06/03 c:\cygwin\bin\cygsvn_client-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_client-1-0.dll" v0.0 ts=2011/6/2 20:45
   36k 2011/06/03 c:\cygwin\bin\cygsvn_delta-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_delta-1-0.dll" v0.0 ts=2011/6/2 20:40
   39k 2011/06/03 c:\cygwin\bin\cygsvn_diff-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_diff-1-0.dll" v0.0 ts=2011/6/2 20:40
   18k 2011/06/03 c:\cygwin\bin\cygsvn_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs-1-0.dll" v0.0 ts=2011/6/2 20:41
  141k 2011/06/03 c:\cygwin\bin\cygsvn_fs_base-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_base-1-0.dll" v0.0 ts=2011/6/2 20:41
  123k 2011/06/03 c:\cygwin\bin\cygsvn_fs_fs-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_fs-1-0.dll" v0.0 ts=2011/6/2 20:41
    7k 2011/06/03 c:\cygwin\bin\cygsvn_fs_util-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_fs_util-1-0.dll" v0.0 ts=2011/6/2 20:40
   29k 2011/06/03 c:\cygwin\bin\cygsvn_ra-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra-1-0.dll" v0.0 ts=2011/6/2 20:44
   23k 2011/06/03 c:\cygwin\bin\cygsvn_ra_local-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_local-1-0.dll" v0.0 ts=2011/6/2 20:43
  112k 2011/06/03 c:\cygwin\bin\cygsvn_ra_neon-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_neon-1-0.dll" v0.0 ts=2011/6/2 20:41
  113k 2011/06/03 c:\cygwin\bin\cygsvn_ra_serf-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_serf-1-0.dll" v0.0 ts=2011/6/2 20:41
   68k 2011/06/03 c:\cygwin\bin\cygsvn_ra_svn-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_ra_svn-1-0.dll" v0.0 ts=2011/6/2 20:41
  140k 2011/06/03 c:\cygwin\bin\cygsvn_repos-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_repos-1-0.dll" v0.0 ts=2011/6/2 20:42
  238k 2011/06/03 c:\cygwin\bin\cygsvn_subr-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_subr-1-0.dll" v0.0 ts=2011/6/2 20:40
  238k 2011/06/03 c:\cygwin\bin\cygsvn_wc-1-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsvn_wc-1-0.dll" v0.0 ts=2011/6/2 20:41
  330k 2010/12/09 c:\cygwin\bin\cygsyslog-ng-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsyslog-ng-0.dll" v0.0 ts=2010/12/9 15:33
   48k 2010/01/02 c:\cygwin\bin\cygtic-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-10.dll" v0.0 ts=2010/1/2 16:45
   48k 2009/11/20 c:\cygwin\bin\cygtic-9.dll - os=4.0 img=1.0 sys=4.0
                  "cygtic-9.dll" v0.0 ts=2009/11/20 21:10
   48k 2010/01/02 c:\cygwin\bin\cygticw-10.dll - os=4.0 img=1.0 sys=4.0
                  "cygticw-10.dll" v0.0 ts=2010/1/2 19:28
   16k 2010/06/24 c:\cygwin\bin\cyguuid-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyguuid-1.dll" v0.0 ts=2010/6/24 22:19
   28k 2010/03/28 c:\cygwin\bin\cygwrap-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwrap-0.dll" v0.0 ts=2010/3/28 12:02
   76k 2010/08/01 c:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2010/8/2 0:04
 2604k 2011/03/29 c:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2011/3/29 11:10
    Cygwin DLL version info:
        DLL version: 1.7.9
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 237
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Service             : sshd
Display name        : CYGWIN sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : .\sshd


Cygwin Package Information
Last downloaded files to: Z:\inst\cygwin\repa
Last downloaded files from: http://ftp.heanet.ie/pub/cygwin/

Package                 Version              Status
_update-info-dir        00970-1              OK
alternatives            1.3.30c-10           OK
attr                    2.4.43-1             OK
base-cygwin             3.0-1                OK
base-files              4.0-6                OK
bash                    4.1.10-4             OK
bc                      1.06-2               OK
binutils                2.21.53-1            OK
bzip2                   1.0.6-2              OK
colordiff               1.0.9-1              OK
colorgcc                1.3.2-2              OK
coreutils               8.10-1               OK
cpio                    2.11-1               OK
crypt                   1.1-1                OK
csih                    0.9.4-1              OK
curl                    7.20.1-1             OK
cvs                     1.12.13-10           OK
cvsps                   2.2b1-1              OK
cygrunsrv               1.34-1               OK
cygutils                1.4.6-1              OK
cygwin                  1.7.9-1              OK
cygwin-doc              1.7-1                OK
dash                    0.5.6.1-2            OK
diffutils               2.9-1                OK
dos2unix                5.3-1                OK
ed                      1.0-1                OK
editrights              1.01-2               OK
findutils               4.5.9-2              OK
gamin                   0.1.10-11            OK
gawk                    4.0.0-1              OK
Empty package gcc
gcc                     3.4.4-999            OK
gcc-core                3.4.4-999            OK
gcc-g++                 3.4.4-999            OK
Empty package gcc-mingw
gcc-mingw               20040810-1           OK
gcc-mingw-core          20050522-3           OK
gcc-mingw-g++           20050522-3           OK
gcc4                    4.3.4-4              OK
gcc4-core               4.3.4-4              OK
gcc4-g++                4.3.4-4              OK
gettext                 0.17-11              OK
git                     1.7.5.1-1            OK
gitk                    1.7.5.1-1            OK
grep                    2.6.3-1              OK
groff                   1.20.1-2             OK
gzip                    1.4-1                OK
ipc-utils               1.0-1                OK
keychain                2.6.8-1              OK
less                    444-1                OK
libapr1                 1.4.4-1              OK
libaprutil1             1.3.10-1             OK
libattr1                2.4.43-1             OK
libblkid1               2.17.2-1             OK
libbz2_1                1.0.6-2              OK
libcloog0               0.15.7-1             OK
libcurl4                7.20.1-1             OK
libdb4.5                4.5.20.2-2           OK
libedit0                20090923-1           OK
libevtlog0              0.2.12-1             OK
libexpat1               2.0.1-1              OK
libfam0                 0.1.10-11            OK
libffi4                 4.3.4-4              OK
libgcc1                 4.3.4-4              OK
libgdbm4                1.8.3-20             OK
libglib2.0_0            2.24.1-1             OK
libgmp3                 4.3.2-1              OK
libgmpxx4               4.3.2-1              OK
libgomp1                4.3.4-4              OK
libiconv2               1.13.1-2             OK
libidn11                1.18-1               OK
libintl3                0.14.5-1             OK
libintl8                0.17-11              OK
liblzma5                5.0.2_20110517-1     OK
libmpc1                 0.8-1                OK
libmpfr1                2.4.1-4              OK
libncurses10            5.7-18               OK
libncurses8             5.5-10               OK
libncurses9             5.7-16               OK
libncursesw10           5.7-18               OK
libneon27               0.29.3-1             OK
libopenldap2_3_0        2.3.43-1             OK
libopenssl098           0.9.8r-2             OK
libpcre0                8.02-1               OK
libpopt0                1.6.4-4              OK
libppl                  0.10.2-1             OK
libpq5                  8.2.11-1             OK
libproxy0               0.2.3-2              OK
libreadline6            5.2.14-12            OK
libreadline7            6.1.2-2              OK
libsasl2                2.1.23-1             OK
libserf0_1              0.7.1-1              OK
libsigsegv2             2.10-1               OK
libsqlite3_0            3.7.3-1              OK
libssh2_1               1.2.5-1              OK
libssp0                 4.3.4-4              OK
libstdc++6              4.3.4-4              OK
libstdc++6-devel        4.3.4-4              OK
libuuid1                2.17.2-1             OK
libwrap0                7.6-21               OK
links                   2.2-1                OK
login                   1.10-10              OK
lynx                    2.8.5-4              OK
make                    3.81-2               OK
man                     1.6f-1               OK
mingw-binutils          2.21-1               OK
mingw-gcc-core          4.5.2-1              OK
mingw-pthreads          20110507-1           OK
mingw-runtime           3.18-3               OK
mingw-w32api            3.17-2               OK
mingw-zlib-devel        1.2.5-6              OK
mingw-zlib1             1.2.5-6              OK
mingw64-x86_64-binutils 2.21.51-3            OK
mingw64-x86_64-gcc-core 4.5.3-1              OK
mingw64-x86_64-headers  1.0b_svn4214-1       OK
mingw64-x86_64-pthreads 20100619-3           OK
mingw64-x86_64-runtime  1.0b_svn4214-1       OK
minires                 1.02-1               OK
mintty                  1.0.1-1              OK
netcat                  1.10-2               OK
openssh                 5.8p1-1              OK
p7zip                   9.20.1-1             OK
patch                   2.5.8-9              OK
patchutils              0.3.2-1              OK
perl                    5.10.1-5             OK
perl-Error              0.17016-1            OK
ping                    1.0-1                OK
pwgen                   2.06-2               OK
rebase                  3.0.1-1              OK
rsync                   3.0.8-1              OK
run                     1.1.13-1             OK
sed                     4.2.1-1              OK
shutdown                1.7-1                OK
sqlite3                 3.7.3-1              OK
subversion              1.6.17-1             OK
syslog-ng               3.2.1-1              OK
tar                     1.25-1               OK
tcltk                   20080420-1           OK
terminfo                5.7_20091114-14      OK
terminfo0               5.5_20061104-12      OK
texinfo                 4.13-3               OK
tzcode                  2010j-1              OK
unzip                   6.0-10               OK
util-linux              2.17.2-1             OK
vim                     7.3.003-1            OK
w32api                  3.17-2               OK
wget                    1.12-1               OK
which                   2.20-2               OK
xz                      5.0.2_20110517-1     OK
zip                     3.0-11               OK
zlib                    1.2.5-1              OK
zlib-devel              1.2.5-1              OK
zlib0                   1.2.5-1              OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

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

* Re: sshd failes allocating /dev/tty[0-9]
  2011-08-02 11:33   ` sshd failes " Alexey Luchko
@ 2011-08-02 20:50     ` Larry Hall (Cygwin)
  2011-08-03 16:51       ` Alexey Luchko
  0 siblings, 1 reply; 11+ messages in thread
From: Larry Hall (Cygwin) @ 2011-08-02 20:50 UTC (permalink / raw)
  To: cygwin

On 8/2/2011 7:32 AM, Alexey Luchko wrote:
>>> Cygwin Configuration Diagnostics atteched.
>  >
>  > Maybe crank up the debugging flags to maximum? I assume sshd is still
>  > stopped from your last run of sshd -d. If that doesn't sound right to
>  > you, you may want to investigate why it's not running now.
>
> sshd was stopped while that run because it did not login anyway. and still
> don't.

sshd will run even if you're having problems connecting to it.  I'm just
making sure that you are testing with a running server.  If not, then
you want to make sure the server is running first.

> The messages
>  >>> debug1: Allocating pty.
>  >>> debug1: session_pty_req: session 0 alloc /dev/tty2
>  >>> chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
>  >>> debug1: do_cleanup
>  >>> debug1: session_pty_cleanup: session 0 release /dev/tty2
> were got running sshd -d in console.

I was suggesting that you run sshd with all the debug flags
(i.e. "-d -d -d") to see if you'd get more useful information
about your problem.

<snip>

> I have no clue. It look like the /dev is virtual fs for chown and real for
> ls. But both are from cygwin:
> """
> $ which chown ls
> /usr/bin/chown
> /usr/bin/ls

/dev is a virtual.  See:

<http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices>


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

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

* Re: Re: sshd failes allocating /dev/tty[0-9]
  2011-08-02 20:50     ` Larry Hall (Cygwin)
@ 2011-08-03 16:51       ` Alexey Luchko
  0 siblings, 0 replies; 11+ messages in thread
From: Alexey Luchko @ 2011-08-03 16:51 UTC (permalink / raw)
  To: cygwin

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

On 21:59, Larry Hall (Cygwin) wrote:
> On 8/2/2011 7:32 AM, Alexey Luchko wrote:
>>>> Cygwin Configuration Diagnostics atteched.
>> >
>> > Maybe crank up the debugging flags to maximum? I assume sshd is still
>> > stopped from your last run of sshd -d. If that doesn't sound right to
>> > you, you may want to investigate why it's not running now.
>>
>> sshd was stopped while that run because it did not login anyway. and still
>> don't.
>
> sshd will run even if you're having problems connecting to it. I'm just
> making sure that you are testing with a running server. If not, then
> you want to make sure the server is running first.

Yes, it's running.  Now it is set up as a service with automatic start up.


>> The messages
>> >>> debug1: Allocating pty.
>> >>> debug1: session_pty_req: session 0 alloc /dev/tty2
>> >>> chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
>> >>> debug1: do_cleanup
>> >>> debug1: session_pty_cleanup: session 0 release /dev/tty2
>> were got running sshd -d in console.
>
> I was suggesting that you run sshd with all the debug flags
> (i.e. "-d -d -d") to see if you'd get more useful information
> about your problem.

I've run it with -ddd.  There is nothing new around the tty allocation.
The full output is attached.  May be it can give some clue.


Thank you :)

--
Alex

[-- Attachment #2: sshd-ddd.log --]
[-- Type: text/plain, Size: 9810 bytes --]

debug2: load_server_config: filename /etc/sshd_config
debug2: load_server_config: done config len = 226
debug2: parse_server_config: config /etc/sshd_config len 226
debug3: /etc/sshd_config:13 setting Port 22
debug3: /etc/sshd_config:19 setting Protocol 2
debug3: /etc/sshd_config:35 setting LogLevel DEBUG
debug3: /etc/sshd_config:41 setting StrictModes no
debug3: /etc/sshd_config:97 setting UsePrivilegeSeparation yes
debug3: /etc/sshd_config:112 setting Subsystem sftp	/usr/sbin/sftp-server
debug1: sshd version OpenSSH_5.8p1
debug3: Incorrect RSA1 identifier
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug3: Incorrect RSA1 identifier
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug3: Incorrect RSA1 identifier
debug1: read PEM private key done: type ECDSA
debug1: private host key: #2 type 3 ECDSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-ddd'
debug2: fd 3 setting O_NONBLOCK
debug3: sock_set_v6only: set socket 3 IPV6_V6ONLY
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug2: fd 4 setting O_NONBLOCK
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: fd 5 clearing O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug3: send_rexec_state: entering fd = 8 config len 226
debug3: ssh_msg_send: type 0
debug3: send_rexec_state: done
debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8
debug1: inetd sockets after dupping: 3, 3
Connection from ::1 port 61981
debug1: Client protocol version 2.0; client software version OpenSSH_5.8
debug1: match: OpenSSH_5.8 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.8
debug2: fd 3 setting O_NONBLOCK
debug2: Network child is on pid 1292
debug3: preauth child monitor started
debug3: mm_request_receive entering
debug1: list_hostkey_types: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openssh.com,ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: expecting SSH2_MSG_KEX_ECDH_INIT
debug3: mm_key_sign entering
debug3: mm_request_send entering: type 4
debug3: mm_key_sign: waiting for MONITOR_ANS_SIGN
debug3: mm_request_receive_expect entering: type 5
debug3: mm_request_receive entering
debug3: monitor_read: checking request 4
debug3: mm_answer_sign
debug3: mm_answer_sign: signature 0x1044e050(100)
debug3: mm_request_send entering: type 5
debug2: monitor_read: 4 used once, disabling now
debug3: mm_request_receive entering
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user user service ssh-connection method none
debug1: attempt 0 failures 0
debug3: mm_getpwnamallow entering
debug3: mm_request_send entering: type 6
debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM
debug3: mm_request_receive_expect entering: type 7
debug3: mm_request_receive entering
debug3: monitor_read: checking request 6
debug3: mm_answer_pwnamallow
debug3: Trying to reverse map address ::1.
Address ::1 maps to soulne4ny.ank.medap, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
debug2: parse_server_config: config reprocess config len 226
debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
debug3: mm_request_send entering: type 7
debug2: monitor_read: 6 used once, disabling now
debug3: mm_request_receive entering
debug2: input_userauth_request: setting up authctxt for user
debug3: mm_inform_authserv entering
debug3: mm_request_send entering: type 3
debug2: input_userauth_request: try method none
debug3: monitor_read: checking request 3
debug3: mm_answer_authserv: service=ssh-connection, style=
debug2: monitor_read: 3 used once, disabling now
debug3: mm_request_receive entering
debug1: userauth-request for user user service ssh-connection method keyboard-interactive
debug1: attempt 1 failures 0
debug2: input_userauth_request: try method keyboard-interactive
debug1: keyboard-interactive devs 
debug1: auth2_challenge: user=user devs=
debug1: kbdint_alloc: devices ''
debug2: auth2_challenge_start: devices 
debug1: userauth-request for user user service ssh-connection method password
debug1: attempt 2 failures 1
debug2: input_userauth_request: try method password
debug3: mm_auth_password entering
debug3: mm_request_send entering: type 10
debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD
debug3: mm_request_receive_expect entering: type 11
debug3: monitor_read: checking request 10
debug3: mm_request_receive entering
debug3: mm_answer_authpassword: sending result 1
debug3: mm_request_send entering: type 11
Accepted password for user from ::1 port 61981 ssh2
debug1: monitor_child_preauth: user has been authenticated by privileged process
debug3: mm_auth_password: user authenticated
debug3: mm_get_keystate: Waiting for new keys
debug3: mm_request_receive_expect entering: type 24
debug3: mm_request_receive entering
debug3: mm_send_keystate: Sending new keys: 0x1045a718 0x1044e980
debug3: mm_newkeys_to_blob: converting 0x1045a718
debug3: mm_newkeys_to_blob: converting 0x1044e980
debug3: mm_send_keystate: New keys have been sent
debug3: mm_send_keystate: Sending compression state
debug3: mm_request_send entering: type 24
debug3: mm_send_keystate: Finished sending state
debug3: mm_newkeys_from_blob: 0x1045a338(118)
debug2: mac_setup: found hmac-md5
debug3: mm_get_keystate: Waiting for second key
debug3: mm_newkeys_from_blob: 0x1045b428(118)
debug2: mac_setup: found hmac-md5
debug3: mm_get_keystate: Getting compression state
debug3: mm_get_keystate: Getting Network I/O buffers
debug3: mm_share_sync: Share sync
debug3: mm_share_sync: Share sync end
debug2: set_newkeys: mode 0
debug2: set_newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug2: session_new: allocate (allocated 0 max 10)
debug3: session_unused: session id 0 unused
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_global_request: rtype no-more-sessions@openssh.com want_reply 0
debug1: server_input_channel_req: channel 0 request pty-req reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
debug1: Allocating pty.
debug1: session_pty_req: session 0 alloc /dev/tty2
chown(/dev/tty2, 11135, 10513) failed: Bad file descriptor
debug1: do_cleanup
debug1: session_pty_cleanup: session 0 release /dev/tty2

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

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

* Re: sshd on win7
  2011-08-01 15:51 sshd conflicts with mintty allocating /dev/tty[0-9] Alexey Luchko
  2011-08-01 16:10 ` Christopher Faylor
  2011-08-01 16:41 ` Alexey Luchko
@ 2011-08-08 16:30 ` Alexey Luchko
  2011-08-10 16:11   ` Larry Hall (Cygwin)
  2 siblings, 1 reply; 11+ messages in thread
From: Alexey Luchko @ 2011-08-08 16:30 UTC (permalink / raw)
  To: cygwin

Hi!

Today I tried login to sshd running as windows service.  ssh client told: """
user@localhost's password:
Last login: Mon Aug  8 19:21:03 2011 from ::1
/bin/bash: Permission denied
Connection to localhost closed.
"""

However, /bin/bash exists and the user is able to run it and the privilege 
separation account as well.


Then I tried running sshd -ddd from a console using the same user account 
as the service.  It told me chown(/dev/tty3, 11135, 10513) failed: Bad file 
descriptor.

The privilege separation user is in the local Administrators group.


I can't get a clue.   Any suggestion is very welcome :)

--
Thanks in advance.
Alex

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

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

* Re: sshd on win7
  2011-08-08 16:30 ` sshd on win7 Alexey Luchko
@ 2011-08-10 16:11   ` Larry Hall (Cygwin)
  2011-08-12 15:50     ` sshd on win7 x64 Alexey Luchko
  0 siblings, 1 reply; 11+ messages in thread
From: Larry Hall (Cygwin) @ 2011-08-10 16:11 UTC (permalink / raw)
  To: cygwin

On 8/8/2011 12:30 PM, Alexey Luchko wrote:
> Today I tried login to sshd running as windows service.  ssh client told: """
> user@localhost's password:
> Last login: Mon Aug  8 19:21:03 2011 from ::1
> /bin/bash: Permission denied
> Connection to localhost closed.
> """
>
> However, /bin/bash exists and the user is able to run it and the privilege
> separation account as well.

This doesn't really mean that /bin/bash is inaccessible.  It means that bash
found something else inaccessible when running.  Check your resource file
permissions.  Look for network paths and other goodies in your rc files.
Turn on debugging in these files if you need to.  Make sure your home
directory is set properly in '/etc/passwd' as well.

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

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

* Re: sshd on win7 x64
  2011-08-10 16:11   ` Larry Hall (Cygwin)
@ 2011-08-12 15:50     ` Alexey Luchko
  2011-08-15 22:09       ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 11+ messages in thread
From: Alexey Luchko @ 2011-08-12 15:50 UTC (permalink / raw)
  To: cygwin

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: userauth-request for user domain_user service ssh-connection method 
publickey
debug1: attempt 1 failures 0
debug2: input_userauth_request: try method publickey
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 11135/10513 (e=1003/513)
seteuid 11135: Permission denied
debug1: do_cleanup
debug1: do_cleanup
"""


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:
"""
debug1: userauth-request for user local_user service ssh-connection method pass
debug1: attempt 2 failures 1
debug2: input_userauth_request: try method password
Accepted password for local_user from ::1 port 63997 ssh2
debug1: monitor_child_preauth: local_user has been authenticated by 
privileged s
debug2: mac_setup: found hmac-md5
debug2: mac_setup: found hmac-md5
debug2: set_newkeys: mode 0
debug2: set_newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug2: session_new: allocate (allocated 0 max 10)
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug1: server_input_global_request: rtype no-more-sessions@openssh.com want_re
debug1: server_input_channel_req: channel 0 request pty-req reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req pty-req
debug1: Allocating pty.
debug1: session_pty_req: session 0 alloc /dev/tty3
chown(/dev/tty3, 1001, 513) failed: Bad file descriptor
debug1: do_cleanup
debug1: session_pty_cleanup: session 0 release /dev/tty3
"""

Should I try to run sshd service with a domain user for privilege 
separation?   Currently it is local, one of administrators group.

Both local_user and domain_user are administrators too.  Does it matter?


 >> Today I tried login to sshd running as windows service. ssh client 
told: """
 >> user@localhost's password:
 >> Last login: Mon Aug 8 19:21:03 2011 from ::1
 >> /bin/bash: Permission denied
 >> Connection to localhost closed.
 >>
 >> However, /bin/bash exists and the user is able to run it and the privilege
 >> separation account as well.
 >
 > This doesn't really mean that /bin/bash is inaccessible. It means that bash
 > found something else inaccessible when running.

I also checked all the paths I can guess.  They are accessible by privilege 
separation user and by both local_user and domain_user.

The previous time I was trying only a domain user.


Thank you for your help, Larry!

-- 
Regards,
Alexey.

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

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

* Re: sshd on win7 x64
  2011-08-12 15:50     ` sshd on win7 x64 Alexey Luchko
@ 2011-08-15 22:09       ` Larry Hall (Cygwin)
  0 siblings, 0 replies; 11+ messages in thread
From: Larry Hall (Cygwin) @ 2011-08-15 22:09 UTC (permalink / raw)
  To: cygwin

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

<snip>

> debug1: temporarily_use_uid: 11135/10513 (e=1003/513)
> seteuid 11135: Permission denied

<snip>

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

<snip>

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

<http://cygwin.com/acronyms/#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

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

end of thread, other threads:[~2011-08-15 22:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-01 15:51 sshd conflicts with mintty allocating /dev/tty[0-9] Alexey Luchko
2011-08-01 16:10 ` Christopher Faylor
2011-08-01 16:41 ` Alexey Luchko
2011-08-02  2:34   ` Larry Hall (Cygwin)
2011-08-02 11:33   ` sshd failes " Alexey Luchko
2011-08-02 20:50     ` Larry Hall (Cygwin)
2011-08-03 16:51       ` Alexey Luchko
2011-08-08 16:30 ` sshd on win7 Alexey Luchko
2011-08-10 16:11   ` Larry Hall (Cygwin)
2011-08-12 15:50     ` sshd on win7 x64 Alexey Luchko
2011-08-15 22:09       ` Larry Hall (Cygwin)

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