Re: sshd - again

2008-10-05 Thread Adem
"Christian Schneider" <[EMAIL PROTECTED]> wrote:
> 
> i want to setup a lightweight opportunity to access the data on my pc.
> After installing the most recent version of cygwin I configured sshd via 
> ssh-host-config.
> Access from local pc (localhost) with putty / WinSCP works fine.
> 
> Nevertheless access from another machine is not possible:
> plink terminates without any msg, WinSCP alerts: Server unexpectedly 
> closed network connection
> 
> I even deactivated my firewall completely but no success arised.
> 
> I didn't manipulated any filters like hosts.deny, the localhost's IP 
> address is 192.168.1.1
> 
> None of the previous threads give appropriate solutions.
> Hope somebody can help me

cygwin sshd works fine here under w2k3.
In your case it can only be a firewall issue, although you said you deactivated 
it,
but maybe there is still another firewall active either on your machine
or between the machines.
You can of course keep your firewall(s), but you have to open port 22
or an other port of your desire (see/set in /etc/ssh_config in cygwin,
and normally /etc/ssh/sshd_config on Linux boxes, for example Debian)
to access your machine from remote.
Use the debug flag:
ssh -v -l username host

BTW, it is recommended to disable root login via ssh,
instead use a normal user account and then you can do su...



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



cygcheck output sometimes gets truncated when piped (cygwin-1.7)

2008-10-05 Thread Herb Maeder
On a fresh install of cygwin-1.7 (1.7.0-30) on Vista, the output of
"cygcheck -s" sometimes gets truncated.  This seems to be more reproducible
when the output is piped to another command.

I find that this sequence is shows problem quite regularly (typically more
than half of the cycheck commands will have the output truncated):

i=0; while [ $i -lt 10 ] ; do echo $i; cygcheck -s | grep . > out.$i ;
i=$(($i + 1)); done ; ls -l out.*

There seems to be two failure modes.  The first truncates the ouptut
within the firt three lines.  The second hangs the "cygcheck -s | grep ."
command so that it will not respond to job control (interrupt or suspend).
In this case I need to kill the grep from another shell to complete the
loop.

Here is some sample output from the above command:

0
1
2
3
4
5
6
7
8
9
-rw-r--r-- 1 herb Domain Users 7440 Oct  5 05:39 out.0
-rw-r--r-- 1 herb Domain Users  151 Oct  5 05:39 out.1
-rw-r--r-- 1 herb Domain Users   36 Oct  5 05:39 out.2
-rw-r--r-- 1 herb Domain Users 7440 Oct  5 05:39 out.3
-rw-r--r-- 1 herb Domain Users  151 Oct  5 05:39 out.4
-rw-r--r-- 1 herb Domain Users  151 Oct  5 05:39 out.5
-rw-r--r-- 1 herb Domain Users 7440 Oct  5 05:39 out.6
-rw-r--r-- 1 herb Domain Users  151 Oct  5 05:39 out.7
-rw-r--r-- 1 herb Domain Users0 Oct  5 05:39 out.8
-rw-r--r-- 1 herb Domain Users  151 Oct  5 05:39 out.9

Files of size 7440 have the normal expected output, the one with 0 length
hung (needed to kill the grep), and the rest had the output truncated
within the first three lines.

Piping into "cat" instead of "grep ." can also show the problem, but far
less frequently (maybe 3 out of 500 times).  I have also seen the problem
by simply redirecting the output of "cygcheck -s" into a file and even on
the command line with no piping or redirecting.  But those are far less
reproducible.

I'm hoping that the problem can be easily reproduced by others.  But if
not, please let me know what I can do to collect more information.

Herb.

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



Re: cygcheck output sometimes gets truncated when piped (cygwin-1.7)

2008-10-05 Thread Christopher Faylor
On Sun, Oct 05, 2008 at 06:36:32AM -0700, Herb Maeder wrote:
>On a fresh install of cygwin-1.7 (1.7.0-30) on Vista, the output of
>"cygcheck -s" sometimes gets truncated.  This seems to be more
>reproducible when the output is piped to another command.

