How do I update SSHD daemon password?

2011-03-10 Thread David Means
I changed the password on the account used by the cron daemon and the
ssh daemon.  Both services (cron and ssh) use the same user account
named, 'sshd'.

However, the ssh daemon will not take the username/password change.
I've tried un-installing all SSH files (via the cygwin setup.exe
utility) and re-installing the files.  I then tried de-installing the
files and upgrading to the latest version.  That didn't help either.

If I knew where the ssh daemon username/password information was
cached, I think I could fix it, or at least delete it and start over
again.

And ideas would be appreciated!

Thank you.


$ ssh-host-config --yes --user sshd --pwd XXX
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read
/usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Info: Updating /etc/sshd_config file

*** Info: Host configuration finished. Have fun!

$ net start sshd
System error 1069 has occurred.

The service did not start due to a logon failure.


$ net start cron
The Cron daemon service is starting.
The Cron daemon service was started successfully.


$ cygcheck --version
cygcheck version 1.126
System Checker for Cygwin
Copyright (C) 1998 - 2008 Red Hat, Inc.
Compiled on Mar  1 2011

$ uname -a
CYGWIN_NT-6.1-WOW64 myhost 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin


---
David Means

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



/bin/rebaseall fails

2011-02-08 Thread David Means
When running rebaseall, I receive a #13 error from FixImage:

$ /bin/rebaseall
/usr/lib/cygicudata.dll: skipped because nonexistent
/usr/lib/cygicui18n.dll: skipped because nonexistent
/usr/lib/cygicuio.dll: skipped because nonexistent
/usr/lib/cygicule.dll: skipped because nonexistent
/usr/lib/cygiculx.dll: skipped because nonexistent
/usr/lib/cygicutu.dll: skipped because nonexistent
/usr/lib/cygicuuc.dll: skipped because nonexistent
FixImage (/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll) failed
 with last error = 13
$


This leaves Cygwin in an unusable state.

The OS is Windows 7 Ultimate.

Do you have any suggestions or recommendations?

---
David Means

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



Install failure on Windows 7

2010-09-23 Thread David Means
On Windows 7 Ultimate, 64bit.

For al post-install actions, there are a log entries such as follows:

2010/09/23 11:21:58 running: C:\cygwin175\bin\bash.exe --norc
--noprofile /etc/postinstall/000-cygwin-post-install.sh
2010/09/23 11:22:06 abnormal exit: exit code=-1073741515
2010/09/23 11:22:06 running: C:\cygwin175\bin\bash.exe --norc
--noprofile /etc/postinstall/passwd-grp.sh
2010/09/23 11:22:07 abnormal exit: exit code=-1073741515
2010/09/23 11:22:07 running: C:\cygwin175\bin\bash.exe --norc
--noprofile /etc/postinstall/coreutils.sh
2010/09/23 11:22:07 abnormal exit: exit code=-1073741515
2010/09/23 11:22:07 running: C:\cygwin175\bin\bash.exe --norc
--noprofile /etc/postinstall/terminfo.sh
2010/09/23 11:22:08 abnormal exit: exit code=-1073741515
2010/09/23 11:22:08 running: C:\cygwin175\bin\bash.exe --norc
--noprofile /etc/postinstall/bash.sh

And a dialog is posted to the UI, reporting a failure:

"The program can't start because cyggcc_s-1.dll is missing from your
computer.  Try reinstalling the program to fix this problem."

I tried re-install, but to no avail.

Suggestions?


---
David Means

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



User Account Control Prompt when starting RXVT.EXE

2010-03-30 Thread David Means
When I start rxvt.exe, the Windows 7 'User Account Control' dialog appears
asking for confirmation to allow the rxvt.exe to make changes to my system.
Is there something I can do (file permissions, possibly) to prevent this
from happening, other than changing the system-wide default for the User
Account Control prompt/dialog?  

This behavior doesn't occur when using the Cygwin 1.5 rxvt.exe application.

Here are the command line arguments I use to start rxvt (in 1.5 && 1.7.1 of
cygwin)

C:\cygwin171\bin\rxvt.exe -sl  -geometry 90x45 +vb -fg black -bg ivory
-fn "Courier" -e /usr/bin/bash --login


--
David Means



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



man + rxvt - cannot display special characters

2010-02-10 Thread David Means
When I run 'man ', I get unprintable characters (see example below).

Cygwin 1.7.1, using RXVT (not via X11).  Exporting TERM to various
values (vt100, vt102, vt200, ansi, xterm) doesn't have an effect.

Got any ideas?


FIND(1)
   FIND(1)
NAME
   find − search for files in a directory hierarchy
SYNOPSIS
   find [−H] [−L] [−P] [−D debugopts] [−Olevel]
[path...] [expression]

thanks,

---
David Means

--
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: what's the problem of my cygwin installation?

2010-02-05 Thread David Means
I've had a similar problem, on Windows 7 Ultimate 64Bit.

If I try to install everything (as I have routinely and always done in the 
past), then the install fails.

