This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Here I answer to all the suggestions of Gerrit and Igor: Igor Pechtchanski <pechtcha at cs dot nyu dot edu> [041105 10:23]: > On Thu, 4 Nov 2004, Walter Garcia-Fontes wrote: > > > I'd appreciate any hint to solve the following problem: > > > > I get the "Could not start sshd service on Local Computer. Error 1067: > > The process terminated unexpectedly." I've seen some reports on this > > in the archives, but none of the solutions suggested worked for me.Here > > is the status of my installation: > > > > 1) I followed carefully all the steps in the specific doc for openssh > > for Cygwin (/usr/share/doc/Cygwin/openssh.README). > > Does this mean you ran ssh-host-config to install the sshd service? Yes, this is the way I did it, though I also tried to do it with cyrgrunsrv with the following format: cygrunsrv -I sshd -p /usr/sbin/sshd -e "CYGWIN=binmode ntsec tty" -a "-D" > > > 2) I'm running it under the SYSTEM account. I'm able to launch the sshd > > service manually from a sysbash, and it accepts remote connections > > without a problem, but I can't start from the service manager of with > > "net start sshd". > > What does the Windows Event Log show? Is there anything in > /var/log/sshd.log (even though as installed by ssh-host-config, sshd > doesn't log there by default). Nothing in /var/log/sshd.log (the file exists but has 0 size). In the event viewer I see errors coming from the Service Control Manager, EventID:7041 with the following description: The CYGWIN sshd service terminated unexpectedly. It has done this 4 time(s). The following corrective action will be taken in 0 milliseconds: No action. > > > 3) I double checked permissions in the relevant files, and set them up > > the way the doc says in 1), but it doesn't work. > > Are all the needed DLLs executable (run "cygcheck /usr/sbin/sshd.exe" to > list the DLLs)? Are all of them in the PATH for the service? > I get the following: D:/cygwin/usr/sbin/sshd.exe D:\cygwin\bin\cygcrypt-0.dll D:\cygwin\bin\cygwin1.dll C:\WINNT\system32\ADVAPI32.DLL C:\WINNT\system32\NTDLL.DLL C:\WINNT\system32\KERNEL32.DLL C:\WINNT\system32\RPCRT4.DLL D:\cygwin\bin\cygcrypto-0.9.7.dll D:\cygwin\bin\cygz.dll And this are the permissions: -rwxrwxrwx+ 1 wgarac Users 282112 Sep 22 19:24 D:/cygwin/usr/sbin/sshd.exe* -rwxrwxrwx+ 1 wgarac Users 6656 Oct 19 2003 D:/cygwin/bin/cygcrypt-0.dll* -rwxrwxrwx+ 1 wgarac Users 1138057 Sep 5 05:18 D:/cygwin/bin/cygwin1.dll* -rwxrwxrwx+ 1 Administ Administ 388368 Mar 24 2004 c:/winnt/system32/ADVAPI32.DLL* -rwxrwxrwx+ 1 Administ Administ 497936 Mar 24 2004 c:/winnt/system32/NTDLL.DLL* -rwxrwxrwx+ 1 Administ Administ 742160 Mar 24 2004 c:/winnt/system32/KERNEL32.DLL* -rwxrwxrwx+ 1 Administ Administ 432400 Jul 5 2003 c:/winnt/system32/RPCRT4.DLL* -rwxrwxrwx+ 1 wgarac Users 859136 Sep 27 16:12 D:/cygwin/bin/cygcrypto-0.9.7.dll* -rwxrwxrwx+ 1 wgarac Users 62976 Oct 10 06:09 D:/cygwin/bin/cygz.dll* > > [snip] > > 5) I mounted everything as system and binmode. > > Since you ran from system bash, could you also verify that there are no > *user* mounts for the SYSTEM account? Yes, I verified that, all are system mounts. This is what I get from the sysbash: D:\cygwin\bin on /usr/bin type system (binmode) D:\cygwin\lib on /usr/lib type system (binmode) D:\cygwin on / type system (binmode) c: on /cygdrive/c type system (binmode) d: on /cygdrive/d type system (binmode) e: on /cygdrive/e type system (binmode) f: on /cygdrive/f type system (binmode) h: on /cygdrive/h type system (binmode) m: on /cygdrive/m type system (binmode) w: on /cygdrive/w type system (binmode) x: on /cygdrive/x type system (binmode) y: on /cygdrive/y type system (binmode) z: on /cygdrive/z type system (binmode) > > > 6) Here is the output of cygcheck: > > [snip] > > In the future, please *attach* the output of cygcheck, to minimize false > positive hits in archive searches. Besides, your cut&paste seems to have > cut off the first column on some lines... > Yes, sorry, I don't know why I thought non-attachments was the preferred way (I've been a user of this list and cygwin almost since the beginning...). > One more suggestion: add a script like > > #!/bin/sh > date >> /var/log/test.log > env >> /var/log/test.log > echo "---------------------------------" >> /var/log/test.log > > as a service called "test" with cygrunsrv (using the same options as your I did this, and giving the following options to cygrunsrv I got the following in the log: cygrunsrv -I test -p /cygdrive/c/users/wgarac/test/test -e "CYGWIN=binmode ntsec tty" Got: Fri Nov 5 16:12:05 RST 2004 ALLUSERSPROFILE=C:\Documents and Settings\All Users COMMONPROGRAMFILES=C:\Program Files\Common Files COMPUTERNAME=CJQ082 COMSPEC=C:\WINNT\system32\cmd.exe CYGWIN=binmode ntsec tty HOME=/ NUMBER_OF_PROCESSORS=2 OS2LIBPATH=C:\WINNT\system32\os2\dll; OS=Windows_NT PATH=/cygdrive/c/texmf/miktex/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/ cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/WINNT/system32/nls:/cygdrive/c/WINNT/ system32/nls/ENGLISH:/cygdrive/c/Program Files/Common Files/Adaptec Shared/System:/usr/local/bin:/usr/bin:/usr/bin:/usr/X11R6/bin:/:/bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 6 Model 11 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=0b01 PROGRAMFILES=C:\Program Files SYSTEMDRIVE=C: SYSTEMROOT=C:\WINNT TEMP=/cygdrive/c/WINNT/TEMP TERM=cygwin TMP=/cygdrive/c/WINNT/TEMP USERPROFILE=C:\Documents and Settings\Default User WINDIR=C:\WINNT --------------------------------- Nothing strange, as far as I can tell... * Gerrit P. Haase <gerrit@familiehaase.de> [041105 15:02]: > Walter Garcia-Fontes wrote: > >I'd appreciate any hint to solve the following problem: > > > >I get the "Could not start sshd service on Local Computer. Error 1067: > >The process terminated unexpectedly." I've seen some reports on this > >in the archives, but none of the solutions suggested worked for me. Here > >is the status of my installation: > > > >5) I mounted everything as system and binmode. > > Is the drive where cygwin is installed a netdrive or subst'ed? No, it's a SCSI local drive. I attach again the cygcheck output just in case. -- Walter Garcia-Fontes Barcelona
Attachment:
see
Description: Text document
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |