R: Serial Port (FTDI driver) for Cygwin?

2010-11-20 Thread Marco Atzeri


--- Dom 21/11/10, C Liu  ha scritto:

> I have an USB-serial device connected
> to a Windows XP PC that shows up
> as COM7 under Windows and works fine. But with the same
> hardware
> combination I looked in Cygwin under /dev/ and did not see
> a COM7
> item. Am I missing a driver? Please help! Thank you!
> 
> --

> Documentation:         http://cygwin.com/docs.html

what about reading the documentation ?

http://cygwin.com/cygwin-ug-net/using-specialnames.html

Marco






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



Serial Port (FTDI driver) for Cygwin?

2010-11-20 Thread C Liu
I have an USB-serial device connected to a Windows XP PC that shows up
as COM7 under Windows and works fine. But with the same hardware
combination I looked in Cygwin under /dev/ and did not see a COM7
item. Am I missing a driver? Please help! Thank you!

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



1.7.8: files exist but can not be read

2010-11-20 Thread A.R. Burgers

 LS,

on 1.7.8 files the contents of a file on a netapp share can not be read by all 
programs.
The attached files 176.txt and 178.txt are the outputs of script file.sh on 
1.7.6
and on the 20101118 snapshot.

On both 176.txt and 178.txt a file can be created, and its contents listed with
the cat command. However on 176.txt the file command correctly reports
"ASCII text", on 178.txt it reports "empty".

I came across this with C-header files stored on this share. The preprocessor
finds the header files, but won't read the contents. It will for instance report
missing prototypes. The file command seems to reproduce this issue.

Teun
#! /bin/sh

uname -a
zz=/shares/g_zon_software/cygwin17
ls -l $zz/bug.txt
rm -f $zz/bug.txt
cat << HERE > $zz/bug.txt
line 1
HERE
ls -l $zz/bug.txt
cat $zz/bug.txt
file $zz/bug.txt
cat /etc/fstab | grep g_zon_software
mount -m | grep 'share.*g_zon_software'
CYGWIN_NT-5.1 P4114 1.7.8s(0.233/5/3) 20101118 15:52:06 i686 Cygwin
-rw-r--r-- 1 burgers Domain Users 0 2010-11-19 13:35 
/shares/g_zon_software/cygwin17/bug.txt
-rw-r--r-- 1 burgers Domain Users 0 2010-11-19 13:36 
/shares/g_zon_software/cygwin17/bug.txt
line 1
/shares/g_zon_software/cygwin17/bug.txt: empty
//nas01/g_zon_software$ /shares/g_zon_software some_fs noacl,binary,notexec 0 0
//nas01/g_zon_software$ /exports/g_zon_software some_fs noacl,binary,notexec 0 0
//nas01/g_zon_software$ /shares/g_zon_software netapp binary,notexec,noacl 0 0
CYGWIN_NT-5.1 P4114 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin
-rw-r--r-- 1 burgers Domain Users 7 2010-11-19 13:33 
/shares/g_zon_software/cygwin17/bug.txt
-rw-r--r-- 1 burgers Domain Users 7 2010-11-19 13:34 
/shares/g_zon_software/cygwin17/bug.txt
line 1
/shares/g_zon_software/cygwin17/bug.txt: ASCII text
//nas01/g_zon_software$ /shares/g_zon_software some_fs noacl,binary,notexec 0 0
//nas01/g_zon_software$ /exports/g_zon_software some_fs noacl,binary,notexec 0 0
//nas01/g_zon_software$ /shares/g_zon_software netapp binary,notexec,noacl 0 0

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

Re: sshd problem with recent snapshots

2010-11-20 Thread Ken Brown
On 11/16/2010 8:58 AM, Corinna Vinschen wrote:
> On Nov 15 15:25, Ken Brown wrote:
>> On 11/15/2010 11:53 AM, Corinna Vinschen wrote:
>>> On Nov 15 11:40, Christopher Faylor wrote:
 On Mon, Nov 15, 2010 at 11:18:57AM -0500, Ken Brown wrote:
