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]

RE: Can't get SSHD s tarted aft er success fully runn ing sshd-h ost-config â

Thanks a lot for the help.  I did the following and sshd now runs successfully:

0.  I did some grepping to try and find permissions to reset after my erroneous direct call to /usr/sbin/sshd.  I saved these permissions in a script which I ran.  I'm not sure if this contributed to the fix or not.  However, I have attached the script.
1.  I clicked "Keep" until it showed "Reinstall" next to OpenSSH using setup.exe.
2.  I ran ssh-host-config
3.  I ran cygrunsrv --start sshd
4.  Got the same error as before, but checked /var/logs/sshd.log and saw:

[fido ~]$ cat /var/log/sshd.log
/var/empty must be owned by root and not group or world-writable.
/var/empty must be owned by root and not group or world-writable.
[fido ~]$ ls -ld /var/empty
drwxr-xr-x+ 2 sshd Administrators 0 Sep 21 14:20 /var/empty/

5.  So I changed the owner of /var/empty to SYSTEM

[fido ~]$ chown SYSTEM /var/empty
[fido ~]$ 

6.  Then I ran cygrunsrv --start sshd again and sshd started successfully

> Date: Tue, 22 Sep 2009 11:09:44 -0400
> From:
> To:
> Subject: Re: Can't get SSHD started after successfully running sshd-host-configâ
> On 09/22/2009 11:07 AM, Kyle Stanek wrote:
>> Ahh...Thanks for the pointer. Here's the output now:
>> [fido ~]$ cygcheck /usr/sbin/sshd
>> C:\cygwin\usr/sbin/sshd.exe
>> C:\cygwin\bin\cygcrypt-0.dll
>> C:\cygwin\bin\cygwin1.dll
>> C:\WINDOWS\system32\ADVAPI32.DLL
>> C:\WINDOWS\system32\KERNEL32.dll
>> C:\WINDOWS\system32\ntdll.dll
>> C:\WINDOWS\system32\RPCRT4.dll
>> C:\WINDOWS\system32\Secur32.dll
>> C:\cygwin\bin\cygcrypto-0.9.8.dll
>> Error: could not find cygwrap-0.dll
>> C:\cygwin\bin\cygz.dll
>> [fido ~]$
>> Seems suspicious, know where I can get that missing driver?
> Install 'libwrap0' using 'setup.exe'. If it says it's already installed,
> try re-installing
> it.
> --
> Larry Hall
> RFK Partners, Inc. (508) 893-9779 - RFK Office
> 216 Dalton Rd. (508) 893-9889 - FAX
> Holliston, MA 01746
> _____________________________________________________________________
> 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:
> FAQ:
> Documentation:
> Unsubscribe info:

Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.

Attachment: resetPermissions.bash
Description: Binary data

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]