delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/18/23:25:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.5 required=5.0 tests=AWL,BAYES_50,DONT_USE_RAW_EMAIL_IN_BODY,TW_FD,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <5FFFAB3EC03D09468D160693F176A1174EE2A92D@CANOPUS>
From: Bob Goldberg <bgoldberg AT homeaccess DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: endless problems with SSHD - bug ??
Date: Wed, 18 Aug 2010 22:24:48 -0500
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
Of Larry Hall (Cygwin)
Sent: Wednesday, August 18, 2010 1:04 PM
To: cygwin AT cygwin DOT com
Subject: Re: endless problems with SSHD - bug ??


On 8/18/2010 1:27 PM, Bob Goldberg wrote:
> Unless - is there a way I can LIMIT activity to only "scp"?
> AND - prevent accessing outside what would be my "jail"?
>
> I certainly did miss that very well titled document - no wonder my
searches
> were fruitless!! :-)  I'll check to make sure the path is getting set
> correctly. Although, if I get scp running like I want, then I no longer
> need/care about resolving this problem....

If you need to restrict access, your best bet is to use Windows permissions.
=============================

OK Larry, 'nuf said on the sshd chroot :o)

permissions - no problem - got that covered already....

STILL - can NOT get scp to work to save my life.
AFAIK - path DOES look good according to debug info.

i've changed my shell back to /bin/bash to eliminate that variable.
relevant reminders:
  using cygwin 1.7.6 on win2k; using RSA-keys for auth
  $ ssh als AT cappy     # WORKS GREAT (no typing - RSA auth works)
  $ ssh als AT cappy "echo hello"   # fails in same manner as scp below
and so my scp command continues to give:
>> BEGIN screen dump
$ scp puttest.txt als AT cappy:~/
debug1: permanently_set_uid: 3945/514
debug3: Copy environment: ALLUSERSPROFILE=C:\\Documents and Settings\\All
Users
debug3: Copy environment: COMPUTERNAME=CAPPY
debug3: Copy environment: COMSPEC=C:\\WINNT\\system32\\cmd.exe
debug3: Copy environment: OS=Windows_NT
debug3: Copy environment:
PATH=/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cyg
drive/c/WINNT/System32/Wbem:/cygdrive/c/Program
Files/Symantec/pcAnywhere/:/bin
debug3: Copy environment:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.W
SH
debug3: Copy environment: SYSTEMDRIVE=C:
debug3: Copy environment: SYSTEMROOT=C:\\WINNT
debug3: Copy environment: WINDIR=C:\\WINNT
debug3: Copy environment: CYGWIN=ntsec
getsockname failed: Socket operation on non-socket
getsockname failed: Socket operation on non-socket
Environment:
  ALLUSERSPROFILE=C:\Documents and Settings\All Users
  COMPUTERNAME=CAPPY
  COMSPEC=C:\WINNT\system32\cmd.exe
  OS=Windows_NT
 
PATH=/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32
/W
bem:/cygdrive/c/Program Files/Symantec/pcAnywhere/:/bin
  PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
  SYSTEMDRIVE=C:
  SYSTEMROOT=C:\WINNT
  WINDIR=C:\WINNT
  CYGWIN=ntsec
  USER=als
  LOGNAME=als
  HOME=/home/chroot/home/als
  MAIL=/var/spool/mail/als
  SHELL=/bin/bash
  SSH_CLIENT=192.168.1.156 3824 0
  SSH_CONNECTION=192.168.1.156 3824 UNKNOWN 0
debug3: channel 0: close_fds r -1 w -1 e -1
   1096 [main] sshd 1960 E:\cygwin\usr\sbin\sshd.exe: *** fatal error -
could no
t load user32, Win32 error 1114
Stack trace:
Frame     Function  Args
00229E84  61004ADB  (61177840, 00008000, 00000000, 61178977)
0022AEB4  61004ADB  (61178084, 61161E4C, 61161E4C, 0022AFA0)
0022AEE4  61001325  (61030A0B, 6123D224, 0022AF50, 0022AF18)
0022BBC8  6115764C  (00000003, FFFFFFFF, FFFFFFFF, 61117A22)
0022BC08  610CADE3  (00000003, 006BBAC8, 0022BD0C, 006C2998)
0022BC28  6102952B  (006BBAC8, 0022BD0C, 006C2998, 6115F410)
0022C148  610BFEA5  (006BB1F8, 0069B2C0, 00000002, 00000001)
0022C198  00412D4B  (006BB1F8, 0069B2C0, 006BB1F8, 00427EA2)
0022C1C8  004130F4  (006BB1F8, 0069B2C0, 006BF218, 006B290C)
0022C288  0041343C  (006BF258, 006BF218, 006BF218, 00000001)
0022C2C8  0040AAF3  (00000062, 0000000A, 006BCC38, 0040BB05)
0022C308  004389D6  (00000001, 00000000, 006BCC38, 0040C6FA)
0022C348  0040BC6A  (006C2D48, 006BBA30, 0022C388, 00417DF6)
0022C388  00413CCE  (006C2D48, 00000003, 00000000, 0022CC44)
0022CD58  004040F3  (00000000, 00000000, 0022CD98, 61006C53)
0022CD98  61006C53  (00000000, 0022CDD4, 610064F0, 7FFDF000)
End of stack trace (more stack frames may be present)
lost connection
<< END screen dump

and as I finish this - just had a hmmmm...
having cygwin installed on non- C: isn't a problem - is it??

TIA (again :)

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019