> On 11/15/2010 11:09 AM, Corinna Vinschen wrote:
>> On Nov 13 10:00, Ken Brown wrote:
>>> On 11/5/2010 8:03 AM, Ken Brown wrote:
 $ ssh kbrown-ad...@localhost
 kbrown-ad...@localhost's password:
 Connection to localhost closed by remote host.
 Connection to localhost closed.

 The same thing happens if I try to ssh in from a different machine on
 the network.
>>> [...]
>>> sshd: PID 2264: Accepted password for kbrown-admin from ::1 port 1025 
>>> ssh2.
>>> sshd: PID 2264: fatal: chmod(/dev/tty1, 0622) failed: Permission denied.
>>
>> Hmm, that's weird.  I'm using the latest Cygwin from CVS, and I cannot
>> reproduce this.  I tried to login from a remote machine with pubkey and
>> password authentication using an admin account as well as a normal user
>> account.  Works fine for me in all these cases.
>> [...]
>>   What OS are you using?
>
> XP SP3.

 FWIW, I couldn't duplicate this on XP SP3 but my ssh installation was a
 little nonstandard.  [...]
>>>
>>> What I don't grok is that this should start with the 20100917 snapshot,
>>> but works with 20100912.  There's nothing in the 09-17 ChangeLog which
>>> would be related.
>>
>> It doesn't make sense to me either, but I've just rechecked that the
>> problem occurs with the 09-17 snapshot (as well as the current one),
>> but not with the 09-12 snapshot.  I'm attaching my cygcheck output
>> (with the 09-17 snapshot installed) in case there's something there
>> that could be relevant.
> 
> I tried with the 09-17 snapshot as well now, on XP SP3 with all the latest
> patches and on W7.  To no avail.  I still can login fine.  It does not
> matter if I try from a local login or from a remote machine, and it does
> not matter if I try to logon from a non-privileged account to a privileged
> account or vice versa.
> 
>> Cygwin Configuration Diagnostics
>> Current System Time: Mon Nov 15 15:08:52 2010
> 
> I don't see anything in your cygcheck output which would point to a
> problem.  There's just the fact that you apparently have (or had)
> another Cygwin installed in C:\cygwin:
> 
>> Cygwin installations found in the registry:
>>System: Key: 34ecc2f3970cc4c9 Path: D:\cygwin-1.7
>>System: Key: c5e39b7a9d22bafb Path: C:\cygwin
> 
> Is there a chance that your service entires still point to a cygrunsrv
> under C:\cygwin instead of D:\cygwin-1.7?

No.  The installation in C:\cygwin is newer than the one in D:\cygwin-1.7; it's 
just a small installation that I sometimes use for testing purposes, and it 
doesn't even have cygrunsrv installed.  In any case, that wouldn't explain why 
reverting to the 09-12 snapshot fixes the problem.  Are you sure there's 
nothing in the 09-17 Changelog that could account for this?  There do seem to 
be some network-related changes, though I don't claim to understand them:

* path.cc (symlink_info::check_reparse_point): Add comment.
(symlink_info::check): Fetch FileNetworkOpenInformation rather than
FileBasicInformation throughout, except on NFS.  Explain why.  Store
FILE_NETWORK_OPEN_INFORMATION in conv_hdl.  Remove
FILE_ATTRIBUTE_DIRECTORY attribute in conv_hdl for reparse point
symlinks.
* path.h (class path_conv_handle): Add FILE_NETWORK_OPEN_INFORMATION
member _fnoi.
(path_conv_handle::fnoi): New accessor method for _fnoi.
(path_conv::fnoi): New accessor method for cubv_hdl._fnoi.

Ken


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



Re: ioctl() on socket fd's take 3 seconds on 1.7.7

2010-11-20 Thread Jason Curl

On 15/11/2010 17:22, Corinna Vinschen wrote:

On Nov  9 09:20, Jason Curl wrote:

   166   65418 [main] ipcheck 5580 ioctl: fd 3, cmd 80087364
--- Process 5580, exception C005 at 610C8C86


Crash in Cygwin, but the address doesn't help much, unfortunately.


Interestingly enough, the program works. That is, it finds all
interfaces and returns correct values (except interface names are
UUIDs instead of something more friendly like "eth0" that existed in
1.5.26).

