public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Sshd cannot be manually restarted
@ 2013-05-02 14:05 Johnson, Matt
  2013-05-02 15:58 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 4+ messages in thread
From: Johnson, Matt @ 2013-05-02 14:05 UTC (permalink / raw)
  To: cygwin

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

I am having difficulty getting the sshd service to run through Cygwin. Attached is the cygcheck output for the server that I am having problems with.

Attached is a batch file which I initially used to install Cygwin and configure sshd (used this script because it worked on 2 other servers). Everything worked fine until trying to start the service. Odd behavior is that rebooting the machine results in the service running fine (it is set to automatic startup). Stopping the service and trying to start it again results in the failures below. I can run /usr/sbin/sshd -D from a Cygwin prompt and it works fine.

Starting from the Services snap-in results in "Windows could not start the CYGWIN sshd service on Local Computer. Error 1067: The process terminated unexpectedly." There are no entries in the Application event log related to (Cygwin) sshd. Entry in System event log: " The CYGWIN sshd service terminated unexpectedly.  It has done this 26 time(s)."

Admin command prompt:
---- Output ----
C:\>net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

C:\>C:\cygwin\Cygwin.bat

sdoracle@STREAMINGDEV ~
$ cygrunsrv -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.


sdoracle@STREAMINGDEV ~
$
---- End Output ----

Things I have tried:
Used a local privileged user to run the service
Used a different domain user that successfully runs the sshd service on a different machine
Created a fresh domain account to run the sshd service
Searched for duplicate cygwin1.dll's - none found
Applied full control to SYSTEM to C:\cygwin, C:\cygwin\var, and C:\cygwin\var\log
Removed local group policy object and rebooted machine
Compared Local Security options and User Rights to working servers (identical except for administrator account name)
Turned Windows firewall on and off

-- Matt Johnson

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 17224 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Wed May 01 22:10:29 2013

Windows 2008 R2 Server Enterprise Ver 6.1 Build 7601 Service Pack 1

Running under WOW64 on AMD64

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\Oracle\product\11.2.0\db_11203_12\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Program Files (x86)\AppAssure Software\Replay Agent\ReplayC
	C:\Program Files\Windows Imaging
	C:\Program Files\TortoiseSVN\bin
	C:\Oracle\Scripts
	C:\Program Files\SlikSvn\bin
	C:\Program Files\TortoiseHg

Output from C:\cygwin\bin\id.exe
UID: 32358(sdoracle)     GID: 10513(Domain Users)
10513(Domain Users)      0(root)                  544(Administrators)
545(Users)               1003(ora_dba)

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

USER = 'sdoracle'
PWD = '/home/sdoracle'
CYGWIN = 'binmode ntsec'
HOME = '/home/sdoracle'

HOMEPATH = '\Users\SDOracle'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Users\SDOracle\AppData\Roaming'
ProgramW6432 = 'C:\Program Files'
HOSTNAME = 'STREAMINGDEV'
SHELL = '/bin/bash'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 15 Stepping 1, GenuineIntel'
WINDIR = 'C:\Windows'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/usr/bin'
USERDOMAIN = 'PCC'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
temp = 'C:\Users\SDOracle\AppData\Local\Temp\1'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
TMP = '/tmp'
ORACLE_SID = 'SD'
USERNAME = 'sdoracle'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
LANG = 'en_US.UTF-8'
USERPROFILE = 'C:\Users\SDOracle'
TZ = 'America/Chicago'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\PCC-DC1'
SQLPATH = 'C:\Oracle\Scripts\dbscripts'
CommonProgramW6432 = 'C:\Program Files\Common Files'
PROCESSOR_ARCHITECTURE = 'x86'
LOCALAPPDATA = 'C:\Users\SDOracle\AppData\Local'
!C: = 'C:\cygwin\bin'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
USERDNSDOMAIN = 'PCCI.INT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\Windows\system32\cmd.exe'
SYSTEMROOT = 'C:\Windows'
PRINTER = 'Microsoft XPS Document Writer'
PROCESSOR_REVISION = '0f01'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files (x86)'
NUMBER_OF_PROCESSORS = '4'
SESSIONNAME = 'Console'
COMPUTERNAME = 'STREAMINGDEV'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
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

a:  fd             N/A    N/A                    
c:  hd  NTFS     51096Mb  65% CP CS UN PA FC     OS
d:  cd             N/A    N/A                    
f:  hd  NTFS     30716Mb  39% CP CS UN PA FC     Data
j:  hd  NTFS     40956Mb   1% CP CS UN PA FC     Archive 1
k:  hd  NTFS     40956Mb   1% CP CS UN PA FC     Archive 2
l:  hd  NTFS     51196Mb   4% CP CS UN PA FC     Backup
s:  hd  NTFS     10236Mb   1% CP CS UN PA FC     Supplement
t:  hd  NTFS      4092Mb  27% CP CS UN PA FC     Redo A
u:  hd  NTFS      4092Mb  27% CP CS UN PA FC     Redo B

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
Not Found: cpp (good!)
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
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
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
Not Found: vi
Not Found: vim

  449k 2013/01/01 C:\cygwin\bin\cygasn1-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygasn1-8.dll" v0.0 ts=2013/1/1 6:34
   14k 2012/05/04 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2012/5/4 12:35
   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 20:16
   10k 2013/03/11 C:\cygwin\bin\cygcom_err-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcom_err-2.dll" v0.0 ts=2013/3/11 3:04
    7k 2012/05/07 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2012/5/7 12:18
 1518k 2013/02/12 C:\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-1.0.0.dll" v0.0 ts=2013/2/12 14:44
  140k 2012/05/03 C:\cygwin\bin\cygedit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygedit-0.dll" v0.0 ts=2012/5/3 18:12
   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 14:49
   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 17:31
   79k 2011/10/26 C:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2011/10/23 14:15
  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 6:14
  180k 2013/01/01 C:\cygwin\bin\cyggssapi-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggssapi-3.dll" v0.0 ts=2013/1/1 6:58
   11k 2013/01/01 C:\cygwin\bin\cygheimbase-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimbase-1.dll" v0.0 ts=2013/1/1 6:31
   20k 2013/01/01 C:\cygwin\bin\cygheimntlm-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimntlm-0.dll" v0.0 ts=2013/1/1 6:49
   25k 2012/05/04 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2012/5/4 22:07
  211k 2013/01/01 C:\cygwin\bin\cyghx509-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghx509-5.dll" v0.0 ts=2013/1/1 6:37
  358k 2012/04/14 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2012/4/14 2:48
  985k 2011/10/16 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/10/16 18:01
   35k 2011/10/16 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2011/10/16 6:38
   21k 2013/01/01 C:\cygwin\bin\cygkafs-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygkafs-0.dll" v0.0 ts=2013/1/1 6:50
  373k 2013/01/01 C:\cygwin\bin\cygkrb5-26.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5-26.dll" v0.0 ts=2013/1/1 6:43
    5k 2013/04/19 C:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2013/4/19 9:39
    6k 2013/04/19 C:\cygwin\bin\cyglsa64.dll - os=4.0 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 3:41
   94k 2012/04/22 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2012/4/22 19:09
   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 14:48
   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 17:30
  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 6:12
   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 15:00
   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 17: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 14:45
  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 17:28
   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 14:47
   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 16:30
  255k 2012/02/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2012/2/10 10:24
   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 6:45
  162k 2012/05/04 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2012/5/4 22:07
   51k 2013/01/01 C:\cygwin\bin\cygroken-18.dll - os=4.0 img=1.0 sys=4.0
                  "cygroken-18.dll" v0.0 ts=2013/1/1 6:32
  583k 2013/04/16 C:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2013/4/16 18:18
  366k 2013/02/12 C:\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-1.0.0.dll" v0.0 ts=2013/2/12 14:44
    8k 2011/10/26 C:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2011/10/23 14:33
  780k 2011/10/26 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2011/10/23 14:58
   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 14:45
   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 17:28
  157k 2013/01/01 C:\cygwin\bin\cygwind-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwind-0.dll" v0.0 ts=2013/1/1 6:33
   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 10:02
   71k 2012/05/13 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2012/5/13 5:11
 2796k 2013/04/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2013/4/19 9:39
    Cygwin DLL version info:
        DLL version: 1.7.18
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 263
        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 -Dddde
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="binmode ntsec" 
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : PCC\sdoracle


