public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin: can't get openssh working via inetd
@ 2001-03-29 18:08 Brendan J Simon
  0 siblings, 0 replies; 4+ messages in thread
From: Brendan J Simon @ 2001-03-29 18:08 UTC (permalink / raw)
  To: cygwin

I can't get sshd workding via inetd.  I'm following the instructions in 
/usr/doc/Cygwin/openssh-2.5.1pw.README.
I it does work perfectly if I invoke sshd manually from the bash 
prompt.  This indicates to me that there is a problem with sshd running 
as SYSTEM and trying to fork and change users.  I see

[bjsimon@k9:~]$ ssh zigfried
bjsimon@zigfried.ctam.local's password:
     0 [main] a 0 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
Exception: STATUS_ACCESS_VIOLATION at eip=61001B47
eax=00000069 ebx=6779632F ecx=00000000 edx=67796337 esi=00000000 
edi=0240FF74
ebp=0240FA30 esp=0240FECC program=a
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0240FA30  61001B47  (00000000, 00000000, 00000000, 00000000)
0240FEF4  61001B47  (00000130, 7FFD0001, 0240FF44, 6100326E)
0240FF44  61003380  (004072CC, 6107D13C, 00000000, 00000000)
0240FF74  61003A3D  (00000000, 00000000, 00000000, 00000000)
0240FF94  61003A7C  (00407230, 004011D0, 0240FFC0, 00401038)
0240FFA4  00405206  (004011D0, 80430F7B, 77E992A3, FFFFFFFE)
0240FFC0  00401038  (00000000, 00000000, 7FFDF000, 0247D711)
0240FFF0  77E992A6  (00401000, 00000000, 000000C8, 00000100)
End of stack trace


Is this an NTSEC problem ??  I'm running Windows 2000.
My /etc/ssh_config has everything commented out so it should have the 
defaults.
   PasswordAuthentication yes
   RSAAuthentication yes

There is mention in the docs that when using ntea or ntsec you now have 
to care for the ownership and permissions bits of your host key files 
and your private key files.  I have tried changing the permissions and 
ownership with chmod but nothing happens !!!  ie. chmod and chown don't 
seem to have any affect.  I created a file in /tmp and tried to change 
its owner to SYSTEM but ls -l reveals nothing changed.  The same when 
trying chmod +w /tmp/file.

Why can't I change permissions and would this be the reason sshd running 
as LocalSystem doesnot operate properly.

Thanks,
Brendan Simon.



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: cygwin: can't get openssh working via inetd
  2001-03-29 22:06 ` Brendan J Simon
@ 2001-03-30  0:32   ` Corinna Vinschen
  0 siblings, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2001-03-30  0:32 UTC (permalink / raw)
  To: cygwin

On Fri, Mar 30, 2001 at 05:05:59PM +1000, Brendan J Simon wrote:
> Thanks Karl,
> 
> The new cygwin1.dll fixed the ssh problem I was seeing.  I can now login 
> in successfully but I have to enter my password everytime.  Obviously 
> the sshd is not looking into my home directory (which is on a mapped 
> network drive) for my .ssh/ directory.  How do I get around this ???

You can't. When using sshd under inetd (WHICH IS NOT RECOMMENDED)
sshd starts up under the same user account as inetd, typically
the "LocalSystem" account. This LocalSystem account doesn't have
access to network drives. Even if that would be possible you
would have to give your password to be able to change the user
context.

I suggest starting sshd under your own account. Don't use inetd
for that. Read /usr/doc/openssh-2.5.2p2.README

Corinna

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

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: cygwin: can't get openssh working via inetd
  2001-03-29 19:33 Karl M
@ 2001-03-29 22:06 ` Brendan J Simon
  2001-03-30  0:32   ` Corinna Vinschen
  0 siblings, 1 reply; 4+ messages in thread
From: Brendan J Simon @ 2001-03-29 22:06 UTC (permalink / raw)
  To: cygwin

Thanks Karl,

The new cygwin1.dll fixed the ssh problem I was seeing.  I can now login 
in successfully but I have to enter my password everytime.  Obviously 
the sshd is not looking into my home directory (which is on a mapped 
network drive) for my .ssh/ directory.  How do I get around this ???

Thanks,
Brendan Simon.



Karl M wrote:

> Hi Brendan...
> 
> I had the same problem. I downloaded the 20010325 snapshot of the 
> cygwin1.dll file and that took care of it. The issue shows up when the 
> user-id of the sshd is different than the user-id of the client.
> 
> ...Karl
> 
> 
>> From: Brendan J Simon <brendan.simon@bigpond.com>
>> Reply-To: brendan.simon@bigpond.com
>> To: cygwin <cygwin@sourceware.cygnus.com>
>> Subject: cygwin: can't get openssh working via inetd
>> Date: Fri, 30 Mar 2001 12:03:18 +1000
>> 
>> I can't get sshd workding via inetd.  I'm following the instructions in
>> /usr/doc/Cygwin/openssh-2.5.1pw.README.
>> I it does work perfectly if I invoke sshd manually from the bash
>> prompt.  This indicates to me that there is a problem with sshd running
>> as SYSTEM and trying to fork and change users.  I see
>> 
>> [bjsimon@k9:~]$ ssh zigfried
>> bjsimon@zigfried.ctam.local's password:
>>    0 [main] a 0 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
>> Exception: STATUS_ACCESS_VIOLATION at eip=61001B47
>> eax=00000069 ebx=6779632F ecx=00000000 edx=67796337 esi=00000000
>> edi=0240FF74
>> ebp=0240FA30 esp=0240FECC program=a
>> cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
>> Stack trace:
>> Frame     Function  Args
>> 0240FA30  61001B47  (00000000, 00000000, 00000000, 00000000)
>> 0240FEF4  61001B47  (00000130, 7FFD0001, 0240FF44, 6100326E)
>> 0240FF44  61003380  (004072CC, 6107D13C, 00000000, 00000000)
>> 0240FF74  61003A3D  (00000000, 00000000, 00000000, 00000000)
>> 0240FF94  61003A7C  (00407230, 004011D0, 0240FFC0, 00401038)
>> 0240FFA4  00405206  (004011D0, 80430F7B, 77E992A3, FFFFFFFE)
>> 0240FFC0  00401038  (00000000, 00000000, 7FFDF000, 0247D711)
>> 0240FFF0  77E992A6  (00401000, 00000000, 000000C8, 00000100)
>> End of stack trace
>> 
>> 
>> Is this an NTSEC problem ??  I'm running Windows 2000.
>> My /etc/ssh_config has everything commented out so it should have the
>> defaults.
>>   PasswordAuthentication yes
>>   RSAAuthentication yes
>> 
>> There is mention in the docs that when using ntea or ntsec you now have
>> to care for the ownership and permissions bits of your host key files
>> and your private key files.  I have tried changing the permissions and
>> ownership with chmod but nothing happens !!!  ie. chmod and chown don't
>> seem to have any affect.  I created a file in /tmp and tried to change
>> its owner to SYSTEM but ls -l reveals nothing changed.  The same when
>> trying chmod +w /tmp/file.
>> 
>> Why can't I change permissions and would this be the reason sshd running
>> as LocalSystem doesnot operate properly.
> 



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: cygwin: can't get openssh working via inetd
@ 2001-03-29 19:33 Karl M
  2001-03-29 22:06 ` Brendan J Simon
  0 siblings, 1 reply; 4+ messages in thread
From: Karl M @ 2001-03-29 19:33 UTC (permalink / raw)
  To: brendan.simon, cygwin

Hi Brendan...

I had the same problem. I downloaded the 20010325 snapshot of the 
cygwin1.dll file and that took care of it. The issue shows up when the 
user-id of the sshd is different than the user-id of the client.

...Karl


>From: Brendan J Simon <brendan.simon@bigpond.com>
>Reply-To: brendan.simon@bigpond.com
>To: cygwin <cygwin@sourceware.cygnus.com>
>Subject: cygwin: can't get openssh working via inetd
>Date: Fri, 30 Mar 2001 12:03:18 +1000
>
>I can't get sshd workding via inetd.  I'm following the instructions in
>/usr/doc/Cygwin/openssh-2.5.1pw.README.
>I it does work perfectly if I invoke sshd manually from the bash
>prompt.  This indicates to me that there is a problem with sshd running
>as SYSTEM and trying to fork and change users.  I see
>
>[bjsimon@k9:~]$ ssh zigfried
>bjsimon@zigfried.ctam.local's password:
>     0 [main] a 0 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
>Exception: STATUS_ACCESS_VIOLATION at eip=61001B47
>eax=00000069 ebx=6779632F ecx=00000000 edx=67796337 esi=00000000
>edi=0240FF74
>ebp=0240FA30 esp=0240FECC program=a
>cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
>Stack trace:
>Frame     Function  Args
>0240FA30  61001B47  (00000000, 00000000, 00000000, 00000000)
>0240FEF4  61001B47  (00000130, 7FFD0001, 0240FF44, 6100326E)
>0240FF44  61003380  (004072CC, 6107D13C, 00000000, 00000000)
>0240FF74  61003A3D  (00000000, 00000000, 00000000, 00000000)
>0240FF94  61003A7C  (00407230, 004011D0, 0240FFC0, 00401038)
>0240FFA4  00405206  (004011D0, 80430F7B, 77E992A3, FFFFFFFE)
>0240FFC0  00401038  (00000000, 00000000, 7FFDF000, 0247D711)
>0240FFF0  77E992A6  (00401000, 00000000, 000000C8, 00000100)
>End of stack trace
>
>
>Is this an NTSEC problem ??  I'm running Windows 2000.
>My /etc/ssh_config has everything commented out so it should have the
>defaults.
>   PasswordAuthentication yes
>   RSAAuthentication yes
>
>There is mention in the docs that when using ntea or ntsec you now have
>to care for the ownership and permissions bits of your host key files
>and your private key files.  I have tried changing the permissions and
>ownership with chmod but nothing happens !!!  ie. chmod and chown don't
>seem to have any affect.  I created a file in /tmp and tried to change
>its owner to SYSTEM but ls -l reveals nothing changed.  The same when
>trying chmod +w /tmp/file.
>
>Why can't I change permissions and would this be the reason sshd running
>as LocalSystem doesnot operate properly.
>
>Thanks,
>Brendan Simon.
>
>
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2001-03-30  0:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-29 18:08 cygwin: can't get openssh working via inetd Brendan J Simon
2001-03-29 19:33 Karl M
2001-03-29 22:06 ` Brendan J Simon
2001-03-30  0:32   ` 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).