>>

It will be a little later when I'm able to generate a working test case.


T'would be nice.  Please make it short and simple and, if possible, in
plain C.


I've generated a relatively simple test case that I can compile using 
cygwin1-20101102.dll.


compile using
 $ gcc --version
 gcc (GCC) 4.3.4 20090804 (release) 1
 $ gcc ifconf.c
 $ ./a.exe

The output looks something like:

DEBUG 1290273446.193553 main 50: SIOCGIFCONF start
DEBUG 1290273449.318553 main 52: SIOCGIFCONF end
Interface: {4ED54D4E-1024-4BDF-A926-67D2895D2DC4}
DEBUG 1290273449.320553 main 59: SIOCGIFADDR start
DEBUG 1290273452.442553 main 61: SIOCGIFADDR end
  Family: AF_INET
  Address: a9fe0202
DEBUG 1290273452.444553 main 72: SIOCGIFNETMASK start
DEBUG 1290273455.567553 main 74: SIOCGIFNETMASK end
  Mask: ff00
DEBUG 1290273455.571553 main 77: SIOCGIFBRDADDR start
DEBUG 1290273458.694553 main 79: SIOCGIFBRDADDR end
  Broadcast: a9fe02ff
DEBUG 1290273458.695553 main 82: SIOCGIFDSTADDR start
DEBUG 1290273461.817553 main 84: SIOCGIFDSTADDR end
  Dest: a9fe0202
Interface: {A045DC0F-A979-49B3-954C-D0678365FF26}
DEBUG 1290273461.819553 main 59: SIOCGIFADDR start
DEBUG 1290273464.943553 main 61: SIOCGIFADDR end
  Family: AF_INET
  Address: a9feb7d4
DEBUG 1290273464.945553 main 72: SIOCGIFNETMASK start
DEBUG 1290273468.067553 main 74: SIOCGIFNETMASK end
  Mask: 
DEBUG 1290273468.068553 main 77: SIOCGIFBRDADDR start
DEBUG 1290273471.190553 main 79: SIOCGIFBRDADDR end
  Broadcast: a9fe
DEBUG 1290273471.191553 main 82: SIOCGIFDSTADDR start
DEBUG 1290273474.313553 main 84: SIOCGIFDSTADDR end
  Dest: a9feb7d4
Interface: {4EB69B61-C791-434A-8FCE-8F4859EA8DFC}
DEBUG 1290273474.315553 main 59: SIOCGIFADDR start
DEBUG 1290273477.437553 main 61: SIOCGIFADDR end
  Family: AF_INET
  Address: a9fe0202
DEBUG 1290273477.439553 main 72: SIOCGIFNETMASK start
DEBUG 1290273480.561553 main 74: SIOCGIFNETMASK end
  Mask: ff00
DEBUG 1290273480.562553 main 77: SIOCGIFBRDADDR start
DEBUG 1290273483.685553 main 79: SIOCGIFBRDADDR end
  Broadcast: a9fe02ff
DEBUG 1290273483.686553 main 82: SIOCGIFDSTADDR start
DEBUG 1290273486.808553 main 84: SIOCGIFDSTADDR end
  Dest: a9fe0202
Interface: {85C2CEC7-A2B9-47D4-9A50-D63E9F9ED007}
DEBUG 1290273486.810553 main 59: SIOCGIFADDR start
DEBUG 1290273489.931553 main 61: SIOCGIFADDR end
  Family: AF_INET
  Address: 
DEBUG 1290273489.934553 main 72: SIOCGIFNETMASK start
DEBUG 1290273493.03 main 74: SIOCGIFNETMASK end
  Mask: ff00
DEBUG 1290273493.056553 main 77: SIOCGIFBRDADDR start
DEBUG 1290273496.178553 main 79: SIOCGIFBRDADDR end
  Broadcast: 00ff
DEBUG 1290273496.179553 main 82: SIOCGIFDSTADDR start
DEBUG 1290273499.303553 main 84: SIOCGIFDSTADDR end
  Dest: 