Cygwin Package Information
Last downloaded files to: C:\Oracle\TempInstall\Cygwin\CygwinPackages
Last downloaded files from: 

Package              Version              Status
Empty package _autorebase
_autorebase          000249-1             OK
Empty package _update-info-dir
_update-info-dir     01122-1              OK
Empty package alternatives
alternatives         1.3.30c-10           OK
Empty package base-cygwin
base-cygwin          3.1-1                OK
Empty package base-files
base-files           4.1-1                OK
Empty package bash
bash                 4.1.10-4             OK
Empty package bzip2
bzip2                1.0.6-2              OK
Empty package coreutils
coreutils            8.15-1               OK
Empty package crypt
crypt                1.2-1                OK
Empty package csih
csih                 0.9.7-1              OK
Empty package cygrunsrv
cygrunsrv            1.40-2               OK
Empty package cygutils
cygutils             1.4.10-2             OK
Empty package cygwin
cygwin               1.7.18-1             OK
Empty package cygwin-doc
cygwin-doc           1.7-1                OK
Empty package dash
dash                 0.5.7-1              OK
Empty package diffutils
diffutils            3.2-1                OK
Empty package dos2unix
dos2unix             6.0.3-1              OK
Empty package editrights
editrights           1.01-2               OK
Empty package file
file                 5.11-1               OK
Empty package findutils
findutils            4.5.11-1             OK
Empty package gawk
gawk                 4.0.2-1              OK
Empty package gettext
gettext              0.18.1.1-2           OK
Empty package grep
grep                 2.6.3-1              OK
Empty package groff
groff                1.21-2               OK
Empty package gzip
gzip                 1.4-1                OK
Empty package ipc-utils
ipc-utils            1.0-1                OK
Empty package less
less                 444-1                OK
Empty package libasn1_8
libasn1_8            1.5.2-4              OK
Empty package libattr1
libattr1             2.4.46-1             OK
Empty package libbz2_1
libbz2_1             1.0.6-2              OK
Empty package libcom_err2
libcom_err2          1.42.7-1             OK
Empty package libedit0
libedit0             20120311-1           OK
Empty package libgcc1
libgcc1              4.5.3-3              OK
Empty package libgmp3
libgmp3              4.3.2-1              OK
Empty package libgssapi3
libgssapi3           1.5.2-4              OK
Empty package libheimbase1
libheimbase1         1.5.2-4              OK
Empty package libheimntlm0
libheimntlm0         1.5.2-4              OK
Empty package libhx509_5
libhx509_5           1.5.2-4              OK
Empty package libiconv2
libiconv2            1.14-2               OK
Empty package libintl8
libintl8             0.18.1.1-2           OK
Empty package libkafs0
libkafs0             1.5.2-4              OK
Empty package libkrb5_26
libkrb5_26           1.5.2-4              OK
Empty package liblzma5
liblzma5             5.0.2_20110517-1     OK
Empty package libncurses10
libncurses10         5.7-18               OK
Empty package libncursesw10
libncursesw10        5.7-18               OK
Empty package libopenssl100
libopenssl100        1.0.1e-2             OK
Empty package libpcre0
libpcre0             8.21-2               OK
Empty package libpopt0
libpopt0             1.6.4-4              OK
Empty package libreadline7
libreadline7         6.1.2-3              OK
Empty package libroken18
libroken18           1.5.2-4              OK
Empty package libsqlite3_0
libsqlite3_0         3.7.16.2-1           OK
Empty package libssp0
libssp0              4.5.3-3              OK
Empty package libstdc++6
libstdc++6           4.5.3-3              OK
Empty package libwind0
libwind0             1.5.2-4              OK
Empty package libwrap0
libwrap0             7.6-21               OK
Empty package login
login                1.10-10              OK
Empty package man
man                  1.6g-1               OK
Empty package mintty
mintty               1.1.3-1              OK
Empty package openssh
openssh              6.2p1-2              OK
Empty package openssl
openssl              1.0.1e-2             OK
Empty package rebase
rebase               4.4.0-1              OK
Empty package run
run                  1.1.13-1             OK
Empty package sed
sed                  4.2.1-2              OK
Empty package tar
tar                  1.26-1               OK
Empty package terminfo
terminfo             5.7_20091114-14      OK
Empty package texinfo
texinfo              4.13-4               OK
Empty package tzcode
tzcode               2012j-1              OK
Empty package unzip
unzip                6.0-10               OK
Empty package which
which                2.20-2               OK
Empty package xz
xz                   5.0.2_20110517-1     OK
Empty package zip
zip                  3.0-11               OK
Empty package zlib0
zlib0                1.2.7-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] 4+ messages in thread

