sshd not properly working

2005-04-02 Thread giuseppe
Hi everyone!
I am an Italian student; my name is giuseppe

during this day I tried several attempts to get the sshd service work on a win
machine (WM in the following) but without any succes and now I would like to ask
you for some help.

I have win XP SP2 on my WM and I installed the latest version of cygwin.
later I tryed to get the ssh daemon working following instructions from:
http://pigtail.net/LRP/printsrv/cygwin-sshd.html

as a result I get the client ssh work properly but if i try from a linux machine
(LM in the following) i get
$ ssh -l username  name_WM
ssh: connect to host name_WM port 22: Connection timed out

nevertheless from WM i can ssh to and back from LM;
this is puzzling for me; once I ssh on LM from the cygwin shell I digit
the same command
$ ssh -l username name_WM
and the connection starts!! way??

I downloaded and run tcpview.exe and here is what it see when i ssh on LM:

alg.exe:1812  TCP  127.0.0.1:1031  0.0.0.0:0  LISTENING 
lsass.exe:716  UDP  0.0.0.0:500  *:*  
lsass.exe:716  UDP  0.0.0.0:4500  *:*  
Pop3trap.exe:1020 TCP  127.0.0.1:110  0.0.0.0:0  LISTENING 
spoolsv.exe:1444 UDP  0.0.0.0:1037  *:*  
ssh.exe:2432  TCP  WM_ip:1120 LM_ip:22 ESTABLISHED  >>
ssh.exe:2432  UDP  127.0.0.1:1121  *:* >>
sshd.exe:424  TCP  0.0.0.0:22  0.0.0.0:0  LISTENING 
sshd.exe:424  UDP  127.0.0.1:1027  *:* 
svchost.exe:1064 UDP  127.0.0.1:123  *:*  
svchost.exe:1064 UDP  WM_ip:123 *:*  
svchost.exe:1104 UDP  0.0.0.0:1067  *:*  
svchost.exe:1104 UDP  0.0.0.0:1025  *:*  
svchost.exe:1168 UDP  127.0.0.1:1900  *:*  
svchost.exe:1168 UDP  WM_ip:1900 *:*  
svchost.exe:976 TCP  0.0.0.0:135  0.0.0.0:0  LISTENING 
System:4  TCP  0.0.0.0:445  0.0.0.0:0  LISTENING 
System:4  UDP  0.0.0.0:445  *:*  
System:4  TCP  WM_ip:139 0.0.0.0:0  LISTENING 
System:4  UDP  WM_ip:137 *:*  
System:4  UDP  WM_ip:138 *:*  

when I disconnect the lines with >> disappear

that's all; I hope you can understand what's going on.

thanks a lot anyway
bye

giuseppe



--
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: sshd not properly working

2005-04-02 Thread Corinna Vinschen
On Apr  2 11:07, giuseppe wrote:
> I have win XP SP2 on my WM and I installed the latest version of cygwin.
> later I tryed to get the ssh daemon working following instructions from:
> http://pigtail.net/LRP/printsrv/cygwin-sshd.html

http://cygwin.com/ml/cygwin/2005-03/msg00712.html
http://cygwin.com/ml/cygwin/2005-03/msg01060.html


Corinna

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

--
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: sshd not properly working

2005-04-02 Thread giuseppe
Corinna Vinschen  cygwin.com> writes:

> 
> On Apr  2 11:07, giuseppe wrote:
> > I have win XP SP2 on my WM and I installed the latest version of cygwin.
> > later I tryed to get the ssh daemon working following instructions from:
> > http://pigtail.net/LRP/printsrv/cygwin-sshd.html
> 
> http://cygwin.com/ml/cygwin/2005-03/msg00712.html
> http://cygwin.com/ml/cygwin/2005-03/msg01060.html
> 
> Corinna
> 

Dear Corinna,
Thank you very much for your reply!