Interface: {56D2E68A-4173-4117-A719-65123B973C65}
DEBUG 1290273499.305553 main 59: SIOCGIFADDR start
DEBUG 1290273502.427553 main 61: SIOCGIFADDR end
  Family: AF_INET
  Address: c0a80119
DEBUG 1290273502.429553 main 72: SIOCGIFNETMASK start
DEBUG 1290273505.550553 main 74: SIOCGIFNETMASK end
  Mask: ff00
DEBUG 1290273505.551553 main 77: SIOCGIFBRDADDR start
DEBUG 1290273508.674553 main 79: SIOCGIFBRDADDR end
  Broadcast: c0a801ff
DEBUG 1290273508.675553 main 82: SIOCGIFDSTADDR start
DEBUG 1290273511.798553 main 84: SIOCGIFDSTADDR end
  Dest: c0a80119
Interface: {7E5203E8-97DE-4822-9A2E-380BD258D97E}
DEBUG 1290273511.800553 main 59: SIOCGIFADDR start
DEBUG 1290273514.921553 main 61: SIOCGIFADDR end
  Family: AF_INET
  Address: a9fed3c1
DEBUG 1290273514.923553 main 72: SIOCGIFNETMASK start
DEBUG 1290273518.045553 main 74: SIOCGIFNETMASK end
  Mask: 
DEBUG 1290273518.046553 main 77: SIOCGIFBRDADDR start
DEBUG 1290273521.168553 main 79: SIOCGIFBRDADDR end
  Broadcast: a9fe
DEBUG 1290273521.170553 main 82: SIOCGIFDSTADDR start
DEBUG 1290273524.292553 main 84: SIOCGIFDSTADDR end
  Dest: a9fed3c1
Interface: {8424F604-4FAE-4541-9D8E-7B0A583A0956}
DEBUG 1290273524.294553 main 59: SIOCGIFADDR start
DEBUG 1290273527.416553 main 61: SIOCGIFADDR end
  Family: AF_INET
  Address: c0a8df01
DEBUG 1290273527.418553 main 72: SIOCGIFNETMASK start
DEBUG 1290273530.540553 main 74: SIOCGIFNETMASK end
  Mask: ff00
DEBUG 1290273530.541553 main 77: SIOCGIFBRDADDR start
DEBUG 1290273533.665553 main 79: SIOCGIFBRDADDR end
  Broadcast: c0a8dfff
DEBUG 1290273533.666553 main 82: SIOCGIFDSTADDR start
DEBUG 1290273536.788553 main 84: SIOCGIFDSTADDR end
  Dest: c0a8df01
Interface: {846EE342-7039-11DE-9D20-806E6F6E6963}
DEBUG 1290273536.790553 main 59: SIOCGIFADDR start
DEBUG

Re: sshd problem with recent snapshots

2010-11-20 Thread Corinna Vinschen
On Nov 15 15:25, Ken Brown wrote:
> On 11/15/2010 11:53 AM, Corinna Vinschen wrote:
> >On Nov 15 11:40, Christopher Faylor wrote:
> >>On Mon, Nov 15, 2010 at 11:18:57AM -0500, Ken Brown wrote:
> >>>On 11/15/2010 11:09 AM, Corinna Vinschen wrote:
> On Nov 13 10:00, Ken Brown wrote:
> >On 11/5/2010 8:03 AM, Ken Brown wrote:
> >>$ ssh kbrown-ad...@localhost
> >>kbrown-ad...@localhost's password:
> >>Connection to localhost closed by remote host.
> >>Connection to localhost closed.
> >>
> >>The same thing happens if I try to ssh in from a different machine on
> >>the network.
> >[...]
> >sshd: PID 2264: Accepted password for kbrown-admin from ::1 port 1025 
> >ssh2.
> >sshd: PID 2264: fatal: chmod(/dev/tty1, 0622) failed: Permission denied.
> 
> Hmm, that's weird.  I'm using the latest Cygwin from CVS, and I cannot
> reproduce this.  I tried to login from a remote machine with pubkey and
> password authentication using an admin account as well as a normal user
> account.  Works fine for me in all these cases.
> [...]
>   What OS are you using?
> >>>
> >>>XP SP3.
> >>
> >>FWIW, I couldn't duplicate this on XP SP3 but my ssh installation was a
> >>little nonstandard.  [...]
> >
> >What I don't grok is that this should start with the 20100917 snapshot,
> >but works with 20100912.  There's nothing in the 09-17 ChangeLog which
> >would be related.
> 
> It doesn't make sense to me either, but I've just rechecked that the
> problem occurs with the 09-17 snapshot (as well as the current one),
> but not with the 09-12 snapshot.  I'm attaching my cygcheck output
> (with the 09-17 snapshot installed) in case there's something there
> that could be relevant.