This has been reported before and I was able to duplicate it in a VM.
I thought I'd fixed it when I released 1.7-30 but obviously it's still
there.

The good news is that I can reproduce the problem 100% of the time in
gdb so I finally was able to track down the root cause.

I'm generating a snapshot with a fix now.  The fix is in cygwin1.dll,
not cygcheck.exe, so you'll need to download and install that.

If you can verify that the snapshot works, I'll generate a new 1.7
release.

cgf

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



Re: cygcheck output sometimes gets truncated when piped (cygwin-1.7)

2008-10-05 Thread Herb Maeder
On Sun, Oct 05, 2008 at 12:51:59 -0400, Christopher Faylor wrote:
> >On a fresh install of cygwin-1.7 (1.7.0-30) on Vista, the output of
> >"cygcheck -s" sometimes gets truncated.  This seems to be more
> >reproducible when the output is piped to another command.
> 
> This has been reported before and I was able to duplicate it in a VM.
> I thought I'd fixed it when I released 1.7-30 but obviously it's still
> there.
> 
> The good news is that I can reproduce the problem 100% of the time in
> gdb so I finally was able to track down the root cause.
> 
> I'm generating a snapshot with a fix now.  The fix is in cygwin1.dll,
> not cygcheck.exe, so you'll need to download and install that.
> 
> If you can verify that the snapshot works, I'll generate a new 1.7
> release.

The snapshot looks good to me.  I can no longer reproduce the problem with
the cygwin1-20081005.dll.  Thanks for the quick fix.

Herb.

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



dnsutils package

2008-10-05 Thread Adem
Hi,
has the "dnsutils" package not yet been ported to Cygwin?
I think the "dig" utility which I need for querying DNS entries is in this 
package.

The Cygwin package search page at http://cygwin.com/packages/
finds neither dig nor dnsutils. OTOH the package search page 
at the Debian site http://www.debian.com/distrib/packages
says "dig" is in the dnsutils package.



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



Re: dnsutils package

2008-10-05 Thread René Berber
Adem wrote:

> has the "dnsutils" package not yet been ported to Cygwin?
> I think the "dig" utility which I need for querying DNS entries is in this 
> package.
> 
> The Cygwin package search page at http://cygwin.com/packages/
> finds neither dig nor dnsutils. OTOH the package search page 
> at the Debian site http://www.debian.com/distrib/packages
> says "dig" is in the dnsutils package.

An alternative is to build bind (ISC's bind:
http://www.isc.org/sw/bind/) which builds with no problem out of the box
under Cygwin.  Or just get the binary distributed by ISC, which is a
Windows native daemon and tools.
-- 
René Berber


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



first cygwin 1.7 bash issue

2008-10-05 Thread Cyrille Lefevre


Hi,

I'm running both cygwin 1.5 and 1.7 under vista home.

no prob under 1.5, but, under 1.7, the first bash instance I launch 
after boot say :


Your group is currently "mkpasswd".  This indicates that
the /etc/passwd (and possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup  -l [-d] > /etc/group
Note that the -d switch is necessary for domain users.

the second one is ok ! any idea ? thanks in advance.

/etc/fstab is :

C:/cygwin2 / ntfs binary 0 0
C:/cygwin2/bin /usr/bin ntfs binary 0 0
C:/cygwin2/lib /usr/lib ntfs binary 0 0
C:/cygwin/home /home ntfs binary 0 0
C:/cygwin/opt /opt ntfs binary 0 0

regtool -q list '\HKCU\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2' is 
empty and \HKLM is 1.5 the standard ones :


[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2]
"cygdrive prefix"="/cygdrive"
"cygdrive flags"=dword:0022

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/]
"native"="C:\\cygwin"
"flags"=dword:000a

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin]
"native"="C:\\cygwin/bin"
"flags"=dword:000a

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib]
"native"="C:\\cygwin/lib"
"flags"=dword:000a