* Re: Sshd cannot be manually restarted
  2013-05-02 14:05 Sshd cannot be manually restarted Johnson, Matt
@ 2013-05-02 15:58 ` Larry Hall (Cygwin)
  2013-05-03 15:09   ` Johnson, Matt
  0 siblings, 1 reply; 4+ messages in thread
From: Larry Hall (Cygwin) @ 2013-05-02 15:58 UTC (permalink / raw)
  To: cygwin

On 5/2/2013 10:04 AM, Johnson, Matt wrote:
> I am having difficulty getting the sshd service to run through Cygwin.
> Attached is the cygcheck output for the server that I am having problems with.

OK, let's start with this as a backdrop for this discussion.  sshd is
difficult to configure because of the security restrictions it imposes (by
definition).  While it's possible to configure it to work in all kinds of
situations, it requires allot of knowledge, lots of experimentation, or
both.  To make things easier for the typical usage, ssh-host-config script
exists.  This has its limitations, of course.  In particular, it makes a
special local account to run sshd under with the proper permissions to
support public key authentication for local users (plus general password
authentication).  From the information you've provided below, you've clearly
taken a different route to configure your system.  While you are free to
do so, that puts you in fairly uncharted territory.  So let's proceed with
this as a basis of understanding.

> Attached is a batch file which I initially used to install Cygwin and
> configure sshd (used this script because it worked on 2 other servers).

Oops.  No script attached.  This is both a red flag (use of some unknown
and unsupported script) and a pointer to a possible solution for you.  If
you've used this script successfully on 2 other servers, you have a basis
for comparison between non-working and working servers to find what's
getting in your way here.

> Everything worked fine until trying to start the service. Odd behavior is
> that rebooting the machine results in the service running fine (it is set to
> automatic startup). Stopping the service and trying to start it again
> results in the failures below. I can run /usr/sbin/sshd -D from a Cygwin
> prompt and it works fine.

OK, generally speaking, starting sshd from the command line as your user is
a big 'no-no', assuming you care about public key authentication at least.
You may not care or you may have set your account up with all the necessary
permissions to do this (even domain-wide).  Either one of these courses of
action is fine so long as you understand the limits and/or what needs to be
done to achieve success.  But if what I've just said puts you outside of
your comfort zone, it's best to stop right here and reassess what you're
trying to do.

> Starting from the Services snap-in results in "Windows could not start
> the  CYGWIN sshd service on Local Computer. Error 1067: The process terminated
> unexpectedly." There are no entries in the Application event log related to
> (Cygwin) sshd. Entry in System event log: " The CYGWIN sshd service
> terminated unexpectedly. It has done this 26 time(s)."

You may find more useful information in /var/log/sshd/log.  Based on your
cygcheck output, I would expect that you will find all sorts of log info
there, since you're running a debug session of sshd (good!).  So there will
be all sorts of log info that you can look at and will likely provide some
insight.  Keep in mind, running sshd as debug, while very helpful in for
diagnostics, means that each disconnected session will terminate the sshd
service.

> Admin command prompt:
> ---- Output ----
> C:\>net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service could not be started.
>
> A system error has occurred.
>
> System error 1067 has occurred.
>
> The process terminated unexpectedly.
>
> C:\>C:\cygwin\Cygwin.bat
>
> sdoracle@STREAMINGDEV ~
> $ cygrunsrv -S sshd
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> The service has not been started.
>
>
> sdoracle@STREAMINGDEV ~
> $
> ---- End Output ----
>
> Things I have tried:
> Used a local privileged user to run the service
> Used a different domain user that successfully runs the sshd service on a different machine
> Created a fresh domain account to run the sshd service
> Searched for duplicate cygwin1.dll's - none found
> Applied full control to SYSTEM to C:\cygwin, C:\cygwin\var, and C:\cygwin\var\log

I'd be careful about setting permissions, especially globally.  Unless
you're going to turn off permission checking for sshd, it's going to be
pretty picky about what it expects where.  Setting things globally usually
results in, frankly, wrong permissions in spots where it counts.  Remember
sshd is trying to maintain some amount of security so it's not only looking
for access in certain areas but also lack of access to groups and others.
See ssh-host-config for details here.

> Removed local group policy object and rebooted machine
> Compared Local Security options and User Rights to working servers (identical except for administrator account name)
> Turned Windows firewall on and off

Sounds like your best bet is to review ssh-host-config comparing
permissions it sets for files and directories with those that
you have on the non-working and working servers.  Also, I'd
recommend carefully going through the sshd.log from your debug
session.  Separately or in combination, I think these two
avenues will help you allot.

-- 
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] 4+ messages in thread

* RE: Sshd cannot be manually restarted
  2013-05-02 15:58 ` Larry Hall (Cygwin)
@ 2013-05-03 15:09   ` Johnson, Matt
  2013-05-03 15:14     ` Johnson, Matt
  0 siblings, 1 reply; 4+ messages in thread
From: Johnson, Matt @ 2013-05-03 15:09 UTC (permalink / raw)
  To: cygwin

I used ssh-host-config to set up the sshd service and provided different options to the queries. In between variations of input to ssh-host-config, I completely removed Cygwin and reinstalled it.

To provide a clear problem description, I started from a fresh install and used the attached install.bat.txt script (my mail client removed the previous script because it was a batch file) to install Cygwin and configure sshd. Everything works fine in the script except for the final command which attempts to start the service and results in the output below. Attached is also the cygcheck output after the installation.
---- Output ----
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.
---- End Output ----

So after the clean install, the service does not start. But I rebooted the machine and the service is running once I get logged in to the machine (ssh-host-config sets the start mode to auto):
---- Output ----
C:\>sc query sshd

SERVICE_NAME: sshd
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
---- End Output ----
I can connect to the machine remotely using PuTTY. Looking in the Windows Application event log, I see three logged events related to sshd:
sshd: PID 1616: `sshd' service started
sshd: PID 1952: Server listening on :: port 22.
sshd: PID 1952: Server listening on 0.0.0.0 port 22.
/var/log/sshd.log is present but empty because log entries are going to the Windows event log.

This all looks normal as compared to other working machines. However, if I stop the service and try to start it again, it fails:
---- Output ----
C:\>net stop sshd
The CYGWIN sshd service is stopping.
The CYGWIN sshd service was stopped successfully.

C:\>net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.
---- End Output ----

One last piece of information that might be helpful comes from turning on process auditing on the problem machine. It shows the following two audit entries right next to each other with an abnormal exit code from cygrunsrv.exe:
-------------------------------------------------
A new process has been created.

Subject:
	Security ID:		SYSTEM
	Account Name:		STREAMINGDEV$
	Account Domain:		PCC
	Logon ID:		0x3e7

Process Information:
	New Process ID:		0xec4
	New Process Name:	C:\cygwin\bin\cygrunsrv.exe
	Token Elevation Type:	TokenElevationTypeDefault (1)
	Creator Process ID:	0x21c
-------------------------------------------------
A process has exited.

Subject:
	Security ID:		PCC\sdoracle
	Account Name:		sdoracle
	Account Domain:		PCC
	Logon ID:		0x1f7d23

Process Information:
	Process ID:	0xec4
	Process Name:	C:\cygwin\bin\cygrunsrv.exe
	Exit Status:	0xc0000005
-------------------------------------------------

Any ideas of what could be preventing the service from being restarted would be appreciated.

-- Matt Johnson


> -----Original Message-----
> From: 
> Sent: Thursday, May 02, 2013 10:58 AM 
> Subject: Re: Sshd cannot be manually restarted
> 
> On 5/2/2013 10:04 AM, Johnson, Matt wrote:
> > I am having difficulty getting the sshd service to run through Cygwin.
> > Attached is the cygcheck output for the server that I am having problems with.
> 
> OK, let's start with this as a backdrop for this discussion.  sshd is
> difficult to configure because of the security restrictions it imposes (by
> definition).  While it's possible to configure it to work in all kinds of
> situations, it requires allot of knowledge, lots of experimentation, or
> both.  To make things easier for the typical usage, ssh-host-config script
> exists.  This has its limitations, of course.  In particular, it makes a
> special local account to run sshd under with the proper permissions to
> support public key authentication for local users (plus general password
> authentication).  From the information you've provided below, you've clearly
> taken a different route to configure your system.  While you are free to
> do so, that puts you in fairly uncharted territory.  So let's proceed with
> this as a basis of understanding.
> 
> > Attached is a batch file which I initially used to install Cygwin and
> > configure sshd (used this script because it worked on 2 other servers).
> 
> Oops.  No script attached.  This is both a red flag (use of some unknown
> and unsupported script) and a pointer to a possible solution for you.  If
> you've used this script successfully on 2 other servers, you have a basis
> for comparison between non-working and working servers to find what's
> getting in your way here.
> 
> > Everything worked fine until trying to start the service. Odd behavior is
> > that rebooting the machine results in the service running fine (it is set to
> > automatic startup). Stopping the service and trying to start it again
> > results in the failures below. I can run /usr/sbin/sshd -D from a Cygwin
> > prompt and it works fine.
> 
> OK, generally speaking, starting sshd from the command line as your user is
> a big 'no-no', assuming you care about public key authentication at least.
> You may not care or you may have set your account up with all the necessary
> permissions to do this (even domain-wide).  Either one of these courses of
> action is fine so long as you understand the limits and/or what needs to be
> done to achieve success.  But if what I've just said puts you outside of
> your comfort zone, it's best to stop right here and reassess what you're
> trying to do.
> 
> > Starting from the Services snap-in results in "Windows could not start
> > the  CYGWIN sshd service on Local Computer. Error 1067: The process
> terminated
> > unexpectedly." There are no entries in the Application event log related to
> > (Cygwin) sshd. Entry in System event log: " The CYGWIN sshd service
> > terminated unexpectedly. It has done this 26 time(s)."
> 
> You may find more useful information in /var/log/sshd/log.  Based on your
> cygcheck output, I would expect that you will find all sorts of log info
> there, since you're running a debug session of sshd (good!).  So there will
> be all sorts of log info that you can look at and will likely provide some
> insight.  Keep in mind, running sshd as debug, while very helpful in for
> diagnostics, means that each disconnected session will terminate the sshd
> service.
> 
> > Admin command prompt:
> > ---- Output ----
> > C:\>net start sshd
> > The CYGWIN sshd service is starting.
> > The CYGWIN sshd service could not be started.
> >
> > A system error has occurred.
> >
> > System error 1067 has occurred.
> >
> > The process terminated unexpectedly.
> >
> > C:\>C:\cygwin\Cygwin.bat
> >
> > sdoracle@STREAMINGDEV ~
> > $ cygrunsrv -S sshd
> > cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> > The service has not been started.
> >
> >
> > sdoracle@STREAMINGDEV ~
> > $
> > ---- End Output ----
> >
> > Things I have tried:
> > Used a local privileged user to run the service
> > Used a different domain user that successfully runs the sshd service on a
> different machine
> > Created a fresh domain account to run the sshd service
> > Searched for duplicate cygwin1.dll's - none found
> > Applied full control to SYSTEM to C:\cygwin, C:\cygwin\var, and
> C:\cygwin\var\log
> 
> I'd be careful about setting permissions, especially globally.  Unless
> you're going to turn off permission checking for sshd, it's going to be
> pretty picky about what it expects where.  Setting things globally usually
> results in, frankly, wrong permissions in spots where it counts.  Remember
> sshd is trying to maintain some amount of security so it's not only looking
> for access in certain areas but also lack of access to groups and others.
> See ssh-host-config for details here.
> 
> > Removed local group policy object and rebooted machine
> > Compared Local Security options and User Rights to working servers (identical
> except for administrator account name)
> > Turned Windows firewall on and off
> 
> Sounds like your best bet is to review ssh-host-config comparing
> permissions it sets for files and directories with those that
> you have on the non-working and working servers.  Also, I'd
> recommend carefully going through the sshd.log from your debug
> session.  Separately or in combination, I think these two
> avenues will help you allot.
> 
> --
> 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


--
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] 4+ messages in thread

* RE: Sshd cannot be manually restarted
  2013-05-03 15:09   ` Johnson, Matt
@ 2013-05-03 15:14     ` Johnson, Matt
  0 siblings, 0 replies; 4+ messages in thread
From: Johnson, Matt @ 2013-05-03 15:14 UTC (permalink / raw)
  To: cygwin

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

And here's the files... email...

-- Matt Johnson

I used ssh-host-config to set up the sshd service and provided different options to the queries. In between variations of input to ssh-host-config, I completely removed Cygwin and reinstalled it.

To provide a clear problem description, I started from a fresh install and used the attached install.bat.txt script (my mail client removed the previous script because it was a batch file) to install Cygwin and configure sshd. Everything works fine in the script except for the final command which attempts to start the service and results in the output below. Attached is also the cygcheck output after the installation.
---- Output ----
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.
---- End Output ----