I tried with the 09-17 snapshot as well now, on XP SP3 with all the latest
patches and on W7.  To no avail.  I still can login fine.  It does not
matter if I try from a local login or from a remote machine, and it does
not matter if I try to logon from a non-privileged account to a privileged
account or vice versa.

> Cygwin Configuration Diagnostics
> Current System Time: Mon Nov 15 15:08:52 2010

I don't see anything in your cygcheck output which would point to a
problem.  There's just the fact that you apparently have (or had)
another Cygwin installed in C:\cygwin:

> Cygwin installations found in the registry:
>   System: Key: 34ecc2f3970cc4c9 Path: D:\cygwin-1.7
>   System: Key: c5e39b7a9d22bafb Path: C:\cygwin

Is there a chance that your service entires still point to a cygrunsrv
under C:\cygwin instead of D:\cygwin-1.7?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



Re: setup.exe thinks it has no internet

2010-11-20 Thread covici
 * From: Greg Chicares 
 * To: cygwin at cygwin dot com
 * Date: Sat, 20 Nov 2010 14:23:02 +
 * Subject: Re: setup.exe thinks it has no internet
 * References: <01cb8898$8735d610$95a182...@covici.com>
 
__

On 2010-11-20 09:51Z, John Covici wrote:
> Hi.  I am trying to install Cygwin on a vmware fusion virtual machine
> and
> unlike any other program on the vm the setup.exe thinks it has no
> internet,
> so it won't download the mirrors list nor if I type in one by hand
> will it
> get any information.

http://www.cygwin.com/cygwin-ug-net/setup-net.html#setup-connection

Since direct connection doesn't work, have you tried the other methods?
 I tried the ie5 settings -- I actually have ie8 -- but no different
 results.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com

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



Re: setup.exe thinks it has no internet

2010-11-20 Thread Greg Chicares
On 2010-11-20 09:51Z, John Covici wrote:
> Hi.  I am trying to install Cygwin on a vmware fusion virtual machine and
> unlike any other program on the vm the setup.exe thinks it has no internet,
> so it won't download the mirrors list nor if I type in one by hand will it
> get any information.

http://www.cygwin.com/cygwin-ug-net/setup-net.html#setup-connection

Since direct connection doesn't work, have you tried the other methods?

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



Cygwin X and F10

2010-11-20 Thread Jeenu V
I'm using Cygwin X server on a Windows XP machine to access a remote
debugger running on Lucid. Everything is fine except that I can't pass
Shift-F10 for single stepping; I can pass other combination like
Shift-F11, F9 etc. though.

I experimented with gnome-terminal, where pressing Shift-F10 on the
host machine pops up the context menu. Is there anything that I should
be doing to configure the X server?

-- 
Jeenu

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



setup.exe thinks it has no internet

2010-11-20 Thread John Covici
Hi.  I am trying to install Cygwin on a vmware fusion virtual machine and
unlike any other program on the vm the setup.exe thinks it has no internet,
so it won't download the mirrors list nor if I type in one by hand will it
get any information.

This happens even if all firewalls are turned off.

Here is the setup.log.full from the last run.

