public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter
@ 2003-09-04 14:57 Fermin Sanchez
  2003-09-04 15:25 ` Christopher Faylor
  2003-09-04 15:34 ` Corinna Vinschen
  0 siblings, 2 replies; 3+ messages in thread
From: Fermin Sanchez @ 2003-09-04 14:57 UTC (permalink / raw)
  To: cygwin

Hello there

I used to have cygwin sshd running on my old Windows 2000 Domain 
Controller, worked like a charm. Some time ago I switched (reinstalled, 
actually) my domain controller to Windows Server 2003.

I went through the usual steps: download, "ssh-host-config -y", security 
model "ntsec" and installed it as a service. First, it worked for about 5 
minutes. Then, when I tried to connect from a remote host, I got a network 
connection error. The server isn't accepting connections any more. 
Restarting the sshd service in windows results in:

"The CYGWIN sshd service on Local Computer started and then stopped. Some 
services stop automatically if they have no work to do, for example, the 
Performance Logs and Alerts service".

Needless to say, I don't think the sshd has nothing to do ...

The windows event log has a bit more informations:
sshd : PID 5648: socket: Operation not permitted.
sshd : PID 5648: fatal: Cannot bind any address..
sshd : PID 3508: starting service 'sshd' failed: execv: 255, error 255
sshd : PID 3508: 'sshd' service stopped.

/var/log/sshd.log shows:
c:\cygwin\usr\sbin\sshd.exe: *** could not load user32, Win32 error 0

This is the only entry in this file, regardless of how many times I try to 
restart the service.

Thanks for your help
Fermin

Information about my system:

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Sep 04 16:47:42 2003

Windows .NET Enterprise Server Ver 5.2 Build 3790

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\Program Files\Support Tools\
	c:\WINDOWS\system32
	c:\WINDOWS
	c:\WINDOWS\System32\Wbem
	c:\Program Files\Resource Kit\
	c:\Program Files\Microsoft SQL Server\80\Tools\BINN

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 500(Administrator) GID: 513(Domain Users)
513(Domain Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 500(Administrator) GID: 513(Domain Users)
513(Domain Users)
544(Administrators)                      554(Pre-Windows 2000 Compatible 
Access)
545(Users)
10513(mkgroup_l_d)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\Administrator'
MAKE_MODE = `unix'
PWD = `/var/log'
USER = `Administrator'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
   (default) = `/cygdrive'
   cygdrive flags = 0x00000022
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\mounts 
v2\/usr/X11R6/lib/X11/fonts
   (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
   flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A
c:  hd  NTFS    4086Mb  88% CP CS UN PA FC
d:  hd  NTFS   40954Mb  50% CP CS UN PA FC     Data
y:  hd  HGFS    3906Mb  10% CP                 SHARED FOLDERS
z:  cd           N/A    N/A

C:\cygwin                          /                         system  
binmode
C:\cygwin/bin                      /usr/bin                  system  
binmode
C:\cygwin/lib                      /usr/lib                  system  
binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  
binmode
.                                  /cygdrive                 system  
binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

    61k 2003/08/09 C:\cygwin\bin\cygbz2-1.dll
   849k 2003/08/11 C:\cygwin\bin\cygcrypto-0.9.7.dll
    45k 2001/04/25 C:\cygwin\bin\cygform5.dll
    35k 2002/01/09 C:\cygwin\bin\cygform6.dll
    48k 2003/08/09 C:\cygwin\bin\cygform7.dll
    28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll
    30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll
    19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll
    15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll
    15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll
    69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll
    12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll
   134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll
    17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
    29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll
   958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll
    22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
    37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll
    21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll
    26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
    20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
    29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll
   156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
   175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
   226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
   202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll
    15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
    12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
    19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll
    67k 2003/08/22 C:\cygwin\bin\cygpcre-0.dll
    63k 2003/04/11 C:\cygwin\bin\cygpcre.dll
    15k 2003/08/22 C:\cygwin\bin\cygpcreposix-0.dll
    61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll
   168k 2003/08/10 C:\cygwin\bin\cygpng10.dll
    22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll
   108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
   148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll
   176k 2003/08/11 C:\cygwin\bin\cygssl-0.9.7.dll
   281k 2003/02/24 C:\cygwin\bin\cygtiff3.dll
    60k 2003/08/09 C:\cygwin\bin\cygz.dll
   945k 2003/09/01 C:\cygwin\bin\cygwin1.dll
     Cygwin DLL version info:
         DLL version: 1.5.3
         DLL epoch: 19
         DLL bad signal mask: 19005
         DLL old termios: 5
         DLL malloc env: 28
         API major: 0
         API minor: 90
         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: Mon Sep 1 13:15:28 EDT 2003
         Shared id: cygwin1S3

   671k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygdps-1.dll
    53k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygdpstk-1.dll
   146k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygexpat-1.dll
   174k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygfontconfig-1.dll
   340k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygfreetype-9.dll
   524k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygGL-1.dll
   592k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygGLU-1.dll
   109k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygICE-6.dll
    25k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygoldX-6.dll
  1510k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygOSMesa-4.dll
    41k 2002/05/14 C:\cygwin\usr\X11R6\bin\cygPropList-0.dll
    40k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygpsres-1.dll
    54k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygSM-6.dll
  1067k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygX11-6.dll
    57k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXcursor-1.dll
    77k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXext-6.dll
    83k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXft-1.dll
   105k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXft-2.dll
    53k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXi-6.dll
    29k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXmuu-1.dll
    58k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXp-6.dll
    81k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXpm-4.dll
    29k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXrandr-2.dll
    49k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXrender-1.dll
   384k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll
    38k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll
    34k 2003/08/01 C:\cygwin\usr\X11R6\bin\cygXv-1.dll

Cygwin Package Information
Package                 Version
_update-info-dir        00203-1
ash                     20020731-3
base-files              2.5-1
base-passwd             1.1-1
bash                    2.05b-12
bzip2                   1.0.2-5
cygrunsrv               0.96-2
cygutils                1.2.1-2
cygwin                  1.5.3-1
cygwin-doc              1.3-5
diffutils               2.8.4-1
ed                      0.2-1
fileutils               4.1-2
findutils               4.1.7-4
gawk                    3.1.3-3
gdbm                    1.8.3-3
gettext                 0.12.1-3
grep                    2.5-1
groff                   1.18.1-2
gzip                    1.3.3-4
inetutils               1.3.2-24
less                    381-1
libbz2_1                1.0.2-5
libgdbm                 1.8.0-5
libgdbm-devel           1.8.3-3
libgdbm3                1.8.3-3
libgdbm4                1.8.3-7
libgettextpo0           0.12.1-3
libiconv2               1.9.1-3
libintl                 0.10.38-3
libintl1                0.10.40-1
libintl2                0.12.1-3
libjpeg6b               6b-8
libncurses5             5.2-1
libncurses6             5.2-8
libncurses7             5.3-4
libpcre                 4.1-1
libpcre0                4.4-1
libpng10                1.0.15-4
libpopt0                1.6.4-4
libPropList             0.10.1-3
libreadline4            4.1-2
libreadline5            4.3-5
libtiff3                3.6.0-2
login                   1.9-7
man                     1.5j-2
mc                      4.6.0-4
mktemp                  1.5-3
more                    2.11o-1
ncurses                 5.3-4
netcat                  1.10-2
newlib-man              20020801
openssh                 3.6.1p2-2
openssl                 0.9.7b-3
pcre                    4.4-1
pcre-doc                4.4-1
readline                4.3-5
sed                     4.0.7-3
sh-utils                2.0.15-4
tar                     1.13.25-3
termcap                 20021106-2
terminfo                5.3_20030726-1
texinfo                 4.2-4
textutils               2.0.21-1
ttcp                    19980512-1
unzip                   5.50-5
vim                     6.2-3
which                   1.5-2
whois                   4.6.2-1
WindowMaker             0.80.0-2
wtf                     0.0.4-3
XFree86-base            4.3.0-1
XFree86-bin             4.3.0-1
XFree86-etc             4.3.0-3
XFree86-fenc            4.2.0-3
XFree86-fnts            4.2.0-3
XFree86-lib             4.3.0-1
XFree86-lib-compat      4.3.0-1
XFree86-man             4.3.0-1
XFree86-startup-scripts 4.2.0-5
XFree86-xserv           4.3.0-5
zip                     2.3-5
zlib                    1.1.4-4
Use -h to see help about each section

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

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

* Re: [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter
  2003-09-04 14:57 [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter Fermin Sanchez
@ 2003-09-04 15:25 ` Christopher Faylor
  2003-09-04 15:34 ` Corinna Vinschen
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Faylor @ 2003-09-04 15:25 UTC (permalink / raw)
  To: cygwin

[what's all the crap in the subject?]
On Thu, Sep 04, 2003 at 04:56:46PM +0200, Fermin Sanchez wrote:
>I used to have cygwin sshd running on my old Windows 2000 Domain 
>Controller, worked like a charm. Some time ago I switched (reinstalled, 
>actually) my domain controller to Windows Server 2003.
>
>I went through the usual steps: download, "ssh-host-config -y", security 
>model "ntsec" and installed it as a service. First, it worked for about 5 
>minutes. Then, when I tried to connect from a remote host, I got a network 
>connection error. The server isn't accepting connections any more. 
>Restarting the sshd service in windows results in:
>
>"The CYGWIN sshd service on Local Computer started and then stopped. Some 
>services stop automatically if they have no work to do, for example, the 
>Performance Logs and Alerts service".
>
>Needless to say, I don't think the sshd has nothing to do ...
>
>The windows event log has a bit more informations:
>sshd : PID 5648: socket: Operation not permitted.
>sshd : PID 5648: fatal: Cannot bind any address..
>sshd : PID 3508: starting service 'sshd' failed: execv: 255, error 255
>sshd : PID 3508: 'sshd' service stopped.
>
>/var/log/sshd.log shows:
>c:\cygwin\usr\sbin\sshd.exe: *** could not load user32, Win32 error 0
>
>This is the only entry in this file, regardless of how many times I try to 
>restart the service.

Just a hunch but I suspect that if you restart your system things will
work differently.

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

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

* Re: [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter
  2003-09-04 14:57 [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter Fermin Sanchez
  2003-09-04 15:25 ` Christopher Faylor
@ 2003-09-04 15:34 ` Corinna Vinschen
  1 sibling, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2003-09-04 15:34 UTC (permalink / raw)
  To: cygwin

On Thu, Sep 04, 2003 at 04:56:46PM +0200, Fermin Sanchez wrote:
> I used to have cygwin sshd running on my old Windows 2000 Domain 
> Controller, worked like a charm. Some time ago I switched (reinstalled, 
> actually) my domain controller to Windows Server 2003.
> 
> I went through the usual steps: download, "ssh-host-config -y", security 
> model "ntsec" and installed it as a service. First, it worked for about 5 
> minutes. Then, when I tried to connect from a remote host, I got a network 
> connection error. The server isn't accepting connections any more. 
> Restarting the sshd service in windows results in:

I'm surprised that it worked for 5 minutes.  You mean, without trying
to connect, don't you?

Basically on 2003 the problem is a change of user rights given to the
SYSTEM user when running services.  Microsoft is trying to close a
security hole by removing the CreateTokenPrivilege from all services
running under SYSTEM account.

Workaround:  Create a new account on your machine in the Admin group.
Add the CreateTokenPrivilege in your Local Security Policy dialog. 
Run sshd under that account.  Don't forget to add this user to /etc/passwd.
*DON'T* call this user sshd since that's the user name of an *unprivileged*
user running the sshd child when privilege separation is turned on.

Hope that is in any way related to your actual problem...

Corinna

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

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

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

end of thread, other threads:[~2003-09-04 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04 14:57 [SPAMBayesian] - cygwin sshd on Windows Server 2003 Domain Controller? - Failed Bayesian filter Fermin Sanchez
2003-09-04 15:25 ` Christopher Faylor
2003-09-04 15:34 ` 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).