Problem with SSHD

2002-05-13 Thread Zeus Gómez Marmolejo

Hi all,

I've searched all the historical messages of the list but I haven't find 
any solution to my problem. Any help would be appreciated. I've 
installed cygwin sshd in a W2k server box but I can't manage to start 
it. When I run it as a service, I get the following error:

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

Viewing the logs, there's a couple of errors:
$ cat /var/log/sshd.log
@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
@@@
Permissions 0644 for '/etc/ssh_host_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_key
@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
@@@
Permissions 0644 for '/etc/ssh_host_rsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_rsa_key
@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
@@@
Permissions 0644 for '/etc/ssh_host_dsa_key' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /etc/ssh_host_dsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.

But, in this case when I do an ls of the /etc/ directory I get the 
following:
$ ls -las /etc
total 139
   4 drwxrwxrwx5 Administ None 4096 May 12 10:22 .
   4 drwxrwxrwx   10 Administ None 4096 May  9 12:44 ..
   1 -rwxrwxrwx1 Administ None  280 May  9 12:44 group
  86 -rwxrwxrwx1 Administ None88039 Mar  7 16:50 moduli
   1 -rwxrwxrwx1 Administ None  966 May 12 10:09 passwd
   4 drwxrwxrwx2 Administ None 4096 May  9 12:44 postinstall
   0 -rw-r--r--1 Administ None0 May 12 10:21 primes
   1 -rwxrwxrwx1 Administ None  386 May  9 12:44 profile
   0 drwxrwxrwx2 Administ None0 May  9 12:42 profile.d
  16 drwxrwxrwx2 Administ None16384 May  9 12:43 setup
   1 -rw-rw-rw-1 Administ Administ  955 May  9 12:45 ssh_config
   1 -rw---1 SYSTEM   SYSTEM668 May  9 12:45 
ssh_host_dsa_key
   1 -rw-r--r--1 Administ Administ  612 May  9 12:45 
ssh_host_dsa_key.pub
   1 -rw---1 SYSTEM   SYSTEM537 May  9 12:44 ssh_host_key
   1 -rw-r--r--1 Administ Administ  341 May  9 12:44 
ssh_host_key.pub
   1 -rw---1 SYSTEM   SYSTEM887 May  9 12:45 
ssh_host_rsa_key
   1 -rw-r--r--1 Administ Administ  232 May  9 12:45 
ssh_host_rsa_key.pub
   2 -rw-rw-rw-1 Administ Administ 1562 May 12 10:22 sshd_config
  13 -rwxrwxrwx1 Administ None12306 Apr  3 17:11 termcap

The ssh_host*_key files have 0600 permissions and the logs are 
incorrect. I have tried to change the owner of these files to 
Administrator and run the service in the command line (as Administrator):
$ /usr/sbin/sshd -D

The command succeeds but when I try to login, passwords doesn't match (I 
suppose that sshd has to be run as SYSTEM account to authenticate 
users). How can I solve this problem?

Windows 2000 acls shows that /etc/ssh_host*_key has the Everyone user 
but no permissions with it. Can be this problem? I can't remove the 
'Everyone' user of the acl because the owner is SYSTEM and I would be 
changing the ownership of the files... What should I do?

CYGWIN is set to "ntsec tty". Any thanks in advance.


Zeus Gómez.


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




Brian P Kasper/West/Aerospace/US is out of the office.

2002-05-13 Thread Brian P Kasper

I will be out of the office starting  05/04/2002 and will not return until 05/28/2002.

I will respond to your message when I return.



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




RE: Cut and paste standard input and output

2002-05-13 Thread Robert Collins

And don't forget the read/write capability ot /dev/clipboard.
Rpb