Regards,

Cyrille Lefevre
--
mailto:[EMAIL PROTECTED]


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



Re: cygcheck output sometimes gets truncated when piped (cygwin-1.7)

2008-10-05 Thread Christopher Faylor
On Sun, Oct 05, 2008 at 10:54:12AM -0700, Herb Maeder wrote:
>On Sun, Oct 05, 2008 at 12:51:59 -0400, Christopher Faylor wrote:
>> >On a fresh install of cygwin-1.7 (1.7.0-30) on Vista, the output of
>> >"cygcheck -s" sometimes gets truncated.  This seems to be more
>> >reproducible when the output is piped to another command.
>> 
>> This has been reported before and I was able to duplicate it in a VM.
>> I thought I'd fixed it when I released 1.7-30 but obviously it's still
>> there.
>> 
>> The good news is that I can reproduce the problem 100% of the time in
>> gdb so I finally was able to track down the root cause.
>> 
>> I'm generating a snapshot with a fix now.  The fix is in cygwin1.dll,
>> not cygcheck.exe, so you'll need to download and install that.
>> 
>> If you can verify that the snapshot works, I'll generate a new 1.7
>> release.
>
>The snapshot looks good to me.  I can no longer reproduce the problem with
>the cygwin1-20081005.dll.  Thanks for the quick fix.

You're welcome but it wasn't exactly quick.  The problem was reported
months ago and I thought it was fixed in September but never actually
announced it so no one ever tested it.

Thanks for confirming.

cgf

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



Re: first cygwin 1.7 bash issue

2008-10-05 Thread Lev Bishop
On Sun, Oct 5, 2008 at 17:45, Cyrille Lefevre wrote:

> Your group is currently "mkpasswd".  This indicates that
> the /etc/passwd (and possibly /etc/group) files should be rebuilt.
> See the man pages for mkpasswd and mkgroup then, for example, run
> mkpasswd -l [-d] > /etc/passwd
> mkgroup  -l [-d] > /etc/group
> Note that the -d switch is necessary for domain users.
>
> the second one is ok ! any idea ? thanks in advance.

Yes. The problem is that your group is currently "mkpasswd".  This
indicates that the /etc/passwd (and possibly /etc/group) files should
be rebuilt. See the man pages for mkpasswd and mkgroup then, for
example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup  -l [-d] > /etc/group
In addition, please note that the -d switch is necessary for domain users.

Lev

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



Re: first cygwin 1.7 bash issue

2008-10-05 Thread Marco Atzeri
--- Lev Bishop  ha scritto:

> On Sun, Oct 5, 2008 at 17:45, Cyrille Lefevre wrote:
> 
> > Your group is currently "mkpasswd".  This
> indicates that
> > the /etc/passwd (and possibly /etc/group) files
> should be rebuilt.
> > See the man pages for mkpasswd and mkgroup then,
> for example, run
> > mkpasswd -l [-d] > /etc/passwd
> > mkgroup  -l [-d] > /etc/group
> > Note that the -d switch is necessary for domain
> users.
> >
> > the second one is ok ! any idea ? thanks in
> advance.
> 
> Yes. The problem is that your group is currently
> "mkpasswd".  This
> indicates that the /etc/passwd (and possibly
> /etc/group) files should
> be rebuilt. See the man pages for mkpasswd and
> mkgroup then, for
> example, run
> mkpasswd -l [-d] > /etc/passwd
> mkgroup  -l [-d] > /etc/group
> In addition, please note that the -d switch is
> necessary for domain users.
> 

It is not so easy. Cyrille clearly state that 
it happens only on the first run of the shell.

I also have such beahaviour, and my group is clearly
defined.
Usually for me it happens when an updated version 
of the cygwin package is installed.  


> Lev
> 

Regards
Marco


  Scopri il blog di Yahoo! Mail:
Trucchi, novità e la tua opinione.
http://www.ymailblogit.com/blog

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