I'm very sorry but I was not able to find online the official cygwin
documentation of sshd (probably it's my fault);
moreover, at the beginning, i was only trying to get openssh working; then
,googling around, I found nfong site describing how to get an ssh server service
working and just followed instructions; I already wrote to nfong and he also
kindly replied once, but sshd still doesn't work.

If i understand your suggestion is to uninstall cygwin and restart everything
from the beginning, isn't it? I was thinking the same; the only problem is that
nfong, in his guide, said

>>(3)  Right click My Computer, Properties, Advanced, Environment Variables
>>See this illustration (red dots).
>>Click the "New" button to add a new entry to system variables:
>>variable name is CYGWIN
>>variable value is ntsec tty

>>(4) Right click My Computer, Properties, Advanced, Environment Variables
>>See this illustration (green dots).
>>Select the Path variable and click the "Edit" button:
>>append  ;c:\cygwin\bin   to the end of the existing variable string.

>>(5) Open a cygwin window (by double clicking theg icon), a black screen pops
>>open, type
>>ssh-host-config
>>When the script asks you about "privilege separation be used", answer yes.
>>When the script asks about "local user", answer yes.
>>When the script asks you about "install sshd as a service", answer yes
>>When the script asks you for "CYGWIN=",
>>your answer should be ntsec tty

Should i eliminate the variables created of point 3) and 4)?
what is the real answer to the last question of ssh-host-config?
Finally, is it true that I have to add an exeption for port 22 in the firewall?

again thank you very much 
bye
giuseppe



--
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: Doxygen: update request

2005-04-02 Thread Hans Horn
heard anything from the doxygen maintainer? R.I.P?

Igor Pechtchanski wrote:
> On Fri, 25 Mar 2005, Max Bowsher wrote:
>
>> The version of doxygen included in Cygwin is quite old.
>>
>> Could the doxygen maintainer please consider updating this package
>> soon, thanks.
>
> Hans Horn offered[*] to maintain a new version of doxygen.  Let's
> give it another week or so, and if Ryunosuke doesn't respond, we'll
> consider doxygen up for grabs.  The decision is ultimately up to the
> project co-leaders, though.  CGF or Corinna?
> Igor
> P.S. Corinna, your reply to the below message never got to
> cygwin-apps. [*]  




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



sshd problems

2005-04-02 Thread giuseppe
Dear Corinna

Following your suggestion I installed cygwin from the beginning following ONLY
the rules of the official cygwin site.
Then I installed openssh using the setup utility and tried to follow the
instructions you wrote in /usr/share/doc/Cygwin/openssh.README.
Unfortunately nothing has changed and I can ssh to outside world but can't do
the opposite; nor the ping work(from outside).

any idea of what's going on?

What do you mean when you say to give the D option when starting sshd with
cygrunsrv if this option does not exist for cygrunsrv?

thanks 
bye 
giuseppe 


--
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: revisiting case sensitivity

2005-04-02 Thread beau
On Apr 1, 2005 8:28 PM, Eric Blake <[EMAIL PROTECTED]> wrote:
> Does this corner case warrant an upstream request in coreutils to
> gracefully handle this?
We have gone so very far over my head that I can't even pretend to
have a right to an opinion (but when did *that* ever stop anyone from
sharing?)  I'll probably just handle my own issues with a perl script;
I'm slightly less an l-user with perl than with bash (but only
slightly!)  Truth is, I tried Igor's solution and it just froze my
cygwin (the rxvt from which I called it and any subsequent rxvt
opened) and I'm not bash-or-cygwin-savvy enough to see what is wrong.

That said, my failure to grok this is no reflection on the goodness
that is cygwin.  Rock on.

beau

--
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: sshd problems

2005-04-02 Thread John R Larsen
After you ran the ssh-host-config script, did you start the service with:

cygrunsrv -S sshd

If not, the service isn't running yet and you won't be able to connect.

On 2 Apr 2005 at 16:29, giuseppe wrote:

To: cygwin@cygwin.com
From:   giuseppe <[EMAIL PROTECTED]>
Subject:sshd problems
Date sent:  Sat, 2 Apr 2005 16:29:58 + (UTC)

[ Double-click this line for list subscription options ] 

Dear Corinna

Following your suggestion I installed cygwin from the beginning following ONLY
the rules of the official cygwin site.
Then I installed openssh using the setup utility and tried to follow the
instructions you wrote in /usr/share/doc/Cygwin/openssh.README.
Unfortunately nothing has changed and I can ssh to outside world but can't do
the opposite; nor the ping work(from outside).

any idea of what's going on?

What do you mean when you say to give the D option when starting sshd with
cygrunsrv if this option does not exist for cygrunsrv?

thanks 
bye 
giuseppe 


--
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/
___
John R Larsen <[EMAIL PROTECTED]>
http://larsen-family.us

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



cygwin 1.5.12 & 1.5.13 break utime() on Windows 98