However, when I take the defaults, it succeeds.  Taking the defaults is for me, 
annoying.  I find myself going back to the setup for many weeks installing 
things that were initially missed.


-Original Message-
From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of 
Larry Hall (Cygwin)
Sent: Wednesday, February 03, 2010 11:53 PM
To: cygwin@cygwin.com
Subject: Re: what's the problem of my cygwin installation?

On 02/03/2010 11:31 PM, thinktwice wrote:
>
> i use Cygwin1.7.1setup.exe to start an fresh installation, because i have
> downloaded an full package from internet, so i choose local install.  setup
> process finished successfully.
>
> but when i try to open cgywin, it warns me "bash: /usr/bin/sed: No such file
> or directory, bash: /bin/grep: No such file or directory bash: sed: command
> not found
>
> how to fix the problem?

Try these:

1. Rerun 'setup.exe' again.  Cycle through all the pages taking the defaults.
   This will make sure that the post-install scripts all run to completion 
if they
   didn't last time.  Make sure you use the 'setup.exe' from cygwin.com.  The
   current version is 2.680.

2. Remove any previous versions of Cygwin or stray cygwin1.dlls you may
   have hanging around.

3. Look for .  Remove ant found.

4. Look for and remove or otherwise hide any toolsets providing like-named
   utilities.

5. Look in /var/setup.log* for complaints.  Fix problems reported as possible.

6. If all else fails, read and follow the problem reporting guidelines found
   here .  It's probably worthwhile to
   *attach* your setup.log.full to any such future problem report.

-- 
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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



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



ls -l bug?

2003-03-22 Thread David Means
This bug might be fixed already, if so, sorry for the post.


When, from 'cmd', I do a dir of a 2+Gigabyte file, I see the following:


03/21/2003  08:37a   2,454,716,416 heap.log


However, when I peform an 'ls -l' from cygwin, I see this:

rw-r--r--1 codered  None 18446744071869300736 Mar 21 08:37
heap.log

Although I do remember in the late 1980's that the Wal-Mart general
office in Bentonville, AR, had somewhere over 1 terabyte of disk
storage, I don't think we've yet approached anything beyond that size
for personal computers... :-)

Below is the system info.

Thanks,

David





Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Mar 21 09:10:42 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2

Path:   c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
C:\cygwin\bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\codered'
PWD = `/home/codered'
USER = `codered'