2010/11/20 03:51:21 Starting cygwin install, version 2.721
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/setup.rc) failed 2
No such file or directory
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/last-cache) failed 2
No such file or directory
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/last-action) failed
2 No such file or directory
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/net-method) failed 2
No such file or directory
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/net-proxy-host)
failed 2 No such file or directory
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/net-proxy-port)
failed 2 No such file or directory
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/last-mirror) failed
2 No such file or directory
2010/11/20 03:51:21 io_stream_cygfile: fopen(/etc/setup/extrakeys) failed 2
No such file or directory
2010/11/20 03:51:21 io_stream_cygfile:
fopen(/etc/setup/chooser_window_settings) failed 2 No such file or directory
2010/11/20 03:51:21 Current Directory: \\vmware-host\Shared Folders\My
Documents
2010/11/20 03:51:21 User has NO backup/restore rights
2010/11/20 03:51:21 Changing gid to Administrators
2010/11/20 03:51:21 Could not open Service control manager
2010/11/20 03:51:41 source: network install
2010/11/20 03:51:56 root: C:\cygwin binary system
2010/11/20 03:52:24 Selected local directory: c:\cygwin-packages
2010/11/20 03:52:32 net: Direct
2010/11/20 03:52:32 io_stream_cygfile: fopen(/etc/setup/mirrors-lst) failed
2 No such file or directory
Cached mirror list unavailable
get_url_to_membuf http://cygwin.com/mirrors.lst
getUrlToStream http://cygwin.com/mirrors.lst
getUrlToStream failed!
get_url_to_membuf failed!
Defaulting to empty mirror list
2010/11/20 03:52:53 net: Direct
2010/11/20 03:53:11 io_stream_cygfile: fopen(/etc/setup/setup.rc) failed 2
No such file or directory
2010/11/20 03:53:11 Ending cygwin install

Any assistance would be appreciated.

I am not subscribed to this list as of now.

Thanks.

Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



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



Re: Win 7 sshd help

2010-11-20 Thread Corinna Vinschen
On Nov 19 21:11, Bryan wrote:
> On Fri, Nov 19, 2010 at 15:17, Kirby Bakken wrote:
> > Help.
> >
> > I recently installed cygwin w/sshd packages on my Win7 pro PC.  I've gotten
> > ssh to work both with localhost, and with the LAN IP address.
> >
> > However, trying to ssh from 'outside' my router doesn't work.  I CAN ssh to
> > my linux box.  Then I change the port-forward in the router to my Win7 box,
> > and I got 'permission denied' after the password prompt.  After much
> > fiddling, the /etc/host.allow/deny files have somewhere along the line
> > disappeared.  Now, I get a timeout...
> >
> > Questions:
> >
> > 1) are the host.allow and deny files required?
> 
> hosts.allow and hosts.deny only work if you compiled using tcp_wrappers

Well, openssh is built against tcp_wrappers so the hosts.allow and
hosts.deny files are evaluated if they exist.  However, if they
don't exist, it doesn't matter.

> Disable your windows 7 firewall, or make it so that it passes port 22.
>  If you are remote, make sure your ISP isn't blocking port 22 inbound
> to your router.  I had an ISP that blocked a lot of ports below 1024.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

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



Re: Problem with date after date is modified in scripts

2010-11-20 Thread Raman Ravi
Raman Ravi  yahoo.com> writes:

> 
> Corinna Vinschen  cygwin.com> writes:
> 
> > 
> 
> > > WOuld appreciate some help in understanding and more importantly resolving
> > > this issue.
> > 
> > This is a shortcoming in Cygwin itself.  You can only workaround it
> > by setting the date from a Cygwin process for now.  This will only
> > affect Cygwin processes running in the same user session, though.
> > There's a TODO in the affected code in Cygwin which describes this
> > very problem.  Unfortunately this requires a redesign of the code
> > in question...
> > 
> > Corinna
> > 
> 
> Hi Corinna,
> 
> Thanks for the reply (and information). I guess I have to retrieve the time
> using a "windows call" from my TMSERVER and then set the date/time back using
> date command in shutdown.sh
> 
> Thanks.
> Raman
> 
> 

Have a goofy solution but it works (if anybody else is interested)

1. Create a script to get the time string

getTimeStr

#!/bin/sh
net time "$TMSERVER"

2nd shell script "syncTime" contains

#!/bin/sh
TMSTR=`getTimeStr | grep Current | awk '{print $6,$7,$8}'`

date +"%m/%d/%Y %H:%M %p" -s "$TMSTR" >> $REG_DEV_NULL




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