> -Original Message-
> From: Charles Wilson [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Cut and paste standard input and output
> 
> 
> Have you seen the 'putclip' and 'getclip' applications that 
> are part of 
> the official 'cygutils' package?
> 
> --Chuck
> 
> 
> Raoul Gough wrote:
> 
> > I recently wrote a simple command-line tool that cuts or 
> pastes plain 
> > text to/from standard input/output. I find it quite useful 
> sometimes, 
> > when I've got a script that generates some output and I want to 
> > process the output in a windows application (or vice-versa).
> > 
> > e.g.
> > 
> > ls -lR | clipboard -x
> > 
> > After which, I can paste the ls output direct into a 
> windows App. It's 
> > much easier than selecting and cutting from the 
> command-shell window, 
> > especially if there is a lot of output. The command has 
> three options, 
> > -x cuts, -c copies (kinda like tee) and -v pastes to 
> standard output. 
> > If this tool doesn't already exist, I'd be willing to 
> contribute the 
> > code. Any interest and advice on how to submit it?
> > 
> > Thanks,
> > Raoul Gough.
> > 
> > 
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> > 
> > 
> > --
> > 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/
> > 
> > 
> > 
> 
> 
> 
> 
> --
> 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/
> 
> 

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




Re: [PATCH] gettimeofday time travels

2002-05-13 Thread Philip Aston


Philip Aston writes:
 > Christopher Faylor writes:
 >  > The correct solution is to resync after events which cause the
 >  > clock to stop.
 > 
 > OK, I'll have a crack at this over the weekend following David's
 > hints.

Short of some unexpected wParam values, which I'll track down, I now
have this working.

I have some design questions. Please help me ensure my patch is up to
scratch..

1. Currently I'm leveraging the event loop for the hidden window that
is created for alarm and ualarm support (window.cc). This involves a
call to gethwnd() create that window if it doesn't exist. I presume
this is fine as the socket support does the same. Any objections?

2. Should I implement a generic mechanism for listening to power
events? Currently I've just added a static hires::reprime() method
which is called on the appropriate power event.

3. The reprime() method iterates over a linked list of hires objects.
The hires ctor inserts a hires into this list. Do I need to worry
about thread safety here? If so, what's a typical solution? I didn't
see any handy thread safe list.

4. Similarly for the dtor - I'm planning to assert here, rather than
faff with a double linked list. This means that hires's can never be
deleted. OK?


Thanks,

- Phil


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




RE: Cut and paste standard input and output

2002-05-13 Thread Mellman Thomas

>>-Original Message-
>>From: Robert Collins [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, May 13, 2002 10:45 AM
>>To: Charles Wilson; [EMAIL PROTECTED]
>>Subject: RE: Cut and paste standard input and output
>>
>>
>>And don't forget the read/write capability ot /dev/clipboard.
>>Rpb


Is there a way to mount /dev so one can see everything that's available
there?

Also, I tried to find the answer to this question by searching the
User Guide and FAQ, but I released in both cases I have only links to
dismembered HTML documents.  Are there grep-able versions available
(I also didn't come up with anything in /usr/doc).  Links to these
probalby ought to be prominently up-front.

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




Re: cygwin Digest 12 May 2002 01:09:50 -0000 Issue 1930

2002-05-13 Thread fergus

Further to Peter Castro's excellent summary of a Cygwin installation
including sources:

Using setup v.2.218.2.4 :

I ran a full net installation including sources. In addtion to items
reported by Peter my setup.log.full also included

could not open /rcs-5.7-3/COPYING for reading in mklink
Unable to schedule reboot replacement of file
c:\Cygwin/rcs-5.7-3/man/COPYING with c:\Cygwin/rcs-5.7-3/man/COPYING.new
(Win32 Error 2)
could not open /rcs-5.7-3/COPYING for reading in mklink
Unable to schedule reboot replacement of file
c:\Cygwin/rcs-5.7-3/src/COPYING with c:\Cygwin/rcs-5.7-3/src/COPYING.new
(Win32 Error 2)

Fergus


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




RE: cygwin setup freezes

2002-05-13 Thread Sander Timmermans

Well, as I cannot build myself a new setup I tried the internet install once
more.
I used the 1.3.10 (install now!) setup but it freezes after reading .ini
/me whacks monitor with keyboard

Sander

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Sander Timmermans
> Sent: 08 May 2002 11:35
> To: Robert Collins; Sander Timmermans; Jack Tan; [EMAIL PROTECTED]
> Subject: RE: cygwin setup freezes
>
>
> Yes, yes!
>
> > -Original Message-
> > From: Robert Collins [mailto:[EMAIL PROTECTED]]
> > Sent: 08 May 2002 11:27
> > To: Sander Timmermans; Jack Tan; [EMAIL PROTECTED]
> > Subject: RE: cygwin setup freezes
> >
> >
> >
> >
> > > -Original Message-
> > > From: Sander Timmermans [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, May 08, 2002 7:28 PM
> > > To: Jack Tan; [EMAIL PROTECTED]
> > > Subject: RE: cygwin setup freezes
> > >
> > >
> > > The problem got worse, now it doesn't even go to the package
> > > selection screen. The only thing I see is a frozen window
> > > that says: this space intentionally left blank. I think I
> > > must give up on cygwin.
> >
> > Have you downloaded the new setup??
> >
> > Rob
> >
>
> --
> 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/
>
>


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




Re: Problems in shm.cc from cvs

2002-05-13 Thread Nicholas Wourms

> Jason Tishler has already suggested a possible cause for this problem:
> http://cygwin.com/ml/cygwin/2002-05/msg00639.html

Sorry, a bit of a brain fart, I realized this too late...
 
> Assuming that there is a typo in the sources is illogical since
> snapshots are built from the sources on a regular basis.

Of course you are right, I had assumed incorrectly and thrown logic to the
wind.  I'll be a little less hasty in the future ;).
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: Cut and paste standard input and output

2002-05-13 Thread Robert Collins



> -Original Message-
> From: Mellman Thomas [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 7:06 PM
> To: Robert Collins; Charles Wilson; [EMAIL PROTECTED]
> Subject: RE: Cut and paste standard input and output
> 
> 
> >>-Original Message-
> >>From: Robert Collins [mailto:[EMAIL PROTECTED]]
> >>Sent: Monday, May 13, 2002 10:45 AM
> >>To: Charles Wilson; [EMAIL PROTECTED]
> >>Subject: RE: Cut and paste standard input and output
> >>
> >>
> >>And don't forget the read/write capability ot /dev/clipboard. Rpb
> 
> 
> Is there a way to mount /dev so one can see everything that's 
> available there?

No.

> Also, I tried to find the answer to this question by 
> searching the User Guide and FAQ, but I released in both 
> cases I have only links to dismembered HTML documents.  Are 
> there grep-able versions available (I also didn't come up 
> with anything in /usr/doc).  Links to these probalby ought to 
> be prominently up-front.

They are on the home page.

Rob. 

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




RE: cygwin setup freezes

2002-05-13 Thread Robert Collins

The setup.exe versions are not linked to the cygwin1.dll versions.
Download a new setup.exe and it should be ok.

Rob

> -Original Message-
> From: Sander Timmermans [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 7:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: cygwin setup freezes
> 
> 
> Well, as I cannot build myself a new setup I tried the 
> internet install once more. I used the 1.3.10 (install now!) 
> setup but it freezes after reading .ini /me whacks monitor 
> with keyboard
> 
> Sander
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On 
> > Behalf Of Sander Timmermans
> > Sent: 08 May 2002 11:35
> > To: Robert Collins; Sander Timmermans; Jack Tan; [EMAIL PROTECTED]
> > Subject: RE: cygwin setup freezes
> >
> >
> > Yes, yes!
> >
> > > -Original Message-
> > > From: Robert Collins [mailto:[EMAIL PROTECTED]]
> > > Sent: 08 May 2002 11:27
> > > To: Sander Timmermans; Jack Tan; [EMAIL PROTECTED]
> > > Subject: RE: cygwin setup freezes
> > >
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: Sander Timmermans [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, May 08, 2002 7:28 PM
> > > > To: Jack Tan; [EMAIL PROTECTED]
> > > > Subject: RE: cygwin setup freezes
> > > >
> > > >
> > > > The problem got worse, now it doesn't even go to the package 
> > > > selection screen. The only thing I see is a frozen window that 
> > > > says: this space intentionally left blank. I think I 
> must give up 
> > > > on cygwin.
> > >
> > > Have you downloaded the new setup??
> > >
> > > Rob
> > >
> >
> > --
> > 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/
> >
> >
> 
> 
> --
> 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/
> 
> 

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




Re: mkpasswd (Win2K) cannot find the domain controller

2002-05-13 Thread Corinna Vinschen

On Wed, May 08, 2002 at 03:41:29PM -0400, Gerald S. Williams wrote:
> Meanwhile, I'm wondering if a change similar to the patch
> below should be made to mkpasswd.c?

I'm somewhat reluctant to apply that patch to mkpasswd.  The
reason is... I don't know.  I recalled that I'd once changed
from using NetGetAnyDCName() to NetGetDCName() for *some*
reason.  I found the change in the ChangeLog, 2000-04-15.
Unfortunately I don't remember what the exact problems with
NetGetAnyDCName() were.  Sigh.

Corinna

> 
> -Jerry
> 
> Index: mkpasswd.c
> ===
> RCS file: /cvs/src/src/winsup/utils/mkpasswd.c,v
> retrieving revision 1.21
> diff -u -r1.21 mkpasswd.c
> --- mkpasswd.c29 Apr 2002 10:21:54 -  1.21
> +++ mkpasswd.c8 May 2002 19:36:14 -
> @@ -50,7 +50,7 @@
>  return FALSE;
>if (!(netlocalgroupenum = (void *) GetProcAddress (h, "NetLocalGroupEnum")))
>  return FALSE;
> -  if (!(netgetdcname = (void *) GetProcAddress (h, "NetGetDCName")))
> +  if (!(netgetdcname = (void *) GetProcAddress (h, "NetGetAnyDCName")))
>  return FALSE;
>if (!(netusergetinfo = (void *) GetProcAddress (h, "NetUserGetInfo")))
>  return FALSE;
> 
> 
> --
> 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/

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




RE: [PATCH] gettimeofday time travels

2002-05-13 Thread Robert Collins



> -Original Message-
> From: Philip Aston [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 6:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PATCH] gettimeofday time travels
> 
> 
> 
> Philip Aston writes:
>  > Christopher Faylor writes:
>  >  > The correct solution is to resync after events which 
> cause the  >  > clock to stop.  > 
>  > OK, I'll have a crack at this over the weekend following 
> David's  > hints.
> 
> Short of some unexpected wParam values, which I'll track 
> down, I now have this working.
> 
> I have some design questions. Please help me ensure my patch 
> is up to scratch..
> 
> 1. Currently I'm leveraging the event loop for the hidden 
> window that is created for alarm and ualarm support 
> (window.cc). This involves a call to gethwnd() create that 
> window if it doesn't exist. I presume this is fine as the 
> socket support does the same. Any objections?

None here, but I don't know this bit of code well. Hopefully someone
else will comment.
 
> 2. Should I implement a generic mechanism for listening to 
> power events? Currently I've just added a static 
> hires::reprime() method which is called on the appropriate 
> power event.

Incremental is best. Lower risk. Structure what you put in so that it
should be easily refactored, but that's all.
 
> 3. The reprime() method iterates over a linked list of hires 
> objects. The hires ctor inserts a hires into this list. Do I 
> need to worry about thread safety here? If so, what's a 
> typical solution? I didn't see any handy thread safe list.

Mutex's are the usual solution. Also there's a thread safe list in
thread.h. (It uses InterLocked calls).
 
> 4. Similarly for the dtor - I'm planning to assert here, 
> rather than faff with a double linked list. This means that 
> hires's can never be deleted. OK?

Not by me. There are other ways to deal though. (for example just link
to head in each object. Or, have inserts and deletes managed by the
client not the object itself.)

Rob

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




Re: Socket Handles duplicated twice after fork

2002-05-13 Thread Corinna Vinschen

On Wed, May 08, 2002 at 11:42:54AM -0400, David E Euresti wrote:
> #include 
> #include 
> #include 
> #include 
> 
> int main() {
>   int fds[2];
>   int pid;
> 
>   socketpair (AF_UNIX, SOCK_STREAM, 0, fds);
> 
>   pid = fork ();
>   if (pid == 0) {
> printf("Child: Sockets are 0x%x 0x%x\n",
>  get_osfhandle(fds[0]), get_osfhandle(fds[1]));
> sleep(300);
>   }
>   else {
> printf("Parent: Sockets are 0x%x 0x%x\n",
>  get_osfhandle(fds[0]), get_osfhandle(fds[1]));
> sleep(300);
>   }
> }

Could you please send an `strace -f' output running the above
code to the list?

Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




Re: Cut and paste standard input and output

2002-05-13 Thread Raoul Gough

From: "Robert Collins" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 9:45 AM


And don't forget the read/write capability ot /dev/clipboard.

> From: Charles Wilson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 8:35 AM
>
> Have you seen the 'putclip' and 'getclip' applications that
> are part of
> the official 'cygutils' package?

Wow! I obviously didn't try hard enough to find an existing solution before
writing my own. Thanks for the tips.

Regards,
Raoul Gough.


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: cygwin setup freezes

2002-05-13 Thread Sander Timmermans

Quoting myself:
> > > Well, as I cannot build myself a new setup I tried the
> > > internet install once more. I used the 1.3.10 (install now!) 
> > > setup but it freezes after reading .ini


> -Original Message-
> From: Robert Collins [mailto:[EMAIL PROTECTED]]
> Sent: 13 May 2002 13:19
> To: Sander Timmermans
> Subject: RE: cygwin setup freezes
> 
> 
> 1.3.10 is a cygwin version, not a setup version.
> 
> http://www.cygwin.com, the link "install cygwin now".
> 
> Please keep conversation on-list.
> 
> ROb
> 
> > -Original Message-
> > From: Sander Timmermans [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, May 13, 2002 9:18 PM
> > To: Robert Collins
> > Subject: RE: cygwin setup freezes
> > 
> > 
> > A setup newer than 1.3.10? Where ?
> > I cannot build I have no cygwin.
> > 
> > Sander
> > 
> > > -Original Message-
> > > From: Robert Collins [mailto:[EMAIL PROTECTED]]
> > > Sent: 13 May 2002 12:36
> > > To: Sander Timmermans; [EMAIL PROTECTED]
> > > Subject: RE: cygwin setup freezes
> > > 
> > > 
> > > The setup.exe versions are not linked to the cygwin1.dll versions. 
> > > Download a new setup.exe and it should be ok.
> > > 
> > > Rob
> > > 
> > > > -Original Message-
> > > > From: Sander Timmermans [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, May 13, 2002 7:31 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: cygwin setup freezes
> > > > 
> > > > 
> > > > Well, as I cannot build myself a new setup I tried the
> > > > internet install once more. I used the 1.3.10 (install now!) 
> > > > setup but it freezes after reading .ini /me whacks monitor 
> > > > with keyboard
> > > > 
> > > > Sander
> > > > 
> > > > > -Original Message-
> > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > > > > Behalf Of Sander Timmermans
> > > > > Sent: 08 May 2002 11:35
> > > > > To: Robert Collins; Sander Timmermans; Jack Tan; 
> > [EMAIL PROTECTED]
> > > > > Subject: RE: cygwin setup freezes
> > > > >
> > > > >
> > > > > Yes, yes!
> > > > >
> > > > > > -Original Message-
> > > > > > From: Robert Collins [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: 08 May 2002 11:27
> > > > > > To: Sander Timmermans; Jack Tan; [EMAIL PROTECTED]
> > > > > > Subject: RE: cygwin setup freezes
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: Sander Timmermans [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: Wednesday, May 08, 2002 7:28 PM
> > > > > > > To: Jack Tan; [EMAIL PROTECTED]
> > > > > > > Subject: RE: cygwin setup freezes
> > > > > > >
> > > > > > >
> > > > > > > The problem got worse, now it doesn't even go to the package
> > > > > > > selection screen. The only thing I see is a frozen 
> > window that 
> > > > > > > says: this space intentionally left blank. I think I 
> > > > must give up
> > > > > > > on cygwin.
> > > > > >
> > > > > > Have you downloaded the new setup??
> > > > > >
> > > > > > Rob
> > > > > >
> > > > >
> > > > > --
> > > > > 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/
> > > > >
> > > > >
> > > > 
> > > > 
> > > > --
> > > > 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/
> > > > 
> > > > 
> > > 
> > 
> 

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




Re: cp.ese bug report -- possible fix?

2002-05-13 Thread Corinna Vinschen

On Sun, May 12, 2002 at 01:39:01PM -0400, Charles Wilson wrote:
> Christopher Faylor wrote:
> 
> >On Sat, May 11, 2002 at 07:39:42PM -0400, Charles Wilson wrote:
> >
> >>Well, I've attached a patch for this bug.  However, it uncovered another 
> >>problem with 'cp -p src dest', when src is not owned by the current user.
> >>
> >
> >If the system UID is 18 then maybe cygwin should be translating that to 0.
> >Especially if 0 has no meaning to windows.
> 
> Perhaps.  I just followed the example set by Corinna's changes to 
> inetutils.  It might make sense to have cygwin1.dll translate UID=18 to 
> UID=0.  This would subsequently require:

It doesn't make sense.  The problem in NT is that you have a user
called SYSTEM with RID 18 which you (under normal circumstances) can't
login to and which has devine permissions.  And another user called
Administrator with RID 500 which is sort of a natural representation
of a superuser which has only nearly devine permissions.  OTOH,
nobody holds you back to create any number of additional users with
the same permissions which is the group Administrators, RID 544,
by default.  Also there's no problem in creating another group with
any RID and with the same permissions.  Or changing the local or
global security policy to allow or disallow single user rights for
any user, including Administrator or one of it's clones.

The only reason to use the uid 18 in, say, cron is, that I made
the decision to use it and to document that cron is designed to
run under SYSTEM account in Cygwin.

I don't think that it makes at all sense to use somethink like

  myuid == SOME_UID

in a cp(1) implementation (and only barly in other applications).

I'd suggest to remove this part from the definition of DO_CHOWN
completely.  Otherwise, if you'd like to do it correctly in a
WinNT sort of sense, you'd have to check if the user is an
ADMIN user, roughly like that:

  BOOL
  is_admin (WCHAR username)
  {
PUSER_INFO_2 ui;
BOOL ret;

NetUserGetInfo(NULL, username, 2, &ui);
ret = (ui->usri2_priv == USER_PRIV_ADMIN);
NetApiBufferFree (ui);
return ret;
  }

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




RE: cygwin setup freezes

2002-05-13 Thread Robert Collins

Please tell us what version of setup you are running! It's on the first
page of the program!

Rob

> -Original Message-
> From: Sander Timmermans [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 9:32 PM
> To: [EMAIL PROTECTED]
> Subject: RE: cygwin setup freezes
> 
> 
> Quoting myself:
> > > > Well, as I cannot build myself a new setup I tried the internet 
> > > > install once more. I used the 1.3.10 (install now!) 
> setup but it 
> > > > freezes after reading .ini

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




Re: cygwin tcsh-related regression bug

2002-05-13 Thread Corinna Vinschen

On Thu, May 09, 2002 at 07:34:56PM -0700, C. J. wrote:
> 
> Cygwin 1.3.10 seems to generate a problem with filename completion in tcsh 
> that did not exist on cygwin 1.3.5-3.  If I have a file 'File.cpp' in a 
> directory, typing 'cp F[TAB]' at the prompt (where [TAB] represents the TAB 
> key) causes completion to 'cp File.cpp', but if I type 'cp X.cpp F[TAB]', 
> the 'F' is not completed to 'File.cpp', instead nothing happens.  It seems 

Try the same with `echo' instead of `cp'.  If that works (it's working
for me) it's one of the funny completion restrictions to pamper the
user.  Hint: cp a b would delete b if it exists...

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




Re: Problem with SSHD

2002-05-13 Thread Prentis Brooks

Just a quick question, is CYGWIN sent globally in your environment.  I
have seen this problem when CYGWIN is not in SYSTEM's environment with
ntsec enabled.  Probably not your problem, but at least something to
verify.


On Mon, 13 May 2002, Zeus [ISO-8859-1] Gómez Marmolejo wrote:

> Hi all,
> 
> I've searched all the historical messages of the list but I haven't find 
> any solution to my problem. Any help would be appreciated. I've 
> installed cygwin sshd in a W2k server box but I can't manage to start 
> it. When I run it as a service, I get the following error:
> 
> $ cygrunsrv -S sshd
> cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
> The service has not been started.
> 
> Viewing the logs, there's a couple of errors:
> $ cat /var/log/sshd.log
> @@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
> @@@
> Permissions 0644 for '/etc/ssh_host_key' are too open.
> It is recommended that your private key files are NOT accessible by others.
> This private key will be ignored.
> bad permissions: ignore key: /etc/ssh_host_key
> Could not load host key: /etc/ssh_host_key
> @@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
> @@@
> Permissions 0644 for '/etc/ssh_host_rsa_key' are too open.
> It is recommended that your private key files are NOT accessible by others.
> This private key will be ignored.
> bad permissions: ignore key: /etc/ssh_host_rsa_key
> Could not load host key: /etc/ssh_host_rsa_key
> @@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
> @@@
> Permissions 0644 for '/etc/ssh_host_dsa_key' are too open.
> It is recommended that your private key files are NOT accessible by others.
> This private key will be ignored.
> bad permissions: ignore key: /etc/ssh_host_dsa_key
> Could not load host key: /etc/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> Disabling protocol version 2. Could not load host key
> sshd: no hostkeys available -- exiting.
> 
> But, in this case when I do an ls of the /etc/ directory I get the 
> following:
> $ ls -las /etc
> total 139
>4 drwxrwxrwx5 Administ None 4096 May 12 10:22 .
>4 drwxrwxrwx   10 Administ None 4096 May  9 12:44 ..
>1 -rwxrwxrwx1 Administ None  280 May  9 12:44 group
>   86 -rwxrwxrwx1 Administ None88039 Mar  7 16:50 moduli
>1 -rwxrwxrwx1 Administ None  966 May 12 10:09 passwd
>4 drwxrwxrwx2 Administ None 4096 May  9 12:44 postinstall
>0 -rw-r--r--1 Administ None0 May 12 10:21 primes
>1 -rwxrwxrwx1 Administ None  386 May  9 12:44 profile
>0 drwxrwxrwx2 Administ None0 May  9 12:42 profile.d
>   16 drwxrwxrwx2 Administ None16384 May  9 12:43 setup
>1 -rw-rw-rw-1 Administ Administ  955 May  9 12:45 ssh_config
>1 -rw---1 SYSTEM   SYSTEM668 May  9 12:45 
> ssh_host_dsa_key
>1 -rw-r--r--1 Administ Administ  612 May  9 12:45 
> ssh_host_dsa_key.pub
>1 -rw---1 SYSTEM   SYSTEM537 May  9 12:44 ssh_host_key
>1 -rw-r--r--1 Administ Administ  341 May  9 12:44 
> ssh_host_key.pub
>1 -rw---1 SYSTEM   SYSTEM887 May  9 12:45 
> ssh_host_rsa_key
>1 -rw-r--r--1 Administ Administ  232 May  9 12:45 
> ssh_host_rsa_key.pub
>2 -rw-rw-rw-1 Administ Administ 1562 May 12 10:22 sshd_config
>   13 -rwxrwxrwx1 Administ None12306 Apr  3 17:11 termcap
> 
> The ssh_host*_key files have 0600 permissions and the logs are 
> incorrect. I have tried to change the owner of these files to 
> Administrator and run the service in the command line (as Administrator):
> $ /usr/sbin/sshd -D
> 
> The command succeeds but when I try to login, passwords doesn't match (I 
> suppose that sshd has to be run as SYSTEM account to authenticate 
> users). How can I solve this problem?
> 
> Windows 2000 acls shows that /etc/ssh_host*_key has the Everyone user 
> but no permissions with it. Can be this problem? I can't remove the 
> 'Everyone' user of the acl because the owner is SYSTEM and I would be 
> changing the ownership of the files... What should I do?
> 
> CYGWIN is set to "ntsec tty". Any thanks in advance.
> 
> 
> Zeus Gómez.
> 
> 
> --
> 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/
> 

-- 
Prentis Brooks  | [EMAIL PROTECTED] | 703-265-0914 | AIM: PrentisBrooks
Senior System Administrator - Web Infrastructure & Securit

RE: Is cygwin setup.exe really compatible to WinXP Pro ?

2002-05-13 Thread Robert Collins



> -Original Message-
> From: Ronald Andersson [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, May 12, 2002 2:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Is cygwin setup.exe really compatible to WinXP Pro ?
> 
> 
> Thanks Robert and Chris, but that didn't help after all...
> 
> In fact I got exactly the same results as before, including 
> the lockup after downloading setup.ini. (That file being 
> 98939 bytes long.)  So the problem remains unsolved.
> 
> Looking inside setup.ini, I note that it starts (apart from 
> comments) with the following two lines:
> 
> setup-timestamp: 1020997207
> setup-version: 2.194.2.26

Thanks. Chris has fixed that minor issue, but it's not the cause of your
problem :[.
 
Rob

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




RE: cygwin setup freezes

2002-05-13 Thread Robert Collins

Please use reply-to-list or reply-to-all.

> -Original Message-
> From: Sander Timmermans [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 9:54 PM
> To: Robert Collins
> Subject: RE: cygwin setup freezes
> 
> 
> Wow ! Progress :)
> Cygwin setup 2.218.2.4 now freezes after reading a package 
> list with the good ol' this space intentionally left blank.

What OS are you running? 
Please also try using a new local pacakge dir, or deleting your old one.

Rob

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




RE: cygwin setup freezes

2002-05-13 Thread Sander Timmermans

Win2000 SP2
As always, I deleted everyting I could find relating to any previous
installs.
Perhaps I am overlooking something that I must clean up first ?

Sander

> -Original Message-
> From: Robert Collins [mailto:[EMAIL PROTECTED]]
> Sent: 13 May 2002 13:59
> To: Sander Timmermans
> Cc: Cygwin
> Subject: RE: cygwin setup freezes
>
>
> Please use reply-to-list or reply-to-all.
>
> > -Original Message-
> > From: Sander Timmermans [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 9:54 PM
> > To: Robert Collins
> > Subject: RE: cygwin setup freezes
> >
> >
> > Wow ! Progress :)
> > Cygwin setup 2.218.2.4 now freezes after reading a package
> > list with the good ol' this space intentionally left blank.
>
> What OS are you running?
> Please also try using a new local pacakge dir, or deleting your old one.
>
> Rob
>


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




RE: cygwin setup freezes

2002-05-13 Thread Robert Collins



> -Original Message-
> From: Sander Timmermans [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 10:08 PM
> To: Robert Collins
> Cc: Cygwin
> Subject: RE: cygwin setup freezes
> 
> 
> Win2000 SP2
> As always, I deleted everyting I could find relating to any 
> previous installs. Perhaps I am overlooking something that I 
> must clean up first ?

I couldn't comment unless you tell me what you deleted.

Theoretically you shouldn't have to delete *anything* though..

Rob

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




RE: Cut and paste standard input and output

2002-05-13 Thread David Starks-Browning

> > Is there a way to mount /dev so one can see everything that's 
> > available there?
> 
> No.

This should certainly be in the FAQ.  I'll add it.

Regards,
David
(Cygwin FAQ maintainer)


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




RE: cygwin setup freezes

2002-05-13 Thread Sander Timmermans

The several download directories I created and any setup.ini files I could
find related to cygwin. But I think they were in those dirs.
2002/05/13 13:43:01 Starting cygwin install, version 2.218.2.4
2002/05/13 13:43:01 Current Directory: C:\Documents and
Settings\atimmer\Desktop
2002/05/13 13:43:30 Ending cygwin install

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Robert Collins
> Sent: 13 May 2002 14:08
> To: Sander Timmermans
> Cc: Cygwin
> Subject: RE: cygwin setup freezes
>
>
>
>
> > -Original Message-
> > From: Sander Timmermans [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 10:08 PM
> > To: Robert Collins
> > Cc: Cygwin
> > Subject: RE: cygwin setup freezes
> >
> >
> > Win2000 SP2
> > As always, I deleted everyting I could find relating to any
> > previous installs. Perhaps I am overlooking something that I
> > must clean up first ?
>
> I couldn't comment unless you tell me what you deleted.
>
> Theoretically you shouldn't have to delete *anything* though..
>
> Rob
>
> --
> 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/
>
>


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




Re: Problem with SSHD

2002-05-13 Thread Zeus Gómez Marmolejo

Yes, CYGWIN is a system variable, any suggestions?!?

Zeus.


Prentis Brooks wrote:

>Just a quick question, is CYGWIN sent globally in your environment.  I
>have seen this problem when CYGWIN is not in SYSTEM's environment with
>ntsec enabled.  Probably not your problem, but at least something to
>verify.
>
>
>On Mon, 13 May 2002, Zeus [ISO-8859-1] Gómez Marmolejo wrote:
>
>>Hi all,
>>
>>I've searched all the historical messages of the list but I haven't find 
>>any solution to my problem. Any help would be appreciated. I've 
>>installed cygwin sshd in a W2k server box but I can't manage to start 
>>it. When I run it as a service, I get the following error:
>>
>>$ cygrunsrv -S sshd
>>cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
>>The service has not been started.
>>
>>Viewing the logs, there's a couple of errors:
>>$ cat /var/log/sshd.log
>>@@@
>>@ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
>>@@@
>>Permissions 0644 for '/etc/ssh_host_key' are too open.
>>It is recommended that your private key files are NOT accessible by others.
>>This private key will be ignored.
>>bad permissions: ignore key: /etc/ssh_host_key
>>Could not load host key: /etc/ssh_host_key
>>@@@
>>@ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
>>@@@
>>Permissions 0644 for '/etc/ssh_host_rsa_key' are too open.
>>It is recommended that your private key files are NOT accessible by others.
>>This private key will be ignored.
>>bad permissions: ignore key: /etc/ssh_host_rsa_key
>>Could not load host key: /etc/ssh_host_rsa_key
>>@@@
>>@ WARNING: UNPROTECTED PRIVATE KEY FILE!  @
>>@@@
>>Permissions 0644 for '/etc/ssh_host_dsa_key' are too open.
>>It is recommended that your private key files are NOT accessible by others.
>>This private key will be ignored.
>>bad permissions: ignore key: /etc/ssh_host_dsa_key
>>Could not load host key: /etc/ssh_host_dsa_key
>>Disabling protocol version 1. Could not load host key
>>Disabling protocol version 2. Could not load host key
>>sshd: no hostkeys available -- exiting.
>>
>>But, in this case when I do an ls of the /etc/ directory I get the 
>>following:
>>$ ls -las /etc
>>total 139
>>   4 drwxrwxrwx5 Administ None 4096 May 12 10:22 .
>>   4 drwxrwxrwx   10 Administ None 4096 May  9 12:44 ..
>>   1 -rwxrwxrwx1 Administ None  280 May  9 12:44 group
>>  86 -rwxrwxrwx1 Administ None88039 Mar  7 16:50 moduli
>>   1 -rwxrwxrwx1 Administ None  966 May 12 10:09 passwd
>>   4 drwxrwxrwx2 Administ None 4096 May  9 12:44 postinstall
>>   0 -rw-r--r--1 Administ None0 May 12 10:21 primes
>>   1 -rwxrwxrwx1 Administ None  386 May  9 12:44 profile
>>   0 drwxrwxrwx2 Administ None0 May  9 12:42 profile.d
>>  16 drwxrwxrwx2 Administ None16384 May  9 12:43 setup
>>   1 -rw-rw-rw-1 Administ Administ  955 May  9 12:45 ssh_config
>>   1 -rw---1 SYSTEM   SYSTEM668 May  9 12:45 
>>ssh_host_dsa_key
>>   1 -rw-r--r--1 Administ Administ  612 May  9 12:45 
>>ssh_host_dsa_key.pub
>>   1 -rw---1 SYSTEM   SYSTEM537 May  9 12:44 ssh_host_key
>>   1 -rw-r--r--1 Administ Administ  341 May  9 12:44 
>>ssh_host_key.pub
>>   1 -rw---1 SYSTEM   SYSTEM887 May  9 12:45 
>>ssh_host_rsa_key
>>   1 -rw-r--r--1 Administ Administ  232 May  9 12:45 
>>ssh_host_rsa_key.pub
>>   2 -rw-rw-rw-1 Administ Administ 1562 May 12 10:22 sshd_config
>>  13 -rwxrwxrwx1 Administ None12306 Apr  3 17:11 termcap
>>
>>The ssh_host*_key files have 0600 permissions and the logs are 
>>incorrect. I have tried to change the owner of these files to 
>>Administrator and run the service in the command line (as Administrator):
>>$ /usr/sbin/sshd -D
>>
>>The command succeeds but when I try to login, passwords doesn't match (I 
>>suppose that sshd has to be run as SYSTEM account to authenticate 
>>users). How can I solve this problem?
>>
>>Windows 2000 acls shows that /etc/ssh_host*_key has the Everyone user 
>>but no permissions with it. Can be this problem? I can't remove the 
>>'Everyone' user of the acl because the owner is SYSTEM and I would be 
>>changing the ownership of the files... What should I do?
>>
>>CYGWIN is set to "ntsec tty". Any thanks in advance.
>>
>>
>>Zeus Gómez.
>>
>>
>>--
>>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/
>>
>



--
Unsubscribe info:  http://cygw

Note On Setup

2002-05-13 Thread Keen Wayne A Contr AFRL/MNGG

Depending on the users connection, the following note may or may not be
helpful.

When I bring up the Cygwin page here at work, the page is, most often, not
current.  This
is because, somewhere along the way, somebody is caching an older version of
the page.
If I try to grab setup from this older page, I run the risk it seems of
getting an older version
of setup.  The way I have found around this issue (which is NOT the fault of
Cygnus) is that
I will, pretty much automatically now, hit refresh several times and wait to
insure that I am
getting the newest page.

Sorry if this fits under the category of incredibly obvious.

Wayne Keen

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




FAQ Alert? (was Re: Problems in shm.cc from cvs)

2002-05-13 Thread Jason Tishler

On Sun, May 12, 2002 at 09:28:49PM -0400, Christopher Faylor wrote:
> On Sun, May 12, 2002 at 03:03:47PM -0700, Nicholas Wourms wrote:
> >I'm getting a bunch of sytax errors when I compile the latest cvs tree. 
> >Although I am aware that the tree is sometimes broken, I thought I'd call
> >attention to it.  I'm investigating the issue right now, but I don't know
> >how long I can spend on it.  Anyhow, I am using the latest cygwin install
> >to build the tools on.  This is where the compiler starts spitting out
> >garbage:
> >
> >../../../../src/winsup/cygwin/shm.cc:81: syntax error before `*'
> >[snip]
> 
> Jason Tishler has already suggested a possible cause for this problem:
> http://cygwin.com/ml/cygwin/2002-05/msg00639.html

Should the above become a FAQ?  At least, until cygipc goes away?

Jason

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




RE: Note On Setup

2002-05-13 Thread Robert Collins

Not the incredibly obvious, more the someone is running a broken proxy,
or more likely an intercepting proxy, upstream of you. Take them out and
shoot them.

intercepting proxies are evil (outside of the reverse proxy aka
accelerator scenario), and broken ones even more so.

MSIE - quite rightly - does not send proxy cache control headers when it
doesn't know about the presence of a cache, so it assumes it is getting
a real response from the server when it requests a IMS, and until you go
refresh, older squids (and most other intercepting proxies) will give
you a cache hit instead. This breaks your browsing experience, because
of the idiotic network admin that is breaking the TCP end to end rules.

Rob

> -Original Message-
> From: Keen Wayne A Contr AFRL/MNGG [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, May 13, 2002 11:25 PM
> To: '[EMAIL PROTECTED]'
> Subject: Note On Setup
> 
> 
> Depending on the users connection, the following note may or 
> may not be helpful.
> 
> When I bring up the Cygwin page here at work, the page is, 
> most often, not current.  This is because, somewhere along 
> the way, somebody is caching an older version of the page. If 
> I try to grab setup from this older page, I run the risk it 
> seems of getting an older version of setup.  The way I have 
> found around this issue (which is NOT the fault of
> Cygnus) is that
> I will, pretty much automatically now, hit refresh several 
> times and wait to insure that I am getting the newest page.
> 
> Sorry if this fits under the category of incredibly obvious.
> 
> Wayne Keen
> 
> --
> 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/
> 
> 

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




Re: Problem with SSHD

2002-05-13 Thread Corinna Vinschen

On Mon, May 13, 2002 at 03:08:18PM +0200, Zeus Gómez Marmolejo wrote:
> Yes, CYGWIN is a system variable, any suggestions?!?

Your /etc is writable to everyone.  Change the permissions to 0644.

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




FAQ Alert? (was Re: Problems in shm.cc from cvs)

2002-05-13 Thread David Starks-Browning

On Monday 13 May 02, Jason Tishler writes:
> > Jason Tishler has already suggested a possible cause for this problem:
> > http://cygwin.com/ml/cygwin/2002-05/msg00639.html
> 
> Should the above become a FAQ?  At least, until cygipc goes away?

Yes, I suppose so.  Thanks for bringing it to my attention.

David
(Cygwin FAQ maintainer)


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




where's control-o?

2002-05-13 Thread Tye Zdrojewski

Hello,

It appears that control-o is not reaching the shell through either the
console nor rxvt.  It seems like it is being caught by Windows.  This
is in-and-of-itself not such a big deal.  But if I'm using rxvt and hit
control-o while in a telnet session, the rxvt window is *toast*.  I did
this by accident a few times, and lost a few telnet sessions, due to my
frequent use of C-p and bad aim!  

A Win console w/ a telnet can survive, but still does not let a
control-o through.  

What is Winblows (or whoever) trying to do with the C-o?  Is there a
way to work around this (other than working on my aim)?

Thanks for any insights.

-Tye

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: where's control-o?

2002-05-13 Thread Tye Zdrojewski

I forgot to mention that the rxvt window comes back when I KILL the
telnet session.


--- Tye Zdrojewski <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> It appears that control-o is not reaching the shell through either
> the
> console nor rxvt.  It seems like it is being caught by Windows.  This
> is in-and-of-itself not such a big deal.  But if I'm using rxvt and
> hit
> control-o while in a telnet session, the rxvt window is *toast*.  I
> did
> this by accident a few times, and lost a few telnet sessions, due to
> my
> frequent use of C-p and bad aim!  
> 
> A Win console w/ a telnet can survive, but still does not let a
> control-o through.  
> 
> What is Winblows (or whoever) trying to do with the C-o?  Is there a
> way to work around this (other than working on my aim)?
> 
> Thanks for any insights.
> 
> -Tye
> 
> __
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> --
> 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/
> 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: Problem with SSHD

2002-05-13 Thread Stuart Brady

On Mon, 13 May 2002, Corinna Vinschen wrote:
> On Mon, May 13, 2002 at 03:08:18PM +0200, Zeus Gómez Marmolejo wrote:
> > Yes, CYGWIN is a system variable, any suggestions?!?
> 
> Your /etc is writable to everyone.  Change the permissions to 0644.

Either I'm missing something, or... 0755?
-- 
Stuart Brady


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




added mirror

2002-05-13 Thread Purdom, Rick W.

i mis-typed when i added a mirror and i cannot remove or correct the invalid
entry; or add the correct mirror.

This E-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended only
for the use of the Individual(s) named above.  If you are not the intended
recipient of this E-mail, or the employee or agent responsible for
delivering it to the intended recipient, you are hereby notified that any
dissemination or copying of this E-mail is strictly prohibited.  If you have
received this E-mail in error, please immediately notify us at (865)
374-4900 or notify us by E-mail at [EMAIL PROTECTED]

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




Re: Cygwin Python with a static Python library?

2002-05-13 Thread Jason Tishler

Gerrit,

On Sat, May 11, 2002 at 11:44:29PM +0200, Gerrit P. Haase wrote:
> Now I think:  What is the difference, to link against a .dll which
> exports the symbols or link against an executable which exports
> the symbols...?

Not much, but now you have one less DLL as a dependency.  It appears
to make people "freezing" Python scripts (into executables) happy. :,)

> Anyway, who wants to get a static libperl just needs to rebuild perl
> and there it is.

Unfortunately, Python with a static libpython needs some help during
the build process.  This issue has just become visible now that Python
has a "--disable-shared" configure option.  I have submitted a patch
(which has been accepted) to default to "--enable-shared" under Cygwin.
I currently have no plans to submit a patch to enable clean building of
Cygwin Python when configured with "--disable-shared".

Jason

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




Re: Problem with SSHD

2002-05-13 Thread Corinna Vinschen

On Mon, May 13, 2002 at 04:34:41PM +0100, Stuart Brady wrote:
> On Mon, 13 May 2002, Corinna Vinschen wrote:
> > On Mon, May 13, 2002 at 03:08:18PM +0200, Zeus Gómez Marmolejo wrote:
> > > Yes, CYGWIN is a system variable, any suggestions?!?
> > 
> > Your /etc is writable to everyone.  Change the permissions to 0644.
> 
> Either I'm missing something, or... 0755?

Sure.

Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Developermailto:[EMAIL PROTECTED]
Red Hat, Inc.

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




where's control-o?

2002-05-13 Thread David Starks-Browning

On Monday 13 May 02, Tye Zdrojewski writes:
> Hello,
> 
> It appears that control-o is not reaching the shell through either the
> console nor rxvt.  It seems like it is being caught by Windows.  This
> is in-and-of-itself not such a big deal.  But if I'm using rxvt and hit
> control-o while in a telnet session, the rxvt window is *toast*.  I did
> this by accident a few times, and lost a few telnet sessions, due to my
> frequent use of C-p and bad aim!  

This has been discussed in the mailing list archives.  You should find
a workaround there.  I plan to add something to the FAQ about this.

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




Re: where's control-o?

2002-05-13 Thread Tye Zdrojewski

Thanks.  A *search* of the list turned up nothing, but browsing the archives
and searching the lists of subject headers led me to the workaround you
mentioned.

Regards.

--- David Starks-Browning <[EMAIL PROTECTED]> wrote:
> On Monday 13 May 02, Tye Zdrojewski writes:
> > Hello,
> > 
> > It appears that control-o is not reaching the shell through either the
> > console nor rxvt.  It seems like it is being caught by Windows.  This
> > is in-and-of-itself not such a big deal.  But if I'm using rxvt and hit
> > control-o while in a telnet session, the rxvt window is *toast*.  I did
> > this by accident a few times, and lost a few telnet sessions, due to my
> > frequent use of C-p and bad aim!  
> 
> This has been discussed in the mailing list archives.  You should find
> a workaround there.  I plan to add something to the FAQ about this.
> 
> Regards,
> 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/
> 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




cygwin 1.3.10 + win2k + fat32 + chmod prob

2002-05-13 Thread Tim Gunter

Hi all-
 I recently upgraded my cygwin to 1.3.10, and have been having problems
getting chmod to work, although i am not sure if it was broken before this
upgrade or not, i do know that i have been able to use it successfully in
the past. When i use chmod, it doesnt change the permissions. if i use 
"chmod -v ..." it reports that it has changed the permissions, but when
i do an "ls -l" afterwards, the permissions remain unchanged.

 I am running Win2k from a fat32 partition _with_ ntsec set(i know this
is only supposed to work on ntfs partitions, but it definitely used to
work). I have tried changing the ntsec to ntea, and chmod still fails
to work properly. If possible, i would like to run with ntsec, as sshd
behaves a little better with it set.

any help would be appreciated
thanks
-tim

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




cvs problem

2002-05-13 Thread Michael Labhard

All:

CVS does not commit properly on my cygwin installation because it
changes permissions on repository directories to read-only.  Here are the
permission after doing chmod 777 on /usr/local/cvs/dde/client:

$ find /usr/local/cvs/dde -type d -exec ls -ld {} \;
drwxrwxrwx7 mel  None0 May 13 09:21 /usr/local/cvs/dde
drwxrwxrwx2 mel  None0 May 13 09:27
/usr/local/cvs/dde/client

Here is the cvs commit command:

mel@BORDERCOLLIE ~/projects/dde/client
$ cvs commit -m"Removed all pthread usage except for RunTest."
cvs commit: Examining .
Removing .DDEXmlRpcQueue.cpp.swp;
cvs [commit aborted]: cannot rename file
/usr/local/cvs/dde/client/,.DDEXmlRpcQu
eue.cpp.swp, to /usr/local/cvs/dde/client/.DDEXmlRpcQueue.cpp.swp,v:
Permission
denied


Here are the permissions on the same directory immediately after the cvs
commit command:

mel@BORDERCOLLIE ~/projects/dde/client
$ find /usr/local/cvs/dde -type d -exec ls -ld {} \;
drwxrwxrwx7 mel  None0 May 13 09:21 /usr/local/cvs/dde
dr--r--r--2 mel  None0 May 13 09:28
/usr/local/cvs/dde/client

I'm completely perplexed.  Anyone with any suggestions?  Thanks.

-- Michael







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




Re: cygwin 1.3.10 + win2k + fat32 + chmod prob

2002-05-13 Thread Randall R Schulz

Tim,

For FAT volumes, you need "ntea" (NT Extended Attributes) in your CYGWIN 
environment variable and you must be prepared for the creation of a large 
auxiliary data file that holds the attribute information that the file 
system itself does not.

As with "ntsec," "ntea" must be present in the CYGWIN environment variable 
_before_ the Cygwin DLL loads, so the Environment control panel is the 
place to set it. Thus it will _never work_ to set "ntea" from within a 
Cygwin application. If you have Cygwin processes running as services, then 
put the CYGWIN setting in the System environment, not just a per-user 
environment.


Randall Schulz
Mountain View, CA USA



At 09:36 2002-05-13, Tim Gunter wrote:
>Hi all-
>
>I recently upgraded my cygwin to 1.3.10, and have been having problems 
>getting chmod to work, although I am not sure if it was broken before this 
>upgrade or not, I do know that I have been able to use it successfully in 
>the past. When I use chmod, it doesn't change the permissions. If I use 
>"chmod -v ..." it reports that it has changed the permissions, but when I 
>do an "ls -l" afterwards, the permissions remain unchanged.
>
>I am running Win2k from a fat32 partition _with_ ntsec set(i know this is 
>only supposed to work on ntfs partitions, but it definitely used to work). 
>I have tried changing the ntsec to ntea, and chmod still fails to work 
>properly. If possible, I would like to run with ntsec, as sshd behaves a 
>little better with it set.
>
>Any help would be appreciated.
>
>thanks
>-tim


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




Re: [PATCH] gettimeofday time travels

2002-05-13 Thread Christopher Faylor

On Mon, May 13, 2002 at 09:56:58AM +0100, Philip Aston wrote:
>
>Philip Aston writes:
> > Christopher Faylor writes:
> >  > The correct solution is to resync after events which cause the
> >  > clock to stop.
> > 
> > OK, I'll have a crack at this over the weekend following David's
> > hints.
>
>Short of some unexpected wParam values, which I'll track down, I now
>have this working.
>
>I have some design questions. Please help me ensure my patch is up to
>scratch..
>
>1. Currently I'm leveraging the event loop for the hidden window that
>is created for alarm and ualarm support (window.cc). This involves a
>call to gethwnd() create that window if it doesn't exist. I presume
>this is fine as the socket support does the same. Any objections?

If there is any way to avoid starting up the windows event-loop thread,
it should be investigated.  Normal cygwin apps do not start this thread
and so it should be avoided if possible.

>2. Should I implement a generic mechanism for listening to power
>events? Currently I've just added a static hires::reprime() method
>which is called on the appropriate power event.

General is always good.

>3. The reprime() method iterates over a linked list of hires objects.
>The hires ctor inserts a hires into this list. Do I need to worry
>about thread safety here? If so, what's a typical solution? I didn't
>see any handy thread safe list.

It may make sense to just make all of the members of the hires class
static since they are just maintaining global state.

>4. Similarly for the dtor - I'm planning to assert here, rather than
>faff with a double linked list. This means that hires's can never be
>deleted. OK?

There is no reason to delete hires as cygwin uses them.  However, to
answer your general question, a 'muto' is what is normally used
internally for locking.

cgf

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




Re: cygwin 1.3.10 + win2k + fat32 + chmod prob

2002-05-13 Thread Tim Gunter

On Mon, May 13, 2002 at 09:48:22AM -0700, Randall R Schulz wrote:
> Tim,
> 
> For FAT volumes, you need "ntea" (NT Extended Attributes) in your CYGWIN 
> environment variable and you must be prepared for the creation of a large 
> auxiliary data file that holds the attribute information that the file 
> system itself does not.
> 
> As with "ntsec," "ntea" must be present in the CYGWIN environment variable 
> _before_ the Cygwin DLL loads, so the Environment control panel is the 
> place to set it. Thus it will _never work_ to set "ntea" from within a 
> Cygwin application. If you have Cygwin processes running as services, then 
> put the CYGWIN setting in the System environment, not just a per-user 
> environment.
yup, ive tried "ntea". i set it in the windows system control panel as
a system variable, rebooted, and chmod still fails.

im a little mystified as to why it used to work in the first place(with ntsec
on a fat partition).

-tim

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




Re: cygwin setup freezes

2002-05-13 Thread Michael A Chase

On Mon, 13 May 2002 14:38:39 +0200 Sander Timmermans <[EMAIL PROTECTED]> wrote:

> The several download directories I created and any setup.ini files I
> could
> find related to cygwin. But I think they were in those dirs.
> 2002/05/13 13:43:01 Starting cygwin install, version 2.218.2.4
> 2002/05/13 13:43:01 Current Directory: C:\Documents and
> Settings\atimmer\Desktop
> 2002/05/13 13:43:30 Ending cygwin install

Try creating a directory off root like c;\Cygwin_Downloads that doesn't
have any spaces in the name, use that directory instead, and see if that
helps.  It shouldn't matter, but I've always been cautions about spaces in
names.  If it does help, it would be an interesting data point.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



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




Re: /cygdrive/c ==> //c

2002-05-13 Thread Larry Hall (RFK Partners, Inc)

At 03:00 PM 5/11/2002, David T-G wrote:
>Larry, et al --
>
>...and then Larry Hall (RFK Partners, Inc) said...
>% 
>% At 10:17 AM 5/10/2002, David T-G wrote:
>% >
>% >I enjoyed being able to cd to /// and was somewhat
>...
>% >to // (I can now change to /c/tmp or /d/data).  Is there any way to get
>% >back the double-slash behavior?
>...
>% 
>% No.  Your best bet is to stick with the // alternative,
>% if you don't like the "cygdrive" (or some other prefix).  "//" is generally
>
>It's just too long :-)
>


Change it to anything you like then with "mount".





>% 
>% There's no reason to be mucking around the registry either to make any of 
>% these kinds of changes.  That's why the mount command exists.
>
>Hmmm...  Maybe I'll look into that, then!  [*sigh* as soon as I find the
>cygintl dll, apparently...]
>
>Anyone want to break the suspense and tell me how it's useful to me?


The quickest source of information for this:

#mount --help
Usage: mount [OPTION] [ ]
   -b, --binary  text files are equivalent to binary files
 (newline = \n)
   -c, --change-cygdrive-prefix  change the cygdrive path prefix to 
   -f, --force   force mount, don't warn about missing mount
 point directories
   -i, --import-old-mounts copy  old registry mount table mounts into the current

 mount areas
   -p, --show-cygdrive-prefixshow user and/or system cygdrive path prefix
   -s, --system  add mount point to system-wide registry location

   -t, --text   (default)text files get \r\n line endings
   -u, --user   (default)add mount point to user registry location
   -x, --executable  treat all files under mount point as executables

   -X, --cygwin-executable   treat all files under mount point as cygwin
 executables
   -m, --mount-commands  write mount commands to replace user and
 system mount points and cygdrive prefixes



Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


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




Re: Cut and paste standard input and output

2002-05-13 Thread Chris January

> >>And don't forget the read/write capability ot /dev/clipboard.
> >>Rpb
>
>
> Is there a way to mount /dev so one can see everything that's available
> there?
Do you want there to be one? It shouldn't be too difficult to add one based
on the fhandler_virtual class. It would be a good excuse to add mount point
support to the class as well, although initially I suspect I'd hard-code it
at /dev.

Chris



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




Re: cygwin 1.3.10 + win2k + fat32 + chmod prob

2002-05-13 Thread Larry Hall (RFK Partners, Inc)

At 01:04 PM 5/13/2002, Tim Gunter wrote:
>On Mon, May 13, 2002 at 09:48:22AM -0700, Randall R Schulz wrote:
> > Tim,
> > 
> > For FAT volumes, you need "ntea" (NT Extended Attributes) in your CYGWIN 
> > environment variable and you must be prepared for the creation of a large 
> > auxiliary data file that holds the attribute information that the file 
> > system itself does not.
> > 
> > As with "ntsec," "ntea" must be present in the CYGWIN environment variable 
> > _before_ the Cygwin DLL loads, so the Environment control panel is the 
> > place to set it. Thus it will _never work_ to set "ntea" from within a 
> > Cygwin application. If you have Cygwin processes running as services, then 
> > put the CYGWIN setting in the System environment, not just a per-user 
> > environment.
>yup, ive tried "ntea". i set it in the windows system control panel as
>a system variable, rebooted, and chmod still fails.


OK, I guess you'll need to try debugging it with strace and/or gdb.


>im a little mystified as to why it used to work in the first place(with ntsec
>on a fat partition).


I share your mystification.  As near as I can tell, you must be mis-
remembering.  The "ntsec" setting has never affected FAT partitions.



Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


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




Re: cygwin 1.3.10 + win2k + fat32 + chmod prob

2002-05-13 Thread Tim Gunter

On Mon, May 13, 2002 at 01:35:26PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> At 01:04 PM 5/13/2002, Tim Gunter wrote:
> >On Mon, May 13, 2002 at 09:48:22AM -0700, Randall R Schulz wrote:
> > > Tim,
> > > 
> > > For FAT volumes, you need "ntea" (NT Extended Attributes) in your CYGWIN 
> > > environment variable and you must be prepared for the creation of a large 
> > > auxiliary data file that holds the attribute information that the file 
> > > system itself does not.
> > > 
> > > As with "ntsec," "ntea" must be present in the CYGWIN environment variable 
> > > _before_ the Cygwin DLL loads, so the Environment control panel is the 
> > > place to set it. Thus it will _never work_ to set "ntea" from within a 
> > > Cygwin application. If you have Cygwin processes running as services, then 
> > > put the CYGWIN setting in the System environment, not just a per-user 
> > > environment.
> >yup, ive tried "ntea". i set it in the windows system control panel as
> >a system variable, rebooted, and chmod still fails.
> 
> 
> OK, I guess you'll need to try debugging it with strace and/or gdb.
> 
> 
> >im a little mystified as to why it used to work in the first place(with ntsec
> >on a fat partition).
> 
> 
> I share your mystification.  As near as I can tell, you must be mis-
> remembering.  The "ntsec" setting has never affected FAT partitions.
im pretty certain i had ntsec set, as ssh was not complaining about the permissions
on my private key files, which it always does with ntea. i had set ntsec a long
time ago to make ssh work, and had never even tried ntea until this problem arose.
when i run with ntsec, ssh doesnt complain about the permissions on my keys, and
i can connect to and from my machine with public key encryption. i use chmod 
fairly often on bash scripts, perl scripts, etc...

here is what happens with ntea set:

"/home/tgun/tmp $ ls -lt test.c
-rw-r--r--1 tgun domain u  416 May 10 15:45 test.c
/home/tgun/tmp $ strace chmod a+w -v test.c >& chmod.strace
/home/tgun/tmp $ ls -lt test.c
-rw-r--r--1 tgun domain u  416 May 10 15:45 test.c"

attached is chmod.strace

ive noticed that strace returns several "unknown disk file" errors,
but chmod still prints out "mode of `test.c' changed to 0666 (rw-rw-rw-)"

"geterrno_from_win_error: windows error 2 == errno 2
geterrno_from_win_error: windows error 6 == errno 9"

thanks for the help
--tim


**
Program name: C:\cygwin\bin\chmod.exe (1960)
App version:  1001.8, api: 0.34
DLL version:  1003.10, api: 0.51
DLL build:2002-02-25 11:14
OS version:   Windows NT-5.0
Date/Time:2002-05-13 10:46:44
**
  7521427 [main] chmod 1960 environ_init: 0xA010420: ALLUSERSPROFILE=C:\Documents 
and Settings\All Users
  1771604 [main] chmod 1960 environ_init: 0xA010458: APPDATA=C:\Documents and 
Settings\tgun\Application Data
  1601764 [main] chmod 1960 environ_init: 0xA010498: COMMONPROGRAMFILES=C:\Program 
Files\Common Files
  1591923 [main] chmod 1960 environ_init: 0xA0104D0: COMPUTERNAME=TGUN
  1572080 [main] chmod 1960 environ_init: 0xA0104E8: 
COMSPEC=C:\WINNT\system32\cmd.exe
  1722252 [main] chmod 1960 parse_options: ntea 1
  1602412 [main] chmod 1960 parse_options: returning
   792491 [main] chmod 1960 environ_init: 0xA010510: CYGWIN=ntea
  1602651 [main] chmod 1960 getwinenv: can't set native for HOME= since no environ 
yet
  1772828 [main] chmod 1960 mount_info::conv_to_posix_path: conv_to_posix_path 
(C:\cygwin\home\tgun, no-keep-rel, no-add-slash)
   942922 [main] chmod 1960 normalize_win32_path: C:\cygwin\home\tgun = 
normalize_win32_path (C:\cygwin\home\tgun)
   943016 [main] chmod 1960 mount_info::conv_to_posix_path: /home/tgun = 
conv_to_posix_path (C:\cygwin\home\tgun)
  2713287 [main] chmod 1960 win_env::add_cache: posix /home/tgun
   813368 [main] chmod 1960 win_env::add_cache: native HOME=C:\cygwin\home\tgun
   803448 [main] chmod 1960 posify: env var converted to HOME=/home/tgun
  1563604 [main] chmod 1960 environ_init: 0xA010550: HOME=/home/tgun
  1603764 [main] chmod 1960 environ_init: 0xA010530: HOMEDRIVE=Z:
  1593923 [main] chmod 1960 environ_init: 0xA010690: HOMEPATH=\
  1584081 [main] chmod 1960 environ_init: 0xA0106A0: HOMESHARE=\\bytla1\Users\Tgun
  1584239 [main] chmod 1960 environ_init: 0xA0106C8: HOMEOFEIC=c:\Program\ 
Files\EiC
  1594398 [main] chmod 1960 environ_init: 0xA0106F0: INCLUDE=C:\Program 
Files\Intel\Compiler50\ia32\include;C:\Program Files\Microsoft Visual 
Studio\VC98\include;C:\Program Files\Microsoft Visual 
Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual Studio\VC98\include
  1644562 [main] chmod 1960 getwinenv: can't set native for LD_LIBRARY_PATH= since 
no environ yet
  1584720 [main] chmod 1960 mount_info::conv_to_posix_path: conv_to_posix_path 
(\usr\lib\mozilla:, no-keep-rel, no-add-slash)
   84

Re: Jason! rebinding problems idea...

2002-05-13 Thread Jason Tishler

Rob,

[Sorry for the sluggish response time...]

On Tue, Apr 30, 2002 at 08:10:50AM +0200, Ralf Habacker wrote:
> > > do they have INT's
> > > (Import Name Tables?) that are fully valid (no auto-import tricks etc
> > > etc)?

I'm afraid not, see below.

> > I believe so, but how do I check for sure?  I perused the output of
> > "objdump -p".  Should I have done something else?
> 
> with objdump -x ...
> 
> Standard import table are identified by two points.
> 
> 1. FirstThunk is greater than the HintTable entry.
> 2. The message "The Import Address Table is identical" is printed.
> 
> The Import Tables (interpreted .idata section contents)
>  vma:HintTime  Forward  DLL   First
>  Table   Stamp ChainName  Thunk
>  5000   5040   5148 5074
> 
> DLL Name: cygwin1.dll
> [snip]
> The Import Address Table is identical
> ^

For pq.dll, I get the following:

 vma:HintTime  Forward  DLL   First
 Table   Stamp ChainName  Thunk
 0001   00010040   00010630 0001014c

[snip]
The Import Address Table is identical
^

So, the rebase problem seems to be caused by something else.

Jason

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




Cygwin CD question

2002-05-13 Thread William V. Nicholson


I notice from the information on the Redhat website and in the FAQ that
there is no Cygwin CD.  I am interested in using Cygwin; but I don't
believe I require the Cygwin license for my applications.  I have
previously used Cygwin by downloading it; but I encountered some
difficulties with the setup program, especially for downloading source
code.  (It crashed when I chose the source code option for some packages.)
Actually, one reason that I am interested in using Cygwin is in order to
run free integrity checking software like Tripwire and ViperDB that works
under Unix.  (There is a Tripwire for Windows; but it isn't free.)  There
are security issues with downloading Cygwin before installing ViperDB or
similar software under Cygwin and that is why I am interested in obtaining
Cygwin by CD.  (My current workaround is just to download Cygwin using the
fastest connection available and then burn a CD although that doesn't
solve the problem with downloading source code),
William Nicholson


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




Re: Cygwin CD question

2002-05-13 Thread Larry Hall (RFK Partners, Inc)

At 02:31 PM 5/13/2002, William V. Nicholson wrote:

>I notice from the information on the Redhat website and in the FAQ that
>there is no Cygwin CD.  I am interested in using Cygwin; but I don't
>believe I require the Cygwin license for my applications.  I have
>previously used Cygwin by downloading it; but I encountered some
>difficulties with the setup program, especially for downloading source
>code.  (It crashed when I chose the source code option for some packages.)


If you haven't tried it recently, try it again.  Report specifics of any
problems you may encounter here.


>Actually, one reason that I am interested in using Cygwin is in order to
>run free integrity checking software like Tripwire and ViperDB that works
>under Unix.  (There is a Tripwire for Windows; but it isn't free.)  


You must realize that Cygwin doesn't allow you to run a generic UNIX binary,
right?  Cygwin is a layer over Win32 providing a POSIX environment, not a 
UNIX binary emulator.


>There
>are security issues with downloading Cygwin before installing ViperDB or
>similar software under Cygwin and that is why I am interested in obtaining
>Cygwin by CD.  (My current workaround is just to download Cygwin using the
>fastest connection available and then burn a CD although that doesn't
>solve the problem with downloading source code),


Actually, if you're having some problem with setup that can't be solved, you
can download Cygwin in it's entirety using wget or similar tools.  From that,
you can burn a CD and/or install locally.  Anyone providing such a CD to you
would take a similar approach.



Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


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




Re: Cygwin CD question

2002-05-13 Thread Harold L Hunt

William,

Your post makes close to no sense.

> I am interested in using Cygwin; but I don't
> believe I require the Cygwin license for my applications.  

Huh?  Explain that one... no wait I'll spare us all: don't explain that one.

> I have
> previously used Cygwin by downloading it; but I encountered some
> difficulties with the setup program, especially for downloading source
> code.

Then try downloading again.  Select a different mirror site this time and 
make sure that you have the latest setup.exe: http://cygwin.com/setup.exe

> There
> are security issues with downloading Cygwin before installing ViperDB or
> similar software under Cygwin and that is why I am interested in obtaining
> Cygwin by CD.

What?!?  Security issues?!?

If you need Cygwin on a CD I'll be glad to sell the service of creating one 
for you for $300.  Cash or check.  No COD.

> My current workaround is just to download Cygwin using the
> fastest connection available and then burn a CD although that doesn't
> solve the problem with downloading source code)

It sure does solve the problem.  Choose the "Download from Internet" option 
on the second screen of setup.  Set the package directory to a temporary 
directory that contains setup.exe, then burn that directory to a CD.  Problem 
solved.


Harold




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




Re: Cygwin CD question

2002-05-13 Thread Harold L Hunt

Larry,

Geez, you forgot to offer to sell him the Brooklyn Bridge, like I did :)

Harold

"Larry Hall (RFK Partners, Inc)" <[EMAIL PROTECTED]> said:

> At 02:31 PM 5/13/2002, William V. Nicholson wrote:
> 
> >I notice from the information on the Redhat website and in the FAQ that
> >there is no Cygwin CD.  I am interested in using Cygwin; but I don't
> >believe I require the Cygwin license for my applications.  I have
> >previously used Cygwin by downloading it; but I encountered some
> >difficulties with the setup program, especially for downloading source
> >code.  (It crashed when I chose the source code option for some packages.)
> 
> 
> If you haven't tried it recently, try it again.  Report specifics of any
> problems you may encounter here.
> 
> 
> >Actually, one reason that I am interested in using Cygwin is in order to
> >run free integrity checking software like Tripwire and ViperDB that works
> >under Unix.  (There is a Tripwire for Windows; but it isn't free.)  
> 
> 
> You must realize that Cygwin doesn't allow you to run a generic UNIX binary,
> right?  Cygwin is a layer over Win32 providing a POSIX environment, not a 
> UNIX binary emulator.
> 
> 
> >There
> >are security issues with downloading Cygwin before installing ViperDB or
> >similar software under Cygwin and that is why I am interested in obtaining
> >Cygwin by CD.  (My current workaround is just to download Cygwin using the
> >fastest connection available and then burn a CD although that doesn't
> >solve the problem with downloading source code),
> 
> 
> Actually, if you're having some problem with setup that can't be solved, you
> can download Cygwin in it's entirety using wget or similar tools.  From 
that,
> you can burn a CD and/or install locally.  Anyone providing such a CD to you
> would take a similar approach.
> 
> 
> 
> Larry Hall  [EMAIL PROTECTED]
> RFK Partners, Inc.  http://www.rfk.com
> 838 Washington Street   (508) 893-9779 - RFK Office
> Holliston, MA 01746 (508) 893-9889 - FAX
> 
> 
> --
> 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/
> 
> 




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




Re: Jason! rebinding problems idea...

2002-05-13 Thread Jason Tishler

Rob,

On Mon, May 13, 2002 at 02:29:49PM -0400, Jason Tishler wrote:
> On Tue, Apr 30, 2002 at 08:10:50AM +0200, Ralf Habacker wrote:
> > > > do they have INT's
> > > > (Import Name Tables?) that are fully valid (no auto-import tricks etc
> > > > etc)?
> 
> I'm afraid not, see below.

Doh!  I'm meant to say, "I'm afraid so." above -- the INTs are fully
valid.  Sorry for the confusion.

Jason

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




Re: Cygwin CD question

2002-05-13 Thread Larry Hall (RFK Partners, Inc)

I knew I forgot something!  I'll never make it as a salesman... ;-)

Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


At 02:53 PM 5/13/2002, Harold L Hunt wrote:
>Larry,
>
>Geez, you forgot to offer to sell him the Brooklyn Bridge, like I did :)
>
>Harold
>
>"Larry Hall (RFK Partners, Inc)" <[EMAIL PROTECTED]> said:
>
> > At 02:31 PM 5/13/2002, William V. Nicholson wrote:
> > 
> > >I notice from the information on the Redhat website and in the FAQ that
> > >there is no Cygwin CD.  I am interested in using Cygwin; but I don't
> > >believe I require the Cygwin license for my applications.  I have
> > >previously used Cygwin by downloading it; but I encountered some
> > >difficulties with the setup program, especially for downloading source
> > >code.  (It crashed when I chose the source code option for some packages.)
> > 
> > 
> > If you haven't tried it recently, try it again.  Report specifics of any
> > problems you may encounter here.
> > 
> > 
> > >Actually, one reason that I am interested in using Cygwin is in order to
> > >run free integrity checking software like Tripwire and ViperDB that works
> > >under Unix.  (There is a Tripwire for Windows; but it isn't free.)  
> > 
> > 
> > You must realize that Cygwin doesn't allow you to run a generic UNIX binary,
> > right?  Cygwin is a layer over Win32 providing a POSIX environment, not a 
> > UNIX binary emulator.
> > 
> > 
> > >There
> > >are security issues with downloading Cygwin before installing ViperDB or
> > >similar software under Cygwin and that is why I am interested in obtaining
> > >Cygwin by CD.  (My current workaround is just to download Cygwin using the
> > >fastest connection available and then burn a CD although that doesn't
> > >solve the problem with downloading source code),
> > 
> > 
> > Actually, if you're having some problem with setup that can't be solved, you
> > can download Cygwin in it's entirety using wget or similar tools.  From 
>that,
> > you can burn a CD and/or install locally.  Anyone providing such a CD to you
> > would take a similar approach.
> > 
> > 
> > 
> > Larry Hall  [EMAIL PROTECTED]
> > RFK Partners, Inc.  http://www.rfk.com
> > 838 Washington Street   (508) 893-9779 - RFK Office
> > Holliston, MA 01746 (508) 893-9889 - FAX
> > 
> > 
> > --
> > 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/
> > 
> > 
>
>
>
>
>--
>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/


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




RE: apache and php4 out-of-the-box

2002-05-13 Thread Heribert Dahms

Hi Michael!

c:\>net helpmsg 126

The specified module could not be found.

Bye, Heribert ([EMAIL PROTECTED])

> -Original Message-
> From: Michael Kunze [SMTP:[EMAIL PROTECTED]]
> Sent: Saturday, May 11, 2002 21:00
> To:   [EMAIL PROTECTED]
> Subject:  apache and php4 out-of-the-box
> 
> hello,
> i've tried to install apache with php4.
> the setup and postinatlled run fine so far but when i try to stat apache i
> get the following:
> 
> ~$ /usr/sbin/apachectl start
> Syntax error on line 236 of /etc/apache/httpd.conf:
> Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error
> 126
> /usr/sbin/apachectl start: httpd could not be started
> 
> what the heck is error126?
> 
> michael
> 
> 
> 
> 
> 
> 
> 
> --
> 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/

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




Re: Cygwin CD question

2002-05-13 Thread William V. Nicholson


Okay, thank you very much.  I will tell you if I have problems with the
setup program, especially with downloading the Cygwin packages' source
code,
William



On Mon, 13 May 2002, Larry Hall (RFK Partners, Inc) wrote:

> At 02:31 PM 5/13/2002, William V. Nicholson wrote:
>
> >I notice from the information on the Redhat website and in the FAQ that
> >there is no Cygwin CD.  I am interested in using Cygwin; but I don't
> >believe I require the Cygwin license for my applications.  I have
> >previously used Cygwin by downloading it; but I encountered some
> >difficulties with the setup program, especially for downloading source
> >code.  (It crashed when I chose the source code option for some packages.)
>
>
> If you haven't tried it recently, try it again.  Report specifics of any
> problems you may encounter here.
>
>
> >Actually, one reason that I am interested in using Cygwin is in order to
> >run free integrity checking software like Tripwire and ViperDB that works
> >under Unix.  (There is a Tripwire for Windows; but it isn't free.)
>
>
> You must realize that Cygwin doesn't allow you to run a generic UNIX binary,
> right?  Cygwin is a layer over Win32 providing a POSIX environment, not a
> UNIX binary emulator.
>
>
> >There
> >are security issues with downloading Cygwin before installing ViperDB or
> >similar software under Cygwin and that is why I am interested in obtaining
> >Cygwin by CD.  (My current workaround is just to download Cygwin using the
> >fastest connection available and then burn a CD although that doesn't
> >solve the problem with downloading source code),
>
>
> Actually, if you're having some problem with setup that can't be solved, you
> can download Cygwin in it's entirety using wget or similar tools.  From that,
> you can burn a CD and/or install locally.  Anyone providing such a CD to you
> would take a similar approach.
>
>
>
> Larry Hall  [EMAIL PROTECTED]
> RFK Partners, Inc.  http://www.rfk.com
> 838 Washington Street   (508) 893-9779 - RFK Office
> Holliston, MA 01746 (508) 893-9889 - FAX
>
>


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




Re: Cygwin CD question

2002-05-13 Thread William V. Nicholson


The point is that if you are really paranoid about these things then
someone might slip in a trojan or backdoor while you are downloading
Cygwin.  Obviously, if you subsequently set up an integrity tool then your
system together with the backdoor would check out as okay (possibly until
it got infected with a second backdoor or whatever).
I don't really have those kind of security requirements but I like to do
things right if I can; but I'll just accept that I have to download it,
Thanks,
William


On Mon, 13 May 2002, Harold L Hunt wrote:

>
> > There
> > are security issues with downloading Cygwin before installing ViperDB or
> > similar software under Cygwin and that is why I am interested in obtaining
> > Cygwin by CD.
>
> What?!?  Security issues?!?
>
> If you need Cygwin on a CD I'll be glad to sell the service of creating one
> for you for $300.  Cash or check.  No COD.
>
> > My current workaround is just to download Cygwin using the
> > fastest connection available and then burn a CD although that doesn't
> > solve the problem with downloading source code)
>
> It sure does solve the problem.  Choose the "Download from Internet" option
> on the second screen of setup.  Set the package directory to a temporary
> directory that contains setup.exe, then burn that directory to a CD.  Problem
> solved.
>
>
> Harold
>
>
>
>




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




RE: mkpasswd (Win2K) cannot find the domain controller

2002-05-13 Thread Heribert Dahms

Hi Corinna,

maybe Jerry should improve his patch to make it runtime selectable like
mkpasswd --use-netgetanydcname and provide another patch to document
that together with a changelog? Could probably still count as a 'small'
patch...

Bye, Heribert ([EMAIL PROTECTED])

> -Original Message-
> From: Corinna Vinschen [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, May 13, 2002 12:40
> To:   [EMAIL PROTECTED]
> Subject:  Re: mkpasswd (Win2K) cannot find the domain controller
> 
> On Wed, May 08, 2002 at 03:41:29PM -0400, Gerald S. Williams wrote:
> > Meanwhile, I'm wondering if a change similar to the patch
> > below should be made to mkpasswd.c?
> 
> I'm somewhat reluctant to apply that patch to mkpasswd.  The
> reason is... I don't know.  I recalled that I'd once changed
> from using NetGetAnyDCName() to NetGetDCName() for *some*
> reason.  I found the change in the ChangeLog, 2000-04-15.
> Unfortunately I don't remember what the exact problems with
> NetGetAnyDCName() were.  Sigh.
> 
> Corinna
> 
> > 
> > -Jerry
> > 
> > Index: mkpasswd.c
> > ===
> > RCS file: /cvs/src/src/winsup/utils/mkpasswd.c,v
> > retrieving revision 1.21
> > diff -u -r1.21 mkpasswd.c
> > --- mkpasswd.c  29 Apr 2002 10:21:54 -  1.21
> > +++ mkpasswd.c  8 May 2002 19:36:14 -
> > @@ -50,7 +50,7 @@
> >  return FALSE;
> >if (!(netlocalgroupenum = (void *) GetProcAddress (h,
> "NetLocalGroupEnum")))
> >  return FALSE;
> > -  if (!(netgetdcname = (void *) GetProcAddress (h, "NetGetDCName")))
> > +  if (!(netgetdcname = (void *) GetProcAddress (h, "NetGetAnyDCName")))
> >  return FALSE;
> >if (!(netusergetinfo = (void *) GetProcAddress (h,
> "NetUserGetInfo")))
> >  return FALSE;
> 

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




Re: cygwin CD question

2002-05-13 Thread Christopher Faylor

On Mon, May 13, 2002 at 02:11:08PM -0700, William V. Nicholson wrote:
>The point is that if you are really paranoid about these things then
>someone might slip in a trojan or backdoor while you are downloading
>Cygwin.  Obviously, if you subsequently set up an integrity tool then
>your system together with the backdoor would check out as okay
>(possibly until it got infected with a second backdoor or whatever).

So, the alternative is to trust that someone else has better security
than you do and trust their CD offering?

That doesn't sound paranoid enough to me.

All of the packages come with md5 checksums.  You should be able to
confirm that there are no problems with what you've downloaded by
comparing the checksums.

cgf

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




Fw: seeking crontab permissions workaround

2002-05-13 Thread Jason Travis

> Hello.  I have installed Cygwin 1.3.9 onto a Win32 box and have discovered
that
> when one used the command:
>
> cygrunsrv -I cron -d "Cygwin_CRON" -p /usr/sbin/cron -a '-D' -e
> "CYGWIN=ntsec"
> cygrunsrv -S cron
>
> to start the cron server instance we found that certain permission issues
> arise.  Specifically, the permissions for the ~/cron/tab directory
structure
> were such that even Administrators were unable to add entries into cron.
> Our immediate solution was to perform the following operations.  However
we
> would like to know if there is a way that we could 1) not use the
> "CYGWIN=ntsec" command-line parameter which would then 2) allow us to not
> have to perform the following operations in order to make the directory
> structure ~/cron/tab accessable to various users.
>
> Below is our work around for making the ~/cron/tab directory structure
> accessable to various users.
>
> Thank you in advance for your help and assistance.
>
> -Jason
>
> In Windows Explorer, change the directory (folder) to:
> ~\var\cron
> Right-click on the "Tabs" directory and go to "Properties":
> For Win2K: go to the:
> Security tab:
> 
> Scroll down the list of Users and add "Administrator"
> 
> Scroll down the list of Users and add "trendadm"
> 
>  - to add the Users
> Select the "Administrator" user under Name:, then check "Full Control"
> [Allow] under Permissions:
> Select the "trendadm" user under Name:, then check "Full Control" [Allow]
> under Permissions:
> 
> 
> For WinNT: go to the:
> Security tab:
> 
> 
>  - to "One of more of the items selected is a directory. Do you want
to
> replace the security information on all existing subdirectories within:
> C\TREND\PerVigil\var\tabs?"
> 
> Check both options of "Replace Permissions on [Subdirectories | Existing
> Files]
> 
> 
> Scroll down the list of Users and add "Administrator"
> NOTE: Not "Administrators"
> 
> Scroll down the list of Users and add "trendadm"
> 
> Change Type of Access: to "Full Control"
>  - to add the Users
> 
>  - to "Do you want to replace the security information on all
existing
> subdirectories within: C\TREND\PerVigil\var\tabs?"
> 
>


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




Problems handling Ctrl-C on dual-processor machine in cygwin

2002-05-13 Thread Sudheer Tumuluru

Hi,
I have a Perl script which encapsulates a Win32 application: it
does some pre-launch stuff, launches the Win32 application, waits for it
to terninate and then does some other stuff at the end. I am executing
this script from within Command-prompt (cmd.exe) on Windows 2000
Professional SP2(Cygwin 1.3.10-1).

  I have a single-processor box and it seems to handle Ctrl-C on
the embedded Win32 app. well: both from the bash shell and the
cmd-shell. The app. stops and Perl script continues execution. But on a
dual-processor box, the Win32 app. terminates cleanly but the Perl
script doesn't continue... it seems to be getting the signal as well;
and as a result terminates in the middle. I don't have problems doing
the same from the bash prompt (in cygwin on the same box), but only from
the cmd-prompt! Cannot reproduce it on a single-proc box at all.

Can somebody provide some insight into how to fix this
problem? Is it a problem with some cygwin configuration or a genuine bug
(of the interaction between Cygwin and the cmd.exe shell)?

Thanks in advance,
Sudheer Tumuluru



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




Re: Problems handling Ctrl-C on dual-processor machine in cygwin

2002-05-13 Thread Larry Hall (RFK Partners, Inc)

At 05:58 PM 5/13/2002, Sudheer Tumuluru wrote:
>Hi,
> I have a Perl script which encapsulates a Win32 application: it
>does some pre-launch stuff, launches the Win32 application, waits for it
>to terninate and then does some other stuff at the end. I am executing
>this script from within Command-prompt (cmd.exe) on Windows 2000
>Professional SP2(Cygwin 1.3.10-1).
>
>   I have a single-processor box and it seems to handle Ctrl-C on
>the embedded Win32 app. well: both from the bash shell and the
>cmd-shell. The app. stops and Perl script continues execution. But on a
>dual-processor box, the Win32 app. terminates cleanly but the Perl
>script doesn't continue... it seems to be getting the signal as well;
>and as a result terminates in the middle. I don't have problems doing
>the same from the bash prompt (in cygwin on the same box), but only from
>the cmd-prompt! Cannot reproduce it on a single-proc box at all.
>
> Can somebody provide some insight into how to fix this
>problem? Is it a problem with some cygwin configuration or a genuine bug
>(of the interaction between Cygwin and the cmd.exe shell)?


It's not a configuration issue.  As to whether it's a bug with Cygwin or
not, you're probably best reviewing the email archives for discussions about
signals and CTRL-C.  This will provide you the background you'll need if you
want to look more closely at this issue.  Signals and Win32 interaction with
them is a tricky area and not something that can be summed up in one email
message.

HTH,





Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


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




RE: Cygwin CD question

2002-05-13 Thread Robert Collins



> -Original Message-
> From: William V. Nicholson [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 14, 2002 7:11 AM
> To: Harold L Hunt
> Cc: [EMAIL PROTECTED]
> Subject: Re: Cygwin CD question
> 
> 
> 
> The point is that if you are really paranoid about these 
> things then someone might slip in a trojan or backdoor while 
> you are downloading Cygwin.  Obviously, if you subsequently 
> set up an integrity tool then your system together with the 
> backdoor would check out as okay (possibly until it got 
> infected with a second backdoor or whatever). I don't really 
> have those kind of security requirements but I like to do 
> things right if I can; but I'll just accept that I have to 
> download it, Thanks, William

You can look at the md5sums on the mirror sites and see if they match
what you downloaded.

You can also compare md5 sums across mirror sites - if they don't match,
somebody has twiddled something.

Rob

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




RE: added mirror

2002-05-13 Thread Robert Collins

Exit setup, and remove 'last-mirror' which can be found in your local
dir or in /etc/setup.

Rob

> -Original Message-
> From: Purdom, Rick W. [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 14, 2002 1:40 AM
> To: '[EMAIL PROTECTED]'
> Subject: added mirror
> 
> 
> i mis-typed when i added a mirror and i cannot remove or 
> correct the invalid entry; or add the correct mirror.
> 
> This E-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION 
> intended only for the use of the Individual(s) named above.  
> If you are not the intended recipient of this E-mail, or the 
> employee or agent responsible for delivering it to the 
> intended recipient, you are hereby notified that any 
> dissemination or copying of this E-mail is strictly 
> prohibited.  If you have received this E-mail in error, 
> please immediately notify us at (865) 374-4900 or notify us 
> by E-mail at [EMAIL PROTECTED]
> 
> --
> 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/
> 
> 

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




yet another SETUP FREEZES?

2002-05-13 Thread Ranal Sims

But mine doesn't really "freeze", so to speak -- it grabs 100% of the
CPU!

Windows XP Professional (on Athlon XP)

setup.log.full
--

2002/05/13 21:33:46 Starting cygwin install, version 2.218.2.4
2002/05/13 21:33:46 Current Directory: C:\Documents and
Settings\Randal\Desktop
2002/05/13 21:33:49 source: network install
2002/05/13 21:34:03 root: C:\cygwin binary system
2002/05/13 21:34:13 Ending cygwin install

last-cache
--

C:\dist\cygwin

last-mirror
---

ftp://planetmirror.com/pub/sourceware/cygwin

timestamp
-

1021273207

Randy.



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




Window Size

2002-05-13 Thread Eric Ng

May I know how I can expand the cygwin window size? do i use the 'BASH' 
command or something else?

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Cloning Kit!

2002-05-13 Thread LM

Clone your own profit-making Internet business in a single evening.

Try it yourself  tonight.For your instant "Internet Business- Cloning Kit" reply 
with the subject: 
Cloning Kit to: [EMAIL PROTECTED]
This is a business of sharing and you keep all the money that you receive...Also 
you find out 
what others are saying about this business, that it's 
being around for a few years...

If all you care about is to make money you are still at the right 
place.Sincerely...Leopoldo.

[EMAIL PROTECTED]

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




Cloning Kit!

2002-05-13 Thread LM

Clone your own profit-making Internet business in a single evening.

Try it yourself  tonight.For your instant "Internet Business- Cloning Kit" reply 
with the subject: 
Cloning Kit to: [EMAIL PROTECTED]
This is a business of sharing and you keep all the money that you receive...Also 
you find out 
what others are saying about this business, that it's 
being around for a few years...

If all you care about is to make money you are still at the right 
place.Sincerely...Leopoldo.

[EMAIL PROTECTED]

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




setup.exe local install with 2.218.2.4 fails, 2.78.2.15 works

2002-05-13 Thread A Kerr

With the current setup.exe 2.218.2.4 I successfully downloaded to my
local directory all Cygwin packages from ftp.nas.nasa.gov.  However when
installing from my local download directory, this version of setup.exe
"caused a stack fault in module MSVCRT.dll at 0177:78010618".  I was
unable to correct this after rebooting, uninstalling previous (older)
setup.exe installed Cygwin, rebooting, installing current MS library
update, rebooting etc.  I was installing  into "c:\cygwin", with options
"all users", and "unix file format".  The stack fault happened at the
actual install section of setup, but nothing was installed, and the
stack fault took about 5 minutes to occur, after setup had been running
at 100% cpu.

However when I switched to setup.exe version 2.78.2.15, it successfully
installed the same packages downloaded today by 2.218.2.4.  So the
problem appears to be in setup.exe 2.218.2.4, rather than the downloaded
packages or my system.

I'm running: Win98SE, all current MS patches/updates, IE6, etc, AMD
K6-2+

I'm willing to provide any other information to the developers if it
would 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/




Re: setup.exe local install with 2.218.2.4 fails, 2.78.2.15 works

2002-05-13 Thread Christopher Faylor

On Mon, May 13, 2002 at 11:58:35PM -0500, A Kerr wrote:
>With the current setup.exe 2.218.2.4 I successfully downloaded to my
>local directory all Cygwin packages from ftp.nas.nasa.gov.  However when
>installing from my local download directory, this version of setup.exe
>"caused a stack fault in module MSVCRT.dll at 0177:78010618".

I just uploaded a new version of setup.exe to sources.redhat.com a few
minutes ago.  It should work better.

cgf

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




RE: cygwin CD question

2002-05-13 Thread Gary R. Van Sickle

> On Mon, May 13, 2002 at 02:11:08PM -0700, William V. Nicholson wrote:
> >The point is that if you are really paranoid about these things then
> >someone might slip in a trojan or backdoor while you are downloading
> >Cygwin.  Obviously, if you subsequently set up an integrity tool then
> >your system together with the backdoor would check out as okay
> >(possibly until it got infected with a second backdoor or whatever).
> 
> So, the alternative is to trust that someone else has better security
> than you do and trust their CD offering?
> 
> That doesn't sound paranoid enough to me.

Like I always say, you can never be too paranoid.

Can you?

-- 
Gary R. Van Sickle
Brewer.  Patriot. 
;-)

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




RE: Cloning Kit!

2002-05-13 Thread Gary R. Van Sickle

Ah hell.  What a SUCKER I am!  I bought this guy's kit, and now I don't even
know which one is me.  But I pity the me who drank all my beer, because when I
find me I'll be in a heap of hurt, I can tell me that.

Well, it serves as an important lesson to us all: Only do business with from
reputable spammers.

--
Gary R. Van Sickle
Brewer.  Patriot.


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




cygwin installer needs cygwin1.dll

2002-05-13 Thread Nathan Sharfi

I tried downloading http://www.cygwin.com/setup.exe on 10PM PDT May 13 but
when I overwrote my 300K preexisting setup.exe with the new one (weighs in
at 157K) and ran it, it screamed with "the dynamic link library cygwin1.dll
could not be found in the specified path...". Did my preexisting install
hose something, or did a non-statically built release make it out into the
wild?

a cc would be appreciated since I'm not subscribed to the list.

Thanks!


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




Re: setup.exe local install with 2.218.2.4 fails, 2.78.2.15 works

2002-05-13 Thread Alan Dobkin

This new version (2.218.2.6) is the first release of setup.exe 
since the MD5 snapshots that doesn't suck up CPU and memory on 
W2K when installing from a local directory.  Unfortunately, it 
still doesn't work thouugh.  Now the window/process immediately 
disappears when it gets to the progress panel.  No logs are 
written.  If I run it with GDB, I get:

(gdb) run
Starting program: /cygdrive/C/Download/Cygwin/setupnew.exe
warning: LOG: 2 2002/05/14 01:25:31 Starting cygwin install, version
2.218.2.6
warning: LOG: 2 2002/05/14 01:25:31 Current Directory: c:\Download\Cygwin
warning: LOG: 2 2002/05/14 01:25:37 source: from cwd
warning: LOG: 2 2002/05/14 01:25:39 root: D:/cygwin binary system
warning: LOG: 2 2002/05/14 01:25:42 Selected local directory:
P:\Software\Windows\Cygwin
warning: LOG: 1 Found ini file - file://P:\Software\Windows\Cygwin/setup.ini

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 4124.0xf60]
0x6108d5f8 in ?? ()
(gdb) 

It seems that all of these bug reports are on Win2K and XP Pro.  
Has anyone successfully tested the recent setup.exe releases 
(since the MD5 updates) on either of these platforms?

Alan

--On Tuesday, May 14, 2002 1:13 AM -0400 Christopher Faylor
<[EMAIL PROTECTED]> wrote:

> On Mon, May 13, 2002 at 11:58:35PM -0500, A Kerr wrote:
>> With the current setup.exe 2.218.2.4 I successfully downloaded to my 
>> local directory all Cygwin packages from ftp.nas.nasa.gov.  However 
>> when installing from my local download directory, this version of 
>> setup.exe "caused a stack fault in module MSVCRT.dll at 0177:78010618".
> 
> I just uploaded a new version of setup.exe to sources.redhat.com 
> a few minutes ago.  It should work better.
> 
> cgf

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