So after the clean install, the service does not start. But I rebooted the machine and the service is running once I get logged in to the machine (ssh-host-config sets the start mode to auto):
---- Output ----
C:\>sc query sshd

SERVICE_NAME: sshd
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
---- End Output ----
I can connect to the machine remotely using PuTTY. Looking in the Windows Application event log, I see three logged events related to sshd:
sshd: PID 1616: `sshd' service started
sshd: PID 1952: Server listening on :: port 22.
sshd: PID 1952: Server listening on 0.0.0.0 port 22.
/var/log/sshd.log is present but empty because log entries are going to the Windows event log.

This all looks normal as compared to other working machines. However, if I stop the service and try to start it again, it fails:
---- Output ----
C:\>net stop sshd
The CYGWIN sshd service is stopping.
The CYGWIN sshd service was stopped successfully.

C:\>net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.
---- End Output ----

One last piece of information that might be helpful comes from turning on process auditing on the problem machine. It shows the following two audit entries right next to each other with an abnormal exit code from cygrunsrv.exe:
-------------------------------------------------
A new process has been created.

Subject:
	Security ID:		SYSTEM
	Account Name:		STREAMINGDEV$
	Account Domain:		PCC
	Logon ID:		0x3e7

Process Information:
	New Process ID:		0xec4
	New Process Name:	C:\cygwin\bin\cygrunsrv.exe
	Token Elevation Type:	TokenElevationTypeDefault (1)
	Creator Process ID:	0x21c
-------------------------------------------------
A process has exited.

Subject:
	Security ID:		PCC\sdoracle
	Account Name:		sdoracle
	Account Domain:		PCC
	Logon ID:		0x1f7d23

Process Information:
	Process ID:	0xec4
	Process Name:	C:\cygwin\bin\cygrunsrv.exe
	Exit Status:	0xc0000005
-------------------------------------------------

Any ideas of what could be preventing the service from being restarted would be appreciated.

-- Matt Johnson


> -----Original Message-----
> From: 
> Sent: Thursday, May 02, 2013 10:58 AM 
> Subject: Re: Sshd cannot be manually restarted
> 
> On 5/2/2013 10:04 AM, Johnson, Matt wrote:
> > I am having difficulty getting the sshd service to run through Cygwin.
> > Attached is the cygcheck output for the server that I am having problems with.
> 
> OK, let's start with this as a backdrop for this discussion.  sshd is
> difficult to configure because of the security restrictions it imposes (by
> definition).  While it's possible to configure it to work in all kinds of
> situations, it requires allot of knowledge, lots of experimentation, or
> both.  To make things easier for the typical usage, ssh-host-config script
> exists.  This has its limitations, of course.  In particular, it makes a
> special local account to run sshd under with the proper permissions to
> support public key authentication for local users (plus general password
> authentication).  From the information you've provided below, you've clearly
> taken a different route to configure your system.  While you are free to
> do so, that puts you in fairly uncharted territory.  So let's proceed with
> this as a basis of understanding.
> 
> > Attached is a batch file which I initially used to install Cygwin and
> > configure sshd (used this script because it worked on 2 other servers).
> 
> Oops.  No script attached.  This is both a red flag (use of some unknown
> and unsupported script) and a pointer to a possible solution for you.  If
> you've used this script successfully on 2 other servers, you have a basis
> for comparison between non-working and working servers to find what's
> getting in your way here.
> 
> > Everything worked fine until trying to start the service. Odd behavior is
> > that rebooting the machine results in the service running fine (it is set to
> > automatic startup). Stopping the service and trying to start it again
> > results in the failures below. I can run /usr/sbin/sshd -D from a Cygwin
> > prompt and it works fine.
> 
> OK, generally speaking, starting sshd from the command line as your user is
> a big 'no-no', assuming you care about public key authentication at least.
> You may not care or you may have set your account up with all the necessary
> permissions to do this (even domain-wide).  Either one of these courses of
> action is fine so long as you understand the limits and/or what needs to be
> done to achieve success.  But if what I've just said puts you outside of
> your comfort zone, it's best to stop right here and reassess what you're
> trying to do.
> 
> > Starting from the Services snap-in results in "Windows could not start
> > the  CYGWIN sshd service on Local Computer. Error 1067: The process
> terminated
> > unexpectedly." There are no entries in the Application event log related to
> > (Cygwin) sshd. Entry in System event log: " The CYGWIN sshd service
> > terminated unexpectedly. It has done this 26 time(s)."
> 
> You may find more useful information in /var/log/sshd/log.  Based on your
> cygcheck output, I would expect that you will find all sorts of log info
> there, since you're running a debug session of sshd (good!).  So there will
> be all sorts of log info that you can look at and will likely provide some
> insight.  Keep in mind, running sshd as debug, while very helpful in for
> diagnostics, means that each disconnected session will terminate the sshd
> service.
> 
> > Admin command prompt:
> > ---- Output ----
> > C:\>net start sshd
> > The CYGWIN sshd service is starting.
> > The CYGWIN sshd service could not be started.
> >
> > A system error has occurred.
> >
> > System error 1067 has occurred.
> >
> > The process terminated unexpectedly.
> >
> > C:\>C:\cygwin\Cygwin.bat
> >
> > sdoracle@STREAMINGDEV ~
> > $ cygrunsrv -S sshd
> > cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> > The service has not been started.
> >
> >
> > sdoracle@STREAMINGDEV ~
> > $
> > ---- End Output ----
> >
> > Things I have tried:
> > Used a local privileged user to run the service
> > Used a different domain user that successfully runs the sshd service on a
> different machine
> > Created a fresh domain account to run the sshd service
> > Searched for duplicate cygwin1.dll's - none found
> > Applied full control to SYSTEM to C:\cygwin, C:\cygwin\var, and
> C:\cygwin\var\log
> 
> I'd be careful about setting permissions, especially globally.  Unless
> you're going to turn off permission checking for sshd, it's going to be
> pretty picky about what it expects where.  Setting things globally usually
> results in, frankly, wrong permissions in spots where it counts.  Remember
> sshd is trying to maintain some amount of security so it's not only looking
> for access in certain areas but also lack of access to groups and others.
> See ssh-host-config for details here.
> 
> > Removed local group policy object and rebooted machine
> > Compared Local Security options and User Rights to working servers (identical
> except for administrator account name)
> > Turned Windows firewall on and off
> 
> Sounds like your best bet is to review ssh-host-config comparing
> permissions it sets for files and directories with those that
> you have on the non-working and working servers.  Also, I'd
> recommend carefully going through the sshd.log from your debug
> session.  Separately or in combination, I think these two
> avenues will help you allot.
> 
> --
> 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


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


[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 22272 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Fri May 03 15:37:58 2013

Windows 2008 R2 Server Enterprise Ver 6.1 Build 7601 Service Pack 1

Running under WOW64 on AMD64

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\Oracle\product\11.2.0\db_11203_12\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Program Files (x86)\AppAssure Software\Replay Agent\ReplayC
	C:\Program Files\Windows Imaging
	C:\Program Files\TortoiseSVN\bin
	C:\Oracle\Scripts
	C:\Program Files\SlikSvn\bin
	C:\Program Files\TortoiseHg

Output from C:\cygwin\bin\id.exe
UID: 32358(sdoracle)     GID: 10513(Domain Users)
10513(Domain Users)      0(root)                  544(Administrators)
545(Users)               1003(ora_dba)

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

USER = 'sdoracle'
PWD = '/home/sdoracle'
CYGWIN = 'binmode ntsec'
HOME = '/home/sdoracle'

HOMEPATH = '\Users\SDOracle'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Users\SDOracle\AppData\Roaming'
ProgramW6432 = 'C:\Program Files'
HOSTNAME = 'STREAMINGDEV'
SHELL = '/bin/bash'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 15 Stepping 1, GenuineIntel'
WINDIR = 'C:\Windows'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/usr/bin'
USERDOMAIN = 'PCC'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
temp = 'C:\Users\SDOracle\AppData\Local\Temp\1'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
TMP = '/tmp'
ORACLE_SID = 'SD'
USERNAME = 'sdoracle'
PROCESSOR_LEVEL = '6'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
LANG = 'en_US.UTF-8'
USERPROFILE = 'C:\Users\SDOracle'
TZ = 'America/Chicago'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\PCC-DC1'
SQLPATH = 'C:\Oracle\Scripts\dbscripts'
CommonProgramW6432 = 'C:\Program Files\Common Files'
PROCESSOR_ARCHITECTURE = 'x86'
LOCALAPPDATA = 'C:\Users\SDOracle\AppData\Local'
!C: = 'C:\cygwin\bin'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
USERDNSDOMAIN = 'PCCI.INT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\Windows\system32\cmd.exe'
SYSTEMROOT = 'C:\Windows'
PRINTER = 'Microsoft XPS Document Writer'
PROCESSOR_REVISION = '0f01'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files (x86)'
NUMBER_OF_PROCESSORS = '4'
SESSIONNAME = 'Console'
COMPUTERNAME = 'STREAMINGDEV'
_ = '/usr/bin/cygcheck'

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

a:  fd             N/A    N/A                    
c:  hd  NTFS     51096Mb  65% CP CS UN PA FC     OS
d:  cd             N/A    N/A                    
f:  hd  NTFS     30716Mb  39% CP CS UN PA FC     Data
j:  hd  NTFS     40956Mb   1% CP CS UN PA FC     Archive 1
k:  hd  NTFS     40956Mb   1% CP CS UN PA FC     Archive 2
l:  hd  NTFS     51196Mb   4% CP CS UN PA FC     Backup
s:  hd  NTFS     10236Mb   1% CP CS UN PA FC     Supplement
t:  hd  NTFS      4092Mb  27% CP CS UN PA FC     Redo A
u:  hd  NTFS      4092Mb  27% CP CS UN PA FC     Redo B

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
Not Found: cpp (good!)
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
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
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

  449k 2013/01/01 C:\cygwin\bin\cygasn1-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygasn1-8.dll" v0.0 ts=2013/1/1 6:34
   14k 2012/05/04 C:\cygwin\bin\cygattr-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygattr-1.dll" v0.0 ts=2012/5/4 12:35
   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 20:16
   10k 2013/03/11 C:\cygwin\bin\cygcom_err-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcom_err-2.dll" v0.0 ts=2013/3/11 3:04
    7k 2012/05/07 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2012/5/7 12:18
 1518k 2013/02/12 C:\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-1.0.0.dll" v0.0 ts=2013/2/12 14:44
  929k 2011/11/10 C:\cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2011/11/10 19:52
  222k 2012/12/26 C:\cygwin\bin\cygdbus-1-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygdbus-1-3.dll" v0.0 ts=2012/12/26 22:42
   93k 2011/11/10 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=2011/11/10 19:53
  140k 2012/05/03 C:\cygwin\bin\cygedit-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygedit-0.dll" v0.0 ts=2012/5/3 18:12
  148k 2013/04/16 C:\cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2013/4/16 14:02
   28k 2013/01/16 C:\cygwin\bin\cygfam-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygfam-0.dll" v0.0 ts=2013/1/16 22:53
   21k 2011/10/26 C:\cygwin\bin\cygffi-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygffi-4.dll" v0.0 ts=2011/10/23 14:33
   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 14:49
   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 17:31
   79k 2011/10/26 C:\cygwin\bin\cyggcc_s-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggcc_s-1.dll" v0.0 ts=2011/10/23 14:15
   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 7: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 7:58
 1086k 2012/12/17 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=2012/12/16 23:52
  846k 2012/12/17 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=2012/12/16 23:48
   12k 2012/12/17 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=2012/12/16 23:49
  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 6:14
  260k 2012/12/17 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=2012/12/16 23:50
  180k 2013/01/01 C:\cygwin\bin\cyggssapi-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggssapi-3.dll" v0.0 ts=2013/1/1 6:58
    6k 2012/12/17 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=2012/12/16 23:49
   11k 2013/01/01 C:\cygwin\bin\cygheimbase-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimbase-1.dll" v0.0 ts=2013/1/1 6:31
   20k 2013/01/01 C:\cygwin\bin\cygheimntlm-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygheimntlm-0.dll" v0.0 ts=2013/1/1 6:49
   25k 2012/05/04 C:\cygwin\bin\cyghistory7.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory7.dll" v0.0 ts=2012/5/4 22:07
  211k 2013/01/01 C:\cygwin\bin\cyghx509-5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghx509-5.dll" v0.0 ts=2013/1/1 6:37
  359k 2013/04/28 C:\cygwin\bin\cygicons-0.dll - os=4.0 img=1.4 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2013/4/28 1:55
  985k 2011/10/16 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2011/10/16 18:01
   35k 2011/10/16 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2011/10/16 6:38
   21k 2013/01/01 C:\cygwin\bin\cygkafs-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygkafs-0.dll" v0.0 ts=2013/1/1 6:50
  373k 2013/01/01 C:\cygwin\bin\cygkrb5-26.dll - os=4.0 img=1.0 sys=4.0
                  "cygkrb5-26.dll" v0.0 ts=2013/1/1 6:43
    5k 2013/04/19 C:\cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2013/4/19 9:39
    6k 2013/04/19 C:\cygwin\bin\cyglsa64.dll - os=4.0 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 3:41
   94k 2012/04/22 C:\cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2012/4/22 19:09
   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 14:48
   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 17:30
  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 6:12
   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 15:00
   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 17: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 14:45
  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 17:28
   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 14:47
   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 16:30
  255k 2012/02/10 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2012/2/10 10:24
  259k 2012/12/03 C:\cygwin\bin\cygpcre-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-1.dll" v0.0 ts=2012/12/3 5:34
 1628k 2012/07/12 C:\cygwin\bin\cygperl5_14.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_14.dll" v0.0 ts=2012/7/12 20: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 6:45
  162k 2012/05/04 C:\cygwin\bin\cygreadline7.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline7.dll" v0.0 ts=2012/5/4 22:07
   51k 2013/01/01 C:\cygwin\bin\cygroken-18.dll - os=4.0 img=1.0 sys=4.0
                  "cygroken-18.dll" v0.0 ts=2013/1/1 6:32
  583k 2013/04/16 C:\cygwin\bin\cygsqlite3-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygsqlite3-0.dll" v0.0 ts=2013/4/16 18:18
  366k 2013/02/12 C:\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-1.0.0.dll" v0.0 ts=2013/2/12 14:44
    8k 2011/10/26 C:\cygwin\bin\cygssp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygssp-0.dll" v0.0 ts=2011/10/23 14:33
  780k 2011/10/26 C:\cygwin\bin\cygstdc++-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygstdc++-6.dll" v0.0 ts=2011/10/23 14:58
   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 14:45
   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 17:28
  157k 2013/01/01 C:\cygwin\bin\cygwind-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygwind-0.dll" v0.0 ts=2013/1/1 6:33
   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 10:02
 1040k 2012/06/06 C:\cygwin\bin\cygX11-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygX11-6.dll" v0.0 ts=2012/6/6 5:20
    9k 2012/03/12 C:\cygwin\bin\cygXau-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXau-6.dll" v0.0 ts=2012/3/12 10:56
   81k 2012/11/08 C:\cygwin\bin\cygxcb-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygxcb-1.dll" v0.0 ts=2012/11/8 7:11
   17k 2012/03/12 C:\cygwin\bin\cygXdmcp-6.dll - os=4.0 img=1.0 sys=4.0
                  "cygXdmcp-6.dll" v0.0 ts=2012/3/12 10:52
 1235k 2013/04/21 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygxml2-2.dll" v0.0 ts=2013/4/21 5:37
   71k 2012/05/13 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2012/5/13 5:11
 2796k 2013/04/19 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2013/4/19 9:39
    Cygwin DLL version info:
        DLL version: 1.7.18
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 263
        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
Environment         : CYGWIN="binmode ntsec" 
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : PCC\sdoracle


Cygwin Package Information
Last downloaded files to: C:\Oracle\TempInstall\Cygwin\Packages
Last downloaded files from: 

Package                   Version              Status
Empty package _autorebase
_autorebase               000262-1             OK
Empty package _update-info-dir
_update-info-dir          01130-1              OK
Empty package alternatives
alternatives              1.3.30c-10           OK
Empty package base-cygwin
base-cygwin               3.1-1                OK
Empty package base-files
base-files                4.1-1                OK
Empty package bash
bash                      4.1.10-4             OK
Empty package bzip2
bzip2                     1.0.6-2              OK
Empty package coreutils
coreutils                 8.15-1               OK
Empty package crypt
crypt                     1.2-1                OK
Empty package csih
csih                      0.9.7-1              OK
Empty package cygrunsrv
cygrunsrv                 1.40-2               OK
Empty package cygutils
cygutils                  1.4.12-1             OK
Empty package cygwin
cygwin                    1.7.18-1             OK
Empty package cygwin-doc
cygwin-doc                1.7-1                OK
Empty package dash
dash                      0.5.7-1              OK
Empty package dbus
dbus                      1.6.8-1              OK
Empty package desktop-file-utils
desktop-file-utils        0.21-1               OK
Empty package diffutils
diffutils                 3.2-1                OK
Empty package dos2unix
dos2unix                  6.0.3-1              OK
Empty package editrights
editrights                1.01-2               OK
Empty package file
file                      5.11-1               OK
Empty package findutils
findutils                 4.5.11-1             OK
Empty package gamin
gamin                     0.1.10-13            OK
Empty package gawk
gawk                      4.0.2-1              OK
Empty package gettext
gettext                   0.18.1.1-2           OK
Empty package grep
grep                      2.6.3-1              OK
Empty package groff
groff                     1.21-2               OK
Empty package gsettings-desktop-schemas
gsettings-desktop-schemas 3.6.1-1              OK
Empty package gzip
gzip                      1.4-1                OK
Empty package ipc-utils
ipc-utils                 1.0-1                OK
Empty package less
less                      444-1                OK
Empty package libasn1_8
libasn1_8                 1.5.2-4              OK
Empty package libattr1
libattr1                  2.4.46-1             OK
Empty package libbz2_1
libbz2_1                  1.0.6-2              OK
Empty package libcom_err2
libcom_err2               1.42.7-1             OK
Empty package libdb4.5
libdb4.5                  4.5.20.2-3           OK
Empty package libdbus1_3
libdbus1_3                1.6.8-1              OK
Empty package libedit0
libedit0                  20120311-1           OK
Empty package libexpat1
libexpat1                 2.1.0-2              OK
Empty package libfam0
libfam0                   0.1.10-13            OK
Empty package libffi4
libffi4                   4.5.3-3              OK
Empty package libgcc1
libgcc1                   4.5.3-3              OK
Empty package libgdbm4
libgdbm4                  1.8.3-20             OK
Empty package libglib2.0_0
libglib2.0_0              2.34.3-1             OK
Empty package libgmp3
libgmp3                   4.3.2-1              OK
Empty package libgssapi3
libgssapi3                1.5.2-4              OK
Empty package libheimbase1
libheimbase1              1.5.2-4              OK
Empty package libheimntlm0
libheimntlm0              1.5.2-4              OK
Empty package libhx509_5
libhx509_5                1.5.2-4              OK
Empty package libiconv2
libiconv2                 1.14-2               OK
Empty package libintl8
libintl8                  0.18.1.1-2           OK
Empty package libkafs0
libkafs0                  1.5.2-4              OK
Empty package libkrb5_26
libkrb5_26                1.5.2-4              OK
Empty package liblzma5
liblzma5                  5.0.2_20110517-1     OK
Empty package libncurses10
libncurses10              5.7-18               OK
Empty package libncursesw10
libncursesw10             5.7-18               OK
Empty package libopenssl100
libopenssl100             1.0.1e-2             OK
Empty package libpcre0
libpcre0                  8.21-2               OK
Empty package libpcre1
libpcre1                  8.32-1               OK
Empty package libpopt0
libpopt0                  1.6.4-4              OK
Empty package libreadline7
libreadline7              6.1.2-3              OK
Empty package libroken18
libroken18                1.5.2-4              OK
Empty package libsqlite3_0
libsqlite3_0              3.7.16.2-1           OK
Empty package libssp0
libssp0                   4.5.3-3              OK
Empty package libstdc++6
libstdc++6                4.5.3-3              OK
Empty package libwind0
libwind0                  1.5.2-4              OK
Empty package libwrap0
libwrap0                  7.6-21               OK
Empty package libX11_6
libX11_6                  1.5.0-1              OK
Empty package libXau6
libXau6                   1.0.7-1              OK
Empty package libxcb1
libxcb1                   1.9-1                OK
Empty package libXdmcp6
libXdmcp6                 1.1.1-1              OK
Empty package libxml2
libxml2                   2.9.1-1              OK
Empty package login
login                     1.10-10              OK
Empty package man
man                       1.6g-2               OK
Empty package mintty
mintty                    1.1.3-1              OK
Empty package openssh
openssh                   6.2p1-2              OK
Empty package openssl
openssl                   1.0.1e-2             OK
Empty package perl
perl                      5.14.2-3             OK
Empty package perl_vendor
perl_vendor               5.14.2-3             OK
Empty package ping
ping                      1.0-1                OK
Empty package rebase
rebase                    4.4.0-1              OK
Empty package run
run                       1.1.13-1             OK
Empty package sed
sed                       4.2.1-2              OK
Empty package shared-mime-info
shared-mime-info          1.1-1                OK
Empty package tar
tar                       1.26-1               OK
Empty package terminfo
terminfo                  5.7_20091114-14      OK
Empty package texinfo
texinfo                   4.13-4               OK
Empty package tzcode
tzcode                    2013c-1              OK
Empty package unzip
unzip                     6.0-10               OK
Empty package vim
vim                       7.3.762-1            OK
Empty package vim-common
vim-common                7.3.762-1            OK
Empty package which
which                     2.20-2               OK
Empty package xxd
xxd                       7.3.762-1            OK
Empty package xz
xz                        5.0.2_20110517-1     OK
Empty package zip
zip                       3.0-11               OK
Empty package zlib0
zlib0                     1.2.7-1              OK
Use -h to see help about each section

[-- Attachment #3: install.bat.txt --]
[-- Type: text/plain, Size: 2281 bytes --]

@echo off
setlocal

rem Gather info from user
set /P account="Enter the domain user that will log in to SSH: "
set /P passwd="Enter %account%'s password: "
cls

rem Install CygWin
"%~dp0cygwin_setup.exe" -q -L -n -l "%~dp0Packages"

rem Set the CygWin variable on the system for future use
setx CYGWIN "binmode ntsec" /M
rem Set the variable locally so we can use it in the current session
set CYGWIN=binmode ntsec

rem Echo the commands we need to execute in CygWin to set up SSH
:CYGWIN_CONFIG
set cygwin_input=%TEMP%\cygwin_input.txt

echo cygrunsrv -h> %cygwin_input%
rem echo editrights -u %account% -a SeAssignPrimaryTokenPrivilege>> %cygwin_input%
rem echo editrights -u %account% -a SeCreateTokenPrivilege>> %cygwin_input%
rem echo editrights -u %account% -a SeTcbPrivilege>> %cygwin_input%
rem echo editrights -u %account% -a SeServiceLogonRight>> %cygwin_input%
echo echo yes^> ssh_input.txt>> %cygwin_input%
echo echo yes^>^> ssh_input.txt>> %cygwin_input%
echo echo yes^>^> ssh_input.txt>> %cygwin_input%
echo echo binmode ntsec^>^> ssh_input.txt>> %cygwin_input%
echo echo no^>^> ssh_input.txt>> %cygwin_input%
echo echo yes^>^> ssh_input.txt>> %cygwin_input%
echo echo Garb@g3^>^> ssh_input.txt>> %cygwin_input%
echo echo Garb@g3^>^> ssh_input.txt>> %cygwin_input%
echo ssh-host-config ^< ssh_input.txt>> %cygwin_input%
echo rm ssh_input.txt>> %cygwin_input%
echo sed -i.bak '/%account%/d' /etc/passwd>> %cygwin_input%
echo mkpasswd -d -u %account% ^>^> /etc/passwd>> %cygwin_input%
echo mkdir -p %account% /home/%account%>> %cygwin_input%
echo chown %account% /home/%account%>> %cygwin_input%

rem Run CygWin and feed it our input file to set up SSH
call C:\cygwin\cygwin.bat < %cygwin_input%

rem Configure the service in Windows
sc config sshd obj= PCC\%account% password= "%passwd%"

rem Echo some additional commands to run in CygWin
echo chown %account% /var/log/sshd.log> %cygwin_input%
echo chown -R %account% /var/empty>> %cygwin_input%
echo chown %account% /etc/ssh*>> %cygwin_input%
echo chmod 755 /var/empty>> %cygwin_input%
echo chmod 644 /var/log/sshd.log>> %cygwin_input%
call C:\cygwin\cygwin.bat < %cygwin_input%

rem And finally start the service and clean up
net start sshd
del %cygwin_input%

[-- Attachment #4: 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] 4+ messages in thread

end of thread, other threads:[~2013-05-03 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-02 14:05 Sshd cannot be manually restarted Johnson, Matt
2013-05-02 15:58 ` Larry Hall (Cygwin)
2013-05-03 15:09   ` Johnson, Matt
2013-05-03 15:14     ` Johnson, Matt

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