2005-04-02 Thread Josef Drexler
Hi,
[Note, when replying personally to me instead of the list, *don't* 
remove the nospam part in my addy, it's valid as-is.]

I just upgraded to cygwin 1.5.13, and since I did so, the utime() system 
call stopped working on my Windows 98 system.  It returns a "permission 
denied" error when it should succeed instead.  Prior to 1.5.12 it was 
working fine.  It also still works fine using the -mno-cygwin option to 
gcc to bypass cygwin.

The only related questions to this I've found using Google or searching 
the mailing list archives relate to NT permissions, which don't apply on 
Windows 98.  As a result, setting nontea or nontsec in CYGWIN makes no 
difference.  The drive in question in a FAT32 partition mounted as 
/cygdrive/d, but the problem occurs for the / partition as well as SMB 
mounted drives as well.

The following test file reproduces the bug (test.c)
---8<---
#include 
#include 
#include 
int main() {
  struct utimbuf x;
  x.actime = time(NULL) + 600;
  x.modtime= time(NULL) + 1200;
  int ret = utime("foo", &x);
  printf("ret = %d, foo: %s\n", ret, strerror(errno));
  return 0;
}
---8<---
Using 1.5.12 or 1.5.13:
BASH-2.05b$ gcc -o test test.c
BASH-2.05b$ ls -l foo
ls: foo: No such file or directory
BASH-2.05b$ ./test
ret = -1, foo: No such file or directory
BASH-2.05b$ echo > foo
BASH-2.05b$ ./test
ret = -1, foo: Permission denied
BASH-2.05b$ gcc -o test test.c -mno-cygwin
BASH-2.05b$ ./test
ret = 0, foo: No error
BASH-2.05b$
The first error is expected and correct since `foo' doesn't exist at 
first.  The second error is new in 1.5.12 and is wrong.  I do have 
permission to do anything to `foo', as evidenced by the fact that I 
could create and write to it using `echo'.

The same sequence using 1.5.11:
BASH-2.05b$ gcc -o test test.c
BASH-2.05b$ ls -l foo
ls: foo: No such file or directory
BASH-2.05b$ ./test
ret = -1, foo: No such file or directory
BASH-2.05b$ echo > foo
BASH-2.05b$ ./test
ret = 0, foo: No error
BASH-2.05b$ gcc -o test test.c -mno-cygwin
BASH-2.05b$ ./test
ret = 0, foo: No error
BASH-2.05b$
Again, the first error is expected and correct.  Note how the second 
command returns "No error" as it should, but doesn't, in 1.5.12&13.

In both cases, -mno-cygwin gives the expected behaviour too, so I can 
only conclude that this must be a bug in cygwin itself.

For reference, the output of cygcheck -s -v -r -h for both versions can 
be found here:
http://joesbox.cjb.net/~jdrexler/cygcheck-1.5.11.txt
http://joesbox.cjb.net/~jdrexler/cygcheck-1.5.13.txt

Any clues?
--
   Josef Drexler |   http://jdrexler.com/home/
-+
 Please help Conserve Gravity|  Email address is *valid*.
 Use tape&glue, no paperweights  |  Don't remove the "nospam" part.
--
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: cygwin 1.5.12 & 1.5.13 break utime() on Windows 98 [Solved in snapshot]

2005-04-02 Thread Josef Drexler
I wrote:
I just upgraded to cygwin 1.5.13, and since I did so, the utime() system 
call stopped working on my Windows 98 system.  It returns a "permission 
denied" error when it should succeed instead. 
[...]
Hmm, never mind.  After browsing the mailing list archive, I noticed a
similar problem had been reported for utimes() (which I didn't search
for...), and I've confirmed that the problem disappeared when I
installed the latest snapshot.
Sorry for the noise.
--
   Josef Drexler |   http://jdrexler.com/home/
-+
 Please help Conserve Gravity|  Email address is *valid*.
 Play Chess, not Basketball. |  Don't remove the "nospam" part.
--
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/


cygwin-1.5.14 crashes with memory fault?

2005-04-02 Thread Lester Ingber
I just used setup to update the base to cygwin-1.5.14 on two Thinkpads
running AP Pro.  When I tried to bring up Cygwin, both windows crashed
with a memory fault.  I could not get in to get any other info.

Earlier today setup updated a lot of TeX tools, and Cygwin came up fine.
This latest setup run only updated the base.  I have all files updated
from setup, except the gcc test source.

Lester



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



[ANNOUNCEMENT] Updated: cygwin-1.5.14-1

2005-04-02 Thread Christopher Faylor
I've made a new version of the Cygwin DLL and associated utilities
available for download.  As usual, a list of what has changed is below.

To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

If you have questions or comments, please send them to the Cygwin
mailing list at: cygwin@cygwin.com .

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

Christopher Faylor
TimeSys, Inc.

Changes since 1.5.13-1:

- corinna: Fix utimes() on non-NTFS.

- cgf: Restore signals after a system() call.

- cgf: Maintain floating point precision over calls to winsock.

- cgf: Do more thread cleanup when a thread exits.

- corinna: Export utmpxname.

- cgf: Fix some clipboard problems when the clipboard contains non-text.

- cgf: Fix some problems with special names in managed mode.

- ptsekov: Fix inability to set /cygdrive in user-specific mode.

- corinna: Implement mmap(MAP_AUTOGROW).

- cgf: Right shift exit code by eight when process is not started in a cygwin
  environment.

- cgf: Detect bad symlinks on network shares.

- cgf: Reduce size of dll slightly by avoiding needless duplication brought 
about
  by auto-loaded functions.

- corinna: Don't reference floppies when iterating over the mount table.

- cgf: Fix problem where "." and ".." would show up more than once in a 
directory
  listing after a seekdir().

- corinna: Rework credential passing in unix domain sockets to make things 
faster
  and less racy.

- cgf: Take a preliminary stab at getting the DLL to build with gcc 4.x.  Not
  there yet, unfortunately.

- cgf: Implement LD_PRELOAD handling similar to glibc.

- cgf: Implement CW_HOOK functionality to allow cygwin functions to be 
overridden.

- cgf: Export lsearch and lfind.

- pierre.humblet: Implement timer_gettime.  Rework getitimer, setitimer,
  ualarm, alarm to avoid the need for an "invisible" window.

- cgf: Fix crash when "cygpath --help" was specified.

- cgf: Make "kill -NNN", where NNN is a signal name, operational again.

- Brian Dessent: When searching for the cygwin DLL in cygcheck, avoid reporting
  on the current directory.

- cgf: Fix problem with setting PATH when executing a cygexec binary.

- ebb: Fix incorrect setting of PATH_MAX.  Implement NAME_MAX.

- corinna: Re-add /proc/exename.

- ebb: Add better handling for "path too long" with 'chdir'.

- pechtcha: Fix false case-clash errors with check_case:strict
  for filenames with trailing dots/spaces.

- corinna: Don't try to sync floppies on A: and B:.

- corinna: Resolve IPC/Socket memory conflict in child after fork.

- corinna: Fix sign bug in newlib's strtod when exponent is invalid
  (fixes problem with zero exponent in scanf).


--
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: [ANNOUNCEMENT] Updated: cygwin-1.5.14-1

2005-04-02 Thread beau
1.) I've still got setup.exe from when I downloaded and installed last
week; do I need to get setup.exe again, or can I just run the one I've
got;

2.) Are these changes recommended for the non-power user (say, for
instance, me?)  Or is this more for the hard-core, up-to-the-minute
power users?

Thanks bunches,
beau

--
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: [ANNOUNCEMENT] Updated: cygwin-1.5.14-1

2005-04-02 Thread Brian Dessent
beau wrote:

> 1.) I've still got setup.exe from when I downloaded and installed last
> week; do I need to get setup.exe again, or can I just run the one I've
> got;

setup.exe doesn't change that often; you can use the one you have.

> 2.) Are these changes recommended for the non-power user (say, for
> instance, me?)  Or is this more for the hard-core, up-to-the-minute
> power users?

I think the general advice is to always use the most current released
version of the DLL, so yes it's probably a good idea to upgrade to
1.5.14.  If you experience a problem you can always go back to .13 --
but be sure to write to the list with a detailed bug report if you do
find something that breaks in the current version that worked in
previous ones.  Otherwise it will not be fixed.

Brian

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



Adding Latex packages in Cygwin

2005-04-02 Thread Swati
Hi

I am using Cygwin distribution of Latex.  I added some
packages (style files *.sty) to
usr/share/texmf/tex/latex/misc and then tried to use
them using /usepackage{ } in a latex file, but on
compilation, this throws an error and Cygwin latex
compiler cannot find the additional packages.

Am I missing something here?  How do I make the latex
compiler find the packages?

Thanks
Swati


Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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