Use `-r' to scan registry

a:  fd   N/AN/A
c:  hd  NTFS8707Mb  50% CP CS UN PA FC Local Disk
d:  cd   N/AN/A

C:\cygwin  /  userbinmode
C:\cygwin/bin  /usr/bin   userbinmode
C:\cygwin/lib  /usr/lib   userbinmode
.  /cygdrive  userbinmode,noumount
c: /c system  binmode

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\sh.exe

  621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   20k 2002/01/13 C:\cygwin\bin\cyghistory5.dll
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  121k 2002/01/13 C:\cygwin\bin\cygreadline5.dll
  156k 2002/01/16 C:\cygwin\bin\cygssl.dll
   50k 2002/03/12 C:\cygwin\bin\cygz.dll
  751k 2002/02/25 C:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.10
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 51
Shared data: 3
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix: 
Build date: Mon Feb 25 11:14:34 EST 2002
Shared id: cygwin1S3


Cygwin Package Information
Package Version 
_update-info-dir00141-1 
ash 20020131-1  
bash2.05a-3 
cygrunsrv   0.95-1  
cygwin  1.3.10-1
diff1.0-1   
diffutils   2.8-1   
fileutils   4.1-1   
findutils   4.1 
gawk3.0.4-1 
gdbm1.8.0-4 
grep2.5-1   
gzip1.3.2-1 
libintl10.10.40-1   
libncurses5 5.2-1   
libncurses6 5.2-8   
libreadline44.1-2   
libreadline54.2a-1  
login   1.4-3   
ncurses 5.2-8   
openssh 3.1p1-1 
openssl 0.9.6c-3
pcre3.7-1   
readline4.2a-1  
sed 3.02-1  
sh-utils2.0-2   
shutdown1.2-2   
tar 1.13.19-1   
termcap 20020403-1  
terminfo5.2-2   
textutils   2.0.21-1
vim 6.1.300-1   
which   1.5-1   
zlib1.1.4-1     

Use -h to see help about each section

-- 
David Means

Never frobnicate without first grokking.


signature.asc
Description: This is a digitally signed message part


Re: exceed and xfree

2003-03-16 Thread David Means
Grok.  I'll frob it tomorrow at work.

Thanks!!!



On Sat, 2003-03-15 at 01:14, Randall R Schulz wrote:
{ snip }
> 
> David,
> 
> If DISPLAY is set, then rxvt tries to use it and fails if it cannot 
> successfully do so. If you want rxvt to operate in GDI mode, make sure 
> it does not inherit a setting for the DISPLAY variable.
> 
> Grok?
> 
> Randall Schulz 
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 
David Means

There are 10 kinds of people in this world: people who understand binary, and people 
who don't.


signature.asc
Description: This is a digitally signed message part


Re: exceed and xfree

2003-03-14 Thread David Means
On Fri, 2003-03-14 at 17:15, Jehan wrote:
> Ling F. Zhang wrote:
> > well, this is more or less like a windows/dos problem:
> > 
> > I do not like the cygwin dos window, so everytime I
> > run cygwin, I go straight to open an xterm with my own
> > color and size...
> 
> What about rxvt? It does have its own colors/size and it's a native win 
> application, no need of X.
> 
>   Jehan
> 
Really?  I've never been able to get it to do that.  It always tells me
that it can't open the 'display'.

> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation:     http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 
David Means

Never frobnicate without first grokking.


signature.asc
Description: This is a digitally signed message part


Re: why is bash trying to access my DNS?

2003-03-04 Thread David Means
Randall:

There's nothing that a legitimate DNS server can elicit from a client.
Although, in some special cases, clients can be hacked by specially
crafted DNS responses.

However, if a system is infected with a trojan, then obviously said
system has the potential to be used as a zombie for attacking any
server.  In this instance (regarding DNS), ZoneAlarm would do you some
good provided that you never send DNS queries outside of ones network.

But exactly how plausible is that?  What I'm questioning is this: how
helpful is the DNS activity alert on ZoneAlarm?  Unless it's looking for
the myriad of DNS vulnerablities listed at CERT and other similar
resources, then it's a farily usless check, IMHO.  And given that it
appears (from my limited perspective) to be flagging normal DNS traffic,
then I'm of the opinion it's quite useless indeed for the application in
which it's intended to be used, and has in this instance raised concern
where none is actually warrented.

But to answer your original question regarding the data that can be
"sneakily sent via a DSN request", check this out:

http://search.cert.org/query.html?col=certadv&col=vulnotes&ht=0&qp=&qt=DNS+BIND&qs=&qc=&pw=100%25&ws=1&la=en&qm=0&st=1&nh=25&lk=1&rf=2&rq=0&si=1



On Tue, 2003-03-04 at 00:53, Randall R Schulz wrote:
> David,
> 
> At 21:20 2003-03-03, David Means wrote:
> >On Mon, 2003-03-03 at 23:59, Randall R Schulz wrote:
> > > Geoffrey,
> > >
> > > ...
> > >
> > > Oops. I mean what data can sneakily be sent via a DNS request?
> > >
> > > Randall Schulz
> >
> >Actually, plenty.  Historically, Bind has been easily 
> >hacked.  Although it's been a while since a good vulnerability was 
> >found in Bind, that doesn't mean there's not an unknown hole in it 
> >which could be exploited.
> 
> Please be specific. What information can be elicited by the DNS server 
> from the DNS client when the client makes a DNS request?
> 
> I really think there are more important things to worry about, but I'd 
> like to learn how I might be wrong.
> 
> 
> >--
> >David Means
> 
> 
> Randall Schulz 
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 
David Means

Being a programmer is like being married: You talk to your
spouse about lots of things, only to find that something you 
said (and promptly forgot) has come back to bite you in the ass 
months later.  


signature.asc
Description: This is a digitally signed message part


Re: why is bash trying to access my DNS?

2003-03-03 Thread David Means
On Mon, 2003-03-03 at 23:59, Randall R Schulz wrote:
> Geoffrey,
> 
> Exactly what sneaky data can get sent in a DNS request?
> 
> Oops. I mean what data can be sneakily sent via a DNS request.
> 
> Oops. I mean what data can sneakily be sent via a DNS request.
> 
> Randall Schulz

Actually, plenty.  Historically, Bind has been easily hacked.  Although
it's been a while since a good vulnerablity was found in Bind, that
doesn't mean there's not an unknown hole in it which could be exploited.

However, in order to exploit such a hole, the attacking system has to
be, in one way or another, "owned".  Anybody with the presence of mind
to be running ZoneAlarm (or something similar) would certianly know if
there system(s) had been compromised in such a fashion.




> 
{ snip }

-- 
David Means

Real programs don't eat cache.


signature.asc
Description: This is a digitally signed message part


Re: why is bash trying to access my DNS?

2003-03-03 Thread David Means
Proper hostname resolution should look in the hosts file before querying
DNS.  Try putting your hostname/ip address pair in your host file. I
don't recall if windows will look there first, though.  However, if
you're getting your IP address via DHCP, this isn't going to work for
you.

Seconly, why are you worried about outbound DNS?  Can you not configure
ZoneAlarm to trigger only on DNS targeted to your machine?  Certianly
you're not worried you or someone else on your SOHO network will hacking
a DNS server?



On Mon, 2003-03-03 at 22:07, Geoffrey Hausheer wrote:
> One more thing, I forgot to ask...
> 
> On Mon, 03 Mar 2003 18:46:09 -0800, "Geoffrey Hausheer" said:
> > Thank you, this indeed is the issue, as can be seen from the very next
> > line after the wsock call:
> > 5495150 5519336 [main] bash 1940 cygwin_gethostname: name Holly
> 
> I don't suppose there is any way to prevent all of these hostname lookups
> (since they are obviously sommething somewhat recent)?
> For bash I can just tell ZoneAlarm to ignore it, and all is well, but 
> since applications like vim seem to be doing the same thing  (and yes I
> removed \h from my PS1 line, just to be sure), the whole point of
> installing ssh (to get sshd working) has gone out the window since
> anytime I run a program that uses hostname, ZoneAlarm will complain on my
> local desktop, and my remote session will hang (Obviously, I could let
> all outgoing programs access the internet freely, but preventing that is
> half the reason I run ZoneAlarm in the first place)
> 
> Thanks again,
> Geoff
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 
David Means

Being a programmer is like being married: You talk to your
spouse about lots of things, only to find that something you 
said (and promptly forgot) has come back to bite you in the ass 
months later.  


signature.asc
Description: This is a digitally signed message part


Re: why is bash trying to access my DNS?

2003-03-03 Thread David Means
Ah, yes, of'course.  That would definately do it.  Silly me... I didn't
even think of that.



On Mon, 2003-03-03 at 18:02, Pierre A. Humblet wrote:
> Probably because it tries to get your hostname.
> At any rate you should see why if you let strace
> run a little bit more.
> 
> In previous versions Cygwin was using GetComputerName.
> Not it uses gethostname, loading wsock.
> 
> Pierre
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 
David Means

There are 10 kinds of people in this world: people who understand binary, and people 
who don't.


signature.asc
Description: This is a digitally signed message part


Re: why is bash trying to access my DNS?

2003-03-03 Thread David Means
Can you show us your PATH and all of your mount points?

In the meantime, I'll upgrade my cygwin @ home.  If I don't find the
same behaviour, I'll check my config at work.



On Mon, 2003-03-03 at 17:52, Geoffrey Hausheer wrote:
> On Mon, 3 Mar 2003 16:42:51 -0500 (EST), "Igor Pechtchanski
> [EMAIL PROTECTED] {Cygwin}"
> <[EMAIL PROTECTED]> said:
> > Geoffrey,
> >
> > Well, first off, your strace output seems hosed.  There might have been a
> > problem while pasting it.  Next time, try the "-o" option of strace...
> > You can then edit the resulting file to get the relevant snippet.  Also,
> > pasting strace output in a message reformats it.  Try attaching it
> > (compressed if it's too large).
> it seems my mail client always compresses my attachemnts, and I can't do
> anything 
> about it, and the maillist spam-filters block my compressed version, and
> the 
> maillist won't accept my 'I am not a spammer mail'  so I guess i can't
> send the 
> strace output.
> 
> I did diff the strace output with and without allowing access to the DNS
> lookup,
> and there are no significant differences.
> 
> >
> > For how long a while haven't you updated?  Do you have old-style cygdrive
> > paths (e.g. "//c") in your path?  Those now refer to Windows UNC paths,
> > which would be one explanation for this behavior.
> It has probably been 2 months since I updated.  I have no '//c' in my
> paths
> 
> Please let me know if there is anything else I can do.  While I am
> certain that something about the cygwin upgrade ssh install caused this
> change, it
> seems toaffect other applictaions too (ipconfig now does a DNS request
> too, which
> it neverused to do)
> 
> Thanks,
> Geoff 
-- 
David Means

Being a programmer is like being married: You talk to your
spouse about lots of things, only to find that something you 
said (and promptly forgot) has come back to bite you in the ass 
months later.  


signature.asc
Description: This is a digitally signed message part


Re: Problems with FIND

2003-03-02 Thread David Means
'type' reporting the first instance of a file that it finds isn't a
problem.  However, I will assume that when you run the 'find' command,
that you're finding that the windows version of find is running and not
the cygwin version, and that's your problem.

The windows version of 'find' is found in your 'PATH' before the cygwin
version.  This can be solved in one of two ways.  You may edit your
system or user path (via the control panel) and put the cygwin paths
first in your system or user path.  However, I don't recommend this: it
might interfere with a windows program or operation.  Your second option
is to edit either /etc/profile or $HOME/.bash_login or
$HOME/.bash_profile, making sure that the cygwin paths are placed before
the default windows paths.  Specifically, you'd be wanting /usr/bin (if
I recall correctly; I don't have cygwin machine handy right now) first
in the path.  Once this is done, log out of cygwin, log back in and your
paths should be fixed.



On Sun, 2003-03-02 at 05:44, Fernando Bastos wrote:
> Hello,
> When I do 'type find', I pick up the Win find.exe. Well, how can I solve the
> problem? I am not expert enough and I could not find any information about
> that!
> Thanks a lot!
> 
> Bastos
> ==
> Fernando João Pereira de Bastos
> e-mail: [EMAIL PROTECTED]
> ==
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:     http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 
David Means

sed is ed on LSD 
-- Pat Becker


signature.asc
Description: This is a digitally signed message part


Re: Accessing global variables causes segfault

2003-02-22 Thread David Means




One problem is that 'myglobal' is a pointer to an int, but the int is never defined, and hence, you're assigning a value to a pointer that points no where.

It's very common for things like this to work on one platform, but not another.

On Sat, 2003-02-22 at 00:21, Steve Baldwin wrote:

I'm having some (further) issues porting some Unix code to cygwin.  I
have a
scenario where there are global variables defined in a shared library,
and referenced in the executable.  See the example below.  Yes I know
it's bad coding practice, but I'm hoping to port the code with the least
amount of re-writing as possible.  It works fine under Unix, but as you
can see from below, doesn't play well under cygwin.  Is there anything
I can do - apart from the obvious re-write.

Cheers,

Steve

[cdev]$ cat a.c
#include 
#include 
extern void fx (void) ;
extern int myglobal ;

int
main (int argc, char **argv) {
myglobal = 99 ;
fx () ;
}
[cdev]$ cat b.c
#include 

int *myglobal ;

void
fx (void)
{
printf("here i am : myglobal = %d\n", myglobal) ;
}
[cdev]$ gcc b.c -o libb.dll -shared
[cdev]$ gcc a.c -o a -L. -lb
[cdev]$ a
Segmentation fault (core dumped)


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




-- 
David Means

Different all twisty a of in maze are you, passages little.








signature.asc
Description: This is a digitally signed message part


Re: cross compiling

2003-02-01 Thread David Means




Do I understand correctly that you want to compile (on a linux machine) a program that makes use of the Cygwin API's, and which will be run on a windows machine?  A true "cross compile?"

David


On Sat, 2003-02-01 at 07:55, thomas wrote:

hi,

i want to compile cygwin apps in linux. i've searched both the cygwin and
the cygwin-dev lists but i can't seem to find much information about it.
cgf apparently does it and knows how to do it.
so if someone can point me in a direction that'd be great.

thomas


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




-- 
David Means

Q: How many IBM 370's does it take to execute a job?
A: Four, three to hold it down, and one to rip its head off.








signature.asc
Description: This is a digitally signed message part


Re: Bug in rm -r with locked files

2003-01-21 Thread David Means




Yep, I concur.  If windows has a lock on the file, rm just hangs.  I've seen it hang on directories when doing an 'rm -rf yada/*"

On Tue, 2003-01-21 at 06:50, Gael Mulat wrote:

Hi,

This is a bug report about rm (package fileutils, version 4.1-1) on W2K.

Test case: take 2 cygwin shells.
shell 1:
mkdir /tmp/directory
vi /tmp/directory/file

shell 2:
/bin/rm -rf /tmp/directory

The shell2 doesn't manage to remove the directory and goes into an 
infinite loop, taking 100% of the CPU.
All is then OK if we go out of vi in the shell1.

Doing the same thing (deleting the directory) directly in Windows 
produces an error message: "cannot delete directory: Access is denied. 
The source file may be in use" and we can notice in the directory a file 
named .file.swp that is also visible under Cygwin with ls -la.

The example I have just given uses vi, but it is the same with all 
processes that open the file, as W2K puts a lock on it.

Gael Mulat




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




-- 
David Means

Different all twisty a of in maze are you, passages little.








signature.asc
Description: This is a digitally signed message part


Re: VPATH broken with multiple dirs

2003-01-18 Thread David Means





On Sat, 2003-01-18 at 11:46, Christopher Faylor wrote:

{snip}
>http://www.delorie.com/gnu/docs/make/make_27.html

This is cygwin make, not djgpp make.  Cygwin make uses colons, not
semicolons.  If semicolons actually *work*, that's a bug.


Actually, it's not cygwin make, it's GNU: 

$ make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-cygwin
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
    Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.


The "real" home for GNU make has the same statement:

"In the VPATH variable, directory names are separated by colons or blanks. The order in which directories are listed is the order followed by make in its search. (On MS-DOS and MS-Windows, semi-colons are used as separators of directory names in VPATH, since the colon can be used in the pathname itself, after the drive letter.) "

http://www.gnu.org/manual/make-3.79.1/html_mono/make.html#SEC27



-- 
David Means

The nice thing about Windows is - It does not just crash, it displays a
dialog box and lets you press 'OK' first.








signature.asc
Description: This is a digitally signed message part


Re: VPATH broken with multiple dirs

2003-01-18 Thread David Means




An interesting problem.  I'm not sure there's a programatic way to solve it.  While spaces are allowed in unix paths, VPATH obviously doesn't account for this behaviour and assumes spaces are delimiters.. However, MSDOS/Windows VPATH requires semicolons.  I would assume that it does not allow spaces as a delimiter since they're frequently found in paths and hence, would break the parse.

"In the VPATH variable, directory names are separated by colons or blanks. The order in which directories are listed is the order followed
by make in its search. (On MS-DOS and MS-Windows, semi-colons are used as separators of directory names in VPATH, since the colon can be used in the pathname itself, after the drive letter.)"

http://www.delorie.com/gnu/docs/make/make_27.html

Good Hunting!

David


On Sat, 2003-01-18 at 05:44, Christopher Seawood wrote:

Christopher Seawood wrote:

> Before: VPATH = c:/root/rmch/mozilla/js/src/xpconnect
> c:/root/rmch/mozilla/js/src/xpconnect/idl
> 
> After: VPATH = /cygdrive/c/root/rmch/mozilla/js/src/xpconnect
> c:/root/rmch/mozilla/js/src/xpconnect/idl
> 
> This implies that the cygwin_win32_to_posix_path_list() function doesn't
> support converting multiple paths.  I haven't grabbed the cygwin dll
> sources yet. Does anyone know authoritatively if that's the case?

After playing around for a bit, I discovered that if I used ; to 
separate the dirs instead of a space, then the conversion function 
worked fine for all dirs and the other source files were found.  This, 
of course, breaks the unix builds but I can deal with that.

- cls


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




-- 
David Means

C makes it easy for you to shoot yourself in the foot.  C++ makes that
harder, but when you do, it blows away your whole leg.
-- Bjarne Stroustrup








signature.asc
Description: This is a digitally signed message part


Re: cygrunsrv and apache

2003-01-15 Thread David Means




Does adding the --nodetach to cygrunsrv (I think that's the correct spelling ) help?

I had a similar problem with rsyncd and adding it resolved my problem.

On Wed, 2003-01-15 at 18:24, Jonathan Albrecht wrote:

I've been trying to run apache as a service using cygrunsrv. I haven't 
changed the httpd.conf and running /usr/sbin/httpd from the command line 
works fine. Here is what I have done:

 > cygrunsrv -I apache -d "Cygwin apache" -p /usr/sbin/httpd -a -k -e 
"CYGWIN=ntsec nosmbntsec binmode tty"
 
  > cygrunsrv -S apache 

cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.

I've tried variations on the spaces and quotes in the command line but 
nothing has worked. Any ideas?

Here is my cygcheck -s output:

 > cygcheck -s

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Jan 15 18:17:40 2003


{ snip } 




-- 
David Means

Real programs don't eat cache.








signature.asc
Description: This is a digitally signed message part


Re: ssmtp and cron

2003-01-05 Thread David Means




Dirk:

I don't recall having the problem you're experiencing, but I'll give it a whirl tomorrow @ work and let you know what I find.  I do remember getting mail from cygwin-cron at one point in time, but I don't recall what I did to make it work.  If I get to work, I'll let you know how.

David


On Thu, 2003-01-02 at 03:47, Dirk Ziegenbalg wrote:

Hello,

can somebody help me please
I've got cron and ssmtp to run. It works fine.
When cron is started and wants to mail me a message, then there was two error-entries in the eventlog und windows 2000. First tells me:

sSMTP mail : Win32 Process Id = 0x668 : Cygwin Process Id = 0x66C : unable to create a socket..

and the second:

sSMTP mail : Win32 Process Id = 0x668 : Cygwin Process Id = 0x66C : can't open the smtp port (25) on mail.gmx.de..

because of the first error.
When I call ssmtp from the commandline then it works fine.

I've give it up after two days of trying. Cron did his work. But I want his messages! Any ideas?


bye
Dirk

__
PREMIERE: Der Countdown laeuft! 3 Monate gratis + d-box 1 ab 1 Euro
nur noch wenige Tage zu haben! http://premiere.web.de/?mc=27&lp=2


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:       http://cygwin.com/faq/




-- 
David Means

sed is ed on LSD








signature.asc
Description: This is a digitally signed message part


Re: sshd: setgid() fails on second login

2002-12-21 Thread David Means




ROTFL!

What can I say besides "open mouth, insert foot?"



On Sat, 2002-12-21 at 12:07, Randall R Schulz wrote:

David,

Now I'm a big Linux proponent and only currently wed to Windows by a quirk 
of my personal employment history, but never did I realize that rebooting a 
Linux system would fix a broken disk.

Those Linux kernel programmers really _are_ miracle workers, aren't they?

Wow!

Randall Schulz


At 06:28 2002-12-21, David Means wrote:
>Hum... I should have known.  A reboot fixed the problem.  I suppose that 
>what I get for being a Unix geek: you don't _have_ to reboot a unix system 
>to fix broken stuff. (unless it's really broken, like disks, etc, etc).


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:       http://cygwin.com/faq/




-- 
David Means

Programmers rule #1: Grok before frobnicating.








signature.asc
Description: This is a digitally signed message part


Re: sshd: setgid() fails on second login

2002-12-21 Thread David Means




Hum... I should have known.  A reboot fixed the problem.  I suppose that what I get for being a Unix geek: you don't _have_ to reboot a unix system to fix broken stuff. (unless it's really broken, like disks, etc, etc).


On Wed, 2002-12-18 at 13:50, [EMAIL PROTECTED] wrote:

I've recently installed cygwin version 1.3.17.

When I attempt to ssh to the cygwin host more than once, with the
first connection still active, I get the error message
'setgid: invalid argument' , and then I'm disconnected.

Below is an example of the problem.  The first 'ssh localhost' is
sucessful (which indicates to me that setgid() succeeded), but
the second 'ssh localhost' fails.

This problem is reproducable regardless of the client (localhost
or remote) or the authentication method (keys vs. passwords), or
any mixture there of.  In other words, if I'm logged in once via
ssh, then I cannot log in again via ssh.

I've searched the web and the archives for clues, but I'm coming up
empty.

Thanks,

David

--


Example:

[ /home/dmeans ]
dmeans@raptor
2$ ssh localhost
Last login: Wed Dec 18 13:22:08 2002 from raptor
Fanfare!!!
You are successfully logged in to this server!!!

[ /home/dmeans ]
dmeans@raptor
10$ ssh localhost
Last login: Wed Dec 18 13:23:31 2002 from raptor
Fanfare!!!
You are successfully logged in to this server!!!
setgid: Invalid argument
Connection to localhost closed.

[ /home/dmeans ]
dmeans@raptor
11$


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




-- 
David Means

No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.








signature.asc
Description: This is a digitally signed message part


Re: I am not going to let cygwin BSOD my Windows 2000 Server

2002-04-20 Thread David Means

IMHO, cygwin setup works like a champ.  I've install cygwin on 4
machiness in the past year, nary a BSOD.  

Stick your toes back in.  The water was never that bad in the first
place.

;-)

David

On Sat, 2002-04-20 at 12:35, Christopher Faylor wrote:
> On Sat, Apr 20, 2002 at 03:19:40AM -0400, George Hester wrote:
> >Do you have all your toes?
> 
> Sure.  My toes are not so sensitive that they become burned off if
> I encounter a problem with my system.
> 
> I'm also the kind of guy who thinks that if something is working for 99%
> of the people out there and *I* have a problem that it is probably *my*
> problem.  So, often, I like to figure out what that problem is.
> Sometimes, if I don't have enough time or interest, I might wait to see
> if a new version of a program solves my problem but I never grow so
> averse to trying something new that I steadfastly avoid running a
> program because it once gave me problems.
> 
> Does that answer your question?
> 
> cgf
>
{ snip }

-- 

The Meaning of Life, the Universe and Everything:
   10x + 5x - 35 = x + 7



signature.asc
Description: This is a digitally signed message part


Re: what am I doing wrong?

2002-04-07 Thread David Means

Looks like something that mutt depends upon is missing or does not have
the execute bit set.

Works like a champ on my system.

try 'strace mutt -s test [EMAIL PROTECTED]'

Assuming you're on a linux system.  If you're running Solaris, that'll
be 'truss' instead.


David


On Sun, 2002-04-07 at 16:58, Eli Kleinman wrote:
> $ echo hello | mutt -s test [EMAIL PROTECTED]
> Error sending message, child exited 127 (Exec error.).
> Could not send the message.
> 
> or
> by just typing
> mutt -s test [EMAIL PROTECTED]
> -- Mutt: Compose
> Error sending message, child exited 127 (Exec error.).
> 
> thanks for any help
> Eli
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 

The Meaning of Life, the Universe and Everything:
   10x + 5x - 35 = x + 7



signature.asc
Description: This is a digitally signed message part


Re: .bashrc not getting sourced?

2002-03-26 Thread David Means

I believe that .bash_login, .bash_profile  or .profile is the file
you're wanting to use in this instance.

man bash
{ snip }

 When an interactive shell that  is  not  a  login  shell  is
 started, bash reads and executes commands from ~/.bashrc, if
 that file exists.  This may be inhibited by using the --norc
 option.   The  --rcfile  file option will force bash to read
 and execute commands from file instead of ~/.bashrc.

{ snip }

If you're realling wanting .bashrc to be sourced on a login-shell, then
you'll either need to set BASH_ENV=$HOME/.bashrc, or source it from your
$HOME/.profile, or from /etc/profile.

David



On Tue, 2002-03-26 at 11:37, Roland Glenn McIntosh wrote:
> I just did a recent brand new install yesterday and I noticed that /etc/profile no 
>longer contains a line like:
> 
>   test -f ./.bashrc && . ./.bashrc
> 
> It took me a second to figure out why .bashrc wasn't getting read (I thought it 
>happened automatically by the shell) until I compared it to an older "working" cygwin 
>install.
> 
> Is there a specific reason for that missing line in /etc/profile, or could it have 
>been an oversight?  I did notice that my redhat 7 system's /etc/profile doesn't seem 
>to include such a line.
> -rgm
> 
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 

The Meaning of Life, the Universe and Everything:
   10x + 5x - 35 = x + 7



signature.asc
Description: This is a digitally signed message part


Re: Printing locally.

2002-03-02 Thread David Means

I don't have my cygwin machine handy, so I've got to ask:

how about this:

cat a.txt > /cygdrive/c/WINNT/lpt1

that's probably not the ultimate solution, but does it work?

David



On Sat, 2002-03-02 at 21:52, Brian Salter-Duke wrote:
> On Sat, Mar 02, 2002 at 02:45:57AM -0500, Paul McFerrin wrote:
> > Brian:
> > 
> > I used to be able to print from cygwin by refering to /dev/lpt1
> > 
> > -paul mcferrin
> 
> There is no /dev directory! "which lpt1" gives "/cygdrive/c/WINNT/lpt1",
> but typing "lpt1 file" gives permission denied and looking in WINNT with
> Windows Explorer I do not find it. I'm even more puzzled.
> 
> Cheers, Brian.
> 
> [my original query about how to print to a local printer deleted.]
>  
> -- 
>Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED]  
> Honorary Fellow in Chemistry, NT University, Darwin, NT 0909, Australia.
>  Phone 08-89881600.Fax 08-89881302.http://lacebark.ntu.edu.au/
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 

No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.



signature.asc
Description: This is a digitally signed message part


Re: Strange behavior

2002-03-02 Thread David Means

I don't think it's cygwin.

Looks like something in gnu (complier or libs?).

David

---


72$ uname -a && g++ --version && ./rtest2
Linux milo 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
2.96
5/4
1
-1/4
1
3/8
1
2/3
0

319$ uname -a && g++ --version ; ./rtest2
SunOS opus 5.7 Generic sun4u sparc SUNW,Ultra-1
2.95.3
5/4
1
-1/4
1
3/8
1
2/3
1

On Sat, 2002-03-02 at 16:18, Chuck Allison wrote:
> I have a simple Rational number class and have discovered  weird behavior
> with Cygwin's g++. If you look at the very short main program in file
> rtest2.cpp, you will see by the output that g++ get's the wrong answer for
> 
> r1 / r2 == Rational(2,3); // should be true
> 
> even though it prints as 2/3! Borland and Microsoft get it right. Any ideas?
> All code atached.
> 
> Thanks.
> 
> -- Chuck Allison (The Harmonious CodeSmith)
> -- Senior Editor, C/C++ Users Journal
> -- [EMAIL PROTECTED]
> 
> 
> 
{ snip }

-- 

No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.



signature.asc
Description: This is a digitally signed message part


Re: Re:Sprintf issue

2002-02-18 Thread David Means

This sounds more like a sed problem than an sprintf problem.

First, can you get the sed command to work at the cygwin prompt?  If
not, it's quite possible that the environment from which your running
the program does not have sed in its' path.

You should also try this: 

`echo "yada" | sed 's/:/-/g'`

The best solution would be to convert the ':' chars to '-' chars in your
C program.

David




On Mon, 2002-02-18 at 05:25, Jorge Goncalvez wrote:
> Hi, i tried to modified a C program running on linux and make it running on 
> windows with gcc for cygwin:
> like this:
>  sprintf(arpbuf, "arp -s %s `echo %s | sed -e s/:/-/g`"
>  piaddr (lease -> ip_addr),
>  print_hw_addr (lease -> hardware_addr.htype,
> lease -> hardware_addr.hlen,
> lease -> hardware_addr.haddr));
>  note(arpbuf);
>  system(arpbuf);
> }
> 
> and the original was:
> 
>  sprintf(arpbuf, "arp -s %s  %s ",
>  piaddr (lease -> ip_addr),
>  print_hw_addr (lease -> hardware_addr.htype,
> lease -> hardware_addr.hlen,
> lease -> hardware_addr.haddr));
>  note(arpbuf);
>  system(arpbuf);
> }
> 
> but my second %s was with the following format XX:XX:XX:XX:XX:XX and i would 
> replace it by XX-XX-XX-XX-XX-XX.
> I tried sed but it didn't work.Why? it seem not to be interpreted I have :
> arp -s 192.40.54.42 `echo 00:80:9f:2e:3f:5e | sed -e s/:/-/g`
> 
> Could i do it in pure C?Thanks for your precious help.
> 
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
-- 

No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.



signature.asc
Description: This is a digitally signed message part


Re: at + bash

2002-02-09 Thread David Means

Try:

mkdir /tmp

mount /cygdrive/c/tmp /tmp



David wrote:
> 
> Hello
> 
> I am having a problem running perl in an at command on windows nt
> because perl says it can't find some @INC libs I added. So, I'm
> trying to run perl in a bash shell:
> 
> at 12:00 /every:M,T cmd /c "bash -c 'perl script.pl'"
> 
> However, bash will not start, saying:
> 
> bash.exe: warning: could not find /tmp, please create!
> 
> I checked the environment and have TMP=c:\tmp and for that matter
> TEMP=c:\temp
> 
> But, when I run df, I only see
> c: ... /chgdrive/c
> i:  /chgdrive/i
> 
> And I don't see the cygwin mounts c:\sys\cygwin ... /, etc.
> 
> I tried running mount in the at command but it doesn't do anything.
> 
> Please send your suggestions to me, copy the list:
> 
> Thanks,
> 
> David
> 
> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/

-- 

No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/