Re: 1.5.24: setup.exe segfault

2007-05-04 Thread Igor Peshansky
On Sun, 8 Apr 2007, Igor Peshansky wrote:

> On Sun, 8 Apr 2007, Greg Chicares wrote:
>
> > On 2007-4-8 14:45 UTC, Igor Peshansky wrote:
> > > On Sun, 8 Apr 2007, Greg Chicares wrote:
> > >
> > >> I've run setup.exe numerous times this morning, and it segfaulted
> > >> only once. I tried again, but couldn't reproduce the problem.
> > [...]
> > > It doesn't look like you're running the latest snapshot of setup -- please
> > > try that (from ).
> > [...]
> > > If you can reproduce the crash with the latest snapshot, we could get a
> > > more accurate diagnosis with addr2line.
> >
> > I followed the link you gave, and downloaded this file:
> >   http://cygwin.com/setup/snapshots/setup-2.562.exe
> > It did not crash. It let me retrieve the package I wanted, then
> > successfully updated that package:
> >
> > /cygdrive/c/cygwin-cache[0]$cygcheck -s -v -r |grep mingw-runtime
> > mingw-runtime3.11-1
> > /cygdrive/c/cygwin-cache[0]$./setup-2.562.exe
> > /cygdrive/c/cygwin-cache[0]$cygcheck -s -v -r |grep mingw-runtime
> > mingw-runtime3.12-4
> >
> > Let me point out two small things:
> >
> > (1) The initial screen says "Copyright 2000-2006"; should it say
> > 2007 instead of 2006?
>
> Yep.  Thanks.
>
> > (2) When I did "Download Without Installing" as a separate step to
> > fetch this package, setup-2.562.exe terminated without showing the
> >   Cygwin Setup
> >   Download Complete
> >   OK
> > messagebox I've grown accustomed to seeing. Is the lack of that
> > messagebox a new feature? I mistook it for an abend; but, running
> > it under gdb, everything looked okay even though the messagebox
> > did not appear:
> >
> > /cygdrive/c/cygwin-cache[0]$gdb ./setup-2.562.exe
> > GNU gdb 6.5.50.20060706-cvs (cygwin-special)
> > [big snip]
> > warning: .ini setup_version is 2.510.2.2, our setup_version is 2.562
> > warning: LOG: 2 note: Download Complete
> > warning: LOG: 2 Ending cygwin install
> >
> > Program exited normally.
> > (gdb) q
>
> Ah, the message box was indeed removed, and the final message was folded
> into the screen that offered to create the desktop and start menu
> shortcuts.  However, what I missed was the fact that this screen is not
> shown in download-only mode.  Thanks for the report -- I'll fix this.

Ok, just to follow up.  This is now fixed in CVS.  The next setup snapshot
(>2.568) will show installation status as part of the final dialog.
Thanks again for testing.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Passwd for a specific nt group

2007-05-04 Thread Igor Peshansky
On Fri, 4 May 2007, Boffin, Stephane (GE Infra, Aviation, Non-GE) wrote:

> Hello all,
>
> I would like to run the mkpasswd only for a specific NT goup and for
> some specific users.
>
> In the man pages there is the -u option for specific users but this
> cammand returns "The user name could not be found" and I am usigin my
> login account is there something I am missing ?

If it's a domain user, you need the "-d" flag.

> Also how to I run this command for a specifig NT group of peoples ?

See "mkgroup --help".
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: setup.exe is REALLY old! (was: Updated: readline-5.0-4, libreadline6-5.0-4)

2007-05-04 Thread Brian Dessent
Matthew Woehlke wrote:

> I'm guessing he was referring to "I really wish we
> could get a new setup.exe release made official", in which case I second
> the sentiment. How long has it been since the current setup.exe was
> released, anyway? Um... judging my the may 2006 timestamp on my
> setup-2.529.exe (newer than the 2.510 that is still linked from
> cygwin.com), it's been more than a year.

A new release of setup.exe is currently blocking on the setup_legacy.ini
/ 1.7.0 forkage/splittage.

Brian

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Dan Armbrust on 5/4/2007 2:49 PM:
> $ getfacl /bin/sh.exe
> # file: /bin/sh.exe
> # owner: mn04swbuild-svc
> # group: Users
> user::rwx
> group::rwx
> group:SYSTEM:rwx
> group:Administrators:rwx
> mask:rwx
> other:rwx

Odd - no indication of restricted permissions for a non-owner.  Or maybe
it was just a failure of the bash postinstall script to properly update
/bin/sh.exe, perhaps because you had cygwin processes still running when
you originally ran setup.exe.

> 
> Seems ok - but I tried doing the copy as you suggested - and it worked
> from inside of bash - but now, low and behold, the problem has gone
> away!

Glad to hear it.

> 
> Thanks!  I've been fighting with this for way to long.  Do you suppose
> the sh.exe was just somehow corrupted?

I'm not sure sh.exe was corrupted, or just the permissions to access it;
but whatever it was, deleting it and starting over let correct permissions
be attached to the file.  And now that it's gone, we'll never know.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO55I84KuGfSFAYARAlQwAKC4E+z9IafdWtd8iotgGw/uk4UGzwCgyzBs
3sKv8+1gy5du+1zAltCwvK4=
=yxsM
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Updated: readline-5.0-4, libreadline6-5.0-4

2007-05-04 Thread Atzinger, Joseph
:::sigh:::

Sorry for the spam, folks.  Last you'll hear from me.

Joseph Atzinger
Sr. Software Engineer
Medrad, Inc

-Original Message-
From: Eric Blake [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 04, 2007 4:43 PM
To: Atzinger, Joseph; cygwin@cygwin.com
Subject: Re: Updated: readline-5.0-4, libreadline6-5.0-4

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What part of http://cygwin.com/acronyms/#PPIOSPE did you not understand?
Re-redirecting to the list.

According to Atzinger, Joseph on 5/4/2007 2:28 PM:
> Thanks for the response.
> 
> I definitely didn't have any cygwin shells open the first time I did 
> the upgrade (up to 4, at this point).  The log I sent you was from one

> where I happened to.  I did not reboot, however.

Not rebooting when asked to is asking for problems.  Just because it
seems to work sometimes does not mean you will have success every time.
On the other hand, if you already have all cygwin processes stopped
before running setup.exe, you will not need to reboot.

> 
> I'll try to upgrade back to the current version and ensure a reboot 
> occurs.  I'll let you know what happens.

One other thing to do would be to attach the output of 'cygcheck -svr'
as a text attachment, as directed here:
http://cygwin.com/problems.html

> 
> I feel your pain with slow release times.

Huh?  The problem here isn't slow release times (I posted readline 5.2.4
within 3 days of when it was released upstream).  Rather, it is the
length of time you let elapse before upgrading, and how many versions
you missed in between.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO5rS84KuGfSFAYARAszaAKDGrJX05z1b0tlAJw22apVX6/SBGQCgz0DW
raa1B+MZ9aVEIqBowl8uLhg=
=BazM
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Updated: readline-5.0-4, libreadline6-5.0-4

2007-05-04 Thread Atzinger, Joseph
First message board posting.  Thanks for  


Joseph Atzinger
Sr. Software Engineer
Medrad, Inc

-Original Message-
From: Eric Blake [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 04, 2007 4:43 PM
To: Atzinger, Joseph; cygwin@cygwin.com
Subject: Re: Updated: readline-5.0-4, libreadline6-5.0-4

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What part of http://cygwin.com/acronyms/#PPIOSPE did you not understand?
Re-redirecting to the list.

According to Atzinger, Joseph on 5/4/2007 2:28 PM:
> Thanks for the response.
> 
> I definitely didn't have any cygwin shells open the first time I did 
> the upgrade (up to 4, at this point).  The log I sent you was from one

> where I happened to.  I did not reboot, however.

Not rebooting when asked to is asking for problems.  Just because it
seems to work sometimes does not mean you will have success every time.
On the other hand, if you already have all cygwin processes stopped
before running setup.exe, you will not need to reboot.

> 
> I'll try to upgrade back to the current version and ensure a reboot 
> occurs.  I'll let you know what happens.

One other thing to do would be to attach the output of 'cygcheck -svr'
as a text attachment, as directed here:
http://cygwin.com/problems.html

> 
> I feel your pain with slow release times.

Huh?  The problem here isn't slow release times (I posted readline 5.2.4
within 3 days of when it was released upstream).  Rather, it is the
length of time you let elapse before upgrading, and how many versions
you missed in between.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO5rS84KuGfSFAYARAszaAKDGrJX05z1b0tlAJw22apVX6/SBGQCgz0DW
raa1B+MZ9aVEIqBowl8uLhg=
=BazM
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



setup.exe is REALLY old! (was: Updated: readline-5.0-4, libreadline6-5.0-4)

2007-05-04 Thread Matthew Woehlke

Eric Blake wrote:

According to Atzinger, Joseph on 5/4/2007 2:28 PM:

I feel your pain with slow release times.


Huh?  The problem here isn't slow release times [snip]


I'm guessing he was referring to "I really wish we
could get a new setup.exe release made official", in which case I second 
the sentiment. How long has it been since the current setup.exe was 
released, anyway? Um... judging my the may 2006 timestamp on my 
setup-2.529.exe (newer than the 2.510 that is still linked from 
cygwin.com), it's been more than a year.


--
Matthew
Current geek index: 62%


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Dan Armbrust

$ getfacl /bin/sh.exe
# file: /bin/sh.exe
# owner: mn04swbuild-svc
# group: Users
user::rwx
group::rwx
group:SYSTEM:rwx
group:Administrators:rwx
mask:rwx
other:rwx


Seems ok - but I tried doing the copy as you suggested - and it worked
from inside of bash - but now, low and behold, the problem has gone
away!

Thanks!  I've been fighting with this for way to long.  Do you suppose
the sh.exe was just somehow corrupted?

Dan

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Updated: readline-5.0-4, libreadline6-5.0-4

2007-05-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

What part of http://cygwin.com/acronyms/#PPIOSPE did you not understand?
Re-redirecting to the list.

According to Atzinger, Joseph on 5/4/2007 2:28 PM:
> Thanks for the response.
> 
> I definitely didn't have any cygwin shells open the first time I did the
> upgrade (up to 4, at this point).  The log I sent you was from one where
> I happened to.  I did not reboot, however.

Not rebooting when asked to is asking for problems.  Just because it seems
to work sometimes does not mean you will have success every time.  On the
other hand, if you already have all cygwin processes stopped before
running setup.exe, you will not need to reboot.

> 
> I'll try to upgrade back to the current version and ensure a reboot
> occurs.  I'll let you know what happens.

One other thing to do would be to attach the output of 'cygcheck -svr' as
a text attachment, as directed here:
http://cygwin.com/problems.html

> 
> I feel your pain with slow release times.

Huh?  The problem here isn't slow release times (I posted readline 5.2.4
within 3 days of when it was released upstream).  Rather, it is the length
of time you let elapse before upgrading, and how many versions you missed
in between.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO5rS84KuGfSFAYARAszaAKDGrJX05z1b0tlAJw22apVX6/SBGQCgz0DW
raa1B+MZ9aVEIqBowl8uLhg=
=BazM
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Updated: readline-5.0-4, libreadline6-5.0-4

2007-05-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

http://cygwin.com/acronyms/#PPIOSPE - redirecting to the list

You sure picked an awfully old message to reply to, seeing as how readline
is currently at 5.2.4-8, and I no longer support readline-5.0-4.

According to Atzinger, Joseph on 5/4/2007 1:55 PM:
> I ran into the rl_getenv_hook issue with the cygwin installation that
> was current on 5/4/07.  I had to reinstall 5.1-5 of libreadline6 to get
> things to work again.  Current was 5.2.4-8.
>  
> I didn't see anything resembling an error in the setup log, but it's
> attached anyway.

Here's a reason:

| 2007/05/04 15:46:44 Scheduled reboot replacement of file
C:\cygwin/bin//cygreadline6.dll with C:\cygwin/bin//cygreadline6.dll.new
| 2007/05/04 15:46:44 mbox note: In-use files have been replaced. You need
| to reboot as soon as possible to activate the new versions. Cygwin may
operate incorrectly until you reboot.

You upgraded cygwin without first shutting down all cygwin processes;
thus, cygreadline6.dll didn't get replaced in time, leading to the missing
entry point error messages.  Have you rebooted yet?  Is the problem still
occurring?  Have you used setup.exe to reinstall libreadline6, this time
with all cygwin processes stopped?

If you had been using the newer setup.exe snapshots, you would have been
properly warned (http://cygwin.com/setup/snapshots/).  I really wish we
could get a new setup.exe release made official.

>  
> Hope this helps in some way.
>  
> Joseph Atzinger
> Sr. Software Engineer
> Medrad, Inc
>  

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
volunteer cygwin readline maintainer
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO5W884KuGfSFAYARAi/oAKDQFMK7Ii8LyyXCQ5UfKkUt+a8WcgCcCRgB
JsiN4ZIy+X73y+vPiwE88/s=
=oLtK
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

According to Dan Armbrust on 5/4/2007 12:02 PM:
> Thats what I keep thinking - but all of my other tools are telling me
> it should be executeable:
> 
> $ ls -al /bin/sh.exe
> -rwxrwxrwx+ 1 mn04swbuild-svc Users 49152 May  3 14:54 /bin/sh.exe

The + on the end of the permissions states that ACLs are in effect; what
does 'getfacl /bin/sh.exe' show?  Maybe the easiest thing for you to do is
just delete /bin/sh.exe, then copy /bin/bash.exe back to /bin/sh.exe
(because of your permissions problems, I don't know if you will have
success doing it from inside bash, but doing it from Windows explorer
would also be an option); maybe by deleting and restoring /bin/sh.exe you
will get more reasonable permissions.

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGO5FK84KuGfSFAYARAsg1AJ4zgpFh+a/TOr4hMJFm+3ddBYELMQCgowzu
A2roIXs4vsZka5rSt5G3N3g=
=n/Mx
-END PGP SIGNATURE-

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Problem running Cygwin Apache2 as Windows XP service

2007-05-04 Thread William Sutton
First off, hi to all of you :}

Now for the problem...


PROBLEM

I cannot get Apache 2 under Windows XP Professional to run as a service using
cygrunsrv.  In the present configuration, when I attempt to run a simple
environment variables cgi script, the error log tells me:

| [Fri May 04 14:01:16 2007] [error] [client XXX.XXX.XXX.XXX] Symbolic link not
| allowed or link target not accessible: /srv/www/cgi-bin

I'm thinking that the presense of symlinked directories shouldn't matter since
the configuration works just fine when apachectl is manually run via an xterm.

I've tried this using the SYSTEM user, my user, real directories, etc., with
no luck.  From the command line, it works like a champ.  Run as a service, it
fails.

Any thoughts on what to do (details follow)?


CONFIGURATION


Software:
- Windows XP Professional version 2002, SP 2 (Intel core 2 duo)
- cygwin 1.5-24.2
- cygrunsrv 1.17-1
- apache2 2.2.3-1

Environment:
- Windows user is 'William Sutton'
- Cygwin user is 'william' (I changed the user and home directory in my
  cygwin /etc/passwd file for my convenience)
- Cygwin/X (I'm a *NIX guy, but need Windows too)

Apache Configuration:
- Apache is installed and runs properly when started from xterm via
  /usr/sbin/apachectl2 start (e.g., web pages load, cgi programs execute as
  expected, etc.)
- vhost in /srv
- mounting cgi-bin off a Samba export from a Linux box
- htdocs is local
- m{/var/log/apache2/([a-z]+.log)*}i are set to william:users, 0755 or 0644
- Service comfigured via
  cygrunsrv -I apache -d "CYGWIN apache" -p /usr/sbin/apachectl2 -a "start"
  (user set as the local 'William Sutton' user)

And in case anyone wonders why I need this to be running on Cygwin, I have to
generate some Word docs from a cgi script and I already have Cygwin installed.

-- 
William Sutton

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



ping returns success on failure

2007-05-04 Thread Richard Foulk
Ping returns zero (0) after a successful response from a remote host.

It returns one (1) if it's called with a unknown domain name -- a failure.

Unfortunately, it returns zero if the remote host exists but doesn't respond.

This seems like incorrect behavior to me and doesn't agree with ping on Linux.

This assumes ping is being directed not to loop forever (ping host 1 1 1).


Richard

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Dan Armbrust

Thats what I keep thinking - but all of my other tools are telling me
it should be executeable:

$ ls -al /bin/sh.exe
-rwxrwxrwx+ 1 mn04swbuild-svc Users 49152 May  3 14:54 /bin/sh.exe


Also, when I check the windows security permissions, 'everyone' is
granted full access.

It's like cygwin itself is preventing me from executing the file from
any other command run by cygwin.

Thanks,

Dan

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Jason Tishler
Dan,

On Fri, May 04, 2007 at 09:36:23AM -0500, Dan Armbrust wrote:
> [snip]
> >>>import os.path
> >>>os.popen('ls').readline()
> Traceback (most recent call last):
>  File "", line 1, in ?
> OSError: [Errno 13] Permission denied
> 
> What on earth happened?

The above indicates that /bin/sh.exe is not executable.  I can reproduce
the problem with the following:

$ python -c 'import os; os.popen("ls").readline()' # works
$ chmod -x /bin/sh.exe
$ python -c 'import os; os.popen("ls").readline()' # doesn't work
Traceback (most recent call last):
  File "", line 1, in 
OSError: [Errno 13] Permission denied
$ chmod +x /bin/sh.exe
$ python -c 'import os; os.popen("ls").readline()' # works again
$

> Any idea how I can fix this?

Make your Cygwin executables and DLLs executable.  You may have to use
Windows tools, if chmod is not executable...

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Dan Armbrust

Does this help shed any light?  I seem to have massive cygwin
permissions problems

$ whoami
mn04swbuild-svc
$ groups mn04swbuild-svc
/usr/bin/groups: Permission denied.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Dan Armbrust

Sorry, can you elaborate on how I cause use strace?

Thanks,

Dan

On 5/4/07, Felipe Alcacibar <[EMAIL PROTECTED]> wrote:

maybe you can apply an strace to see it?

cheers!



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Cygwin Problems on Vista (Install and others)

2007-05-04 Thread Dave Korn
On 04 May 2007 16:33, A B wrote:


> The servercheck log is attached.

Error: could not find -

Error: could not find v

Error: could not find -r


  Looks like you typo'd the commandline invocation to me.  Those were supposed
to be options.  The syntax should be 

cygcheck -svr

or

  cygcheck -s -v -r

but it looks to me like you put 

  cygcheck -s - v - r
   ^   ^
   |   |
bad spaces +---!


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: popen problems

2007-05-04 Thread Dave Korn
On 04 May 2007 15:36, Dan Armbrust wrote:


>  python
> Python 2.4.3 (#1, May 18 2006, 07:40:45)
> [GCC 3.3.3 (cygwin special)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
 import os.path
 os.popen('ls').readline()
> Traceback (most recent call last):
>   File "", line 1, in ?
> OSError: [Errno 13] Permission denied
> 
> 
> What on earth happened?

  No idea.  Can't reproduce in either console or rxvt, either with or without
CYGWIN=tty.
 
> Any idea how I can fix this?  

  Nope, not yet, need more information.  Please send your "cygcheck -svr"
output (as an attachment) and we'll take a look.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: popen problems

2007-05-04 Thread Jeff Hawk


> -Original Message-
> From: Dan Armbrust [mailto:Daniel dot armbrust dot list at gmail dot com]
> Sent: Friday, May 04, 2007 9:44 AM
> To: Jeff Hawk
> Subject: Re: popen problems
>
> python
> Python 2.5 (r25:51908, Mar 13 2007, 08:13:14)
> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os.path
> >>> os.popen('ls').readline()
> Traceback (most recent call last):
>   File "", line 1, in 
> OSError: [Errno 13] Permission denied
>
> This is inside of a rxvt window.

This works good for me.

--Jeff

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Dan Armbrust

python
Python 2.5 (r25:51908, Mar 13 2007, 08:13:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.

import os.path
os.popen('ls').readline()

Traceback (most recent call last):
 File "", line 1, in 
OSError: [Errno 13] Permission denied

This is inside of a rxvt window.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: popen problems

2007-05-04 Thread Dan Armbrust

I've tried both - I reran the installer and went back to the other
python it offered - 2.4.3 - I get the same problem with 2.5.



On 5/4/07, Jeff Hawk <[EMAIL PROTECTED]> wrote:



> -Original Message-
> From: On Behalf
> Of Dan Armbrust
> Sent: Friday, May 04, 2007 9:36 AM
> To: cygwin@cygwin.com
> Subject: popen problems
>
> I made the mistake of upgrading a cygwin install that was working.
>
> Now:
>
>  python
> Python 2.4.3 (#1, May 18 2006, 07:40:45)
> [GCC 3.3.3 (cygwin special)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os.path
> >>> os.popen('ls').readline()
> Traceback (most recent call last):
>   File "", line 1, in ?
> OSError: [Errno 13] Permission denied
>
>
> What on earth happened?
>
> Any idea how I can fix this?  I can't open anything with popen from
> python.
>


What did you actually upgrade?


The current python version in Cygwin is 2.5 (yours is 2.4.3)

--Jeff




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: popen problems

2007-05-04 Thread Jeff Hawk


> -Original Message-
> From: On Behalf
> Of Dan Armbrust
> Sent: Friday, May 04, 2007 9:36 AM
> To: cygwin@cygwin.com
> Subject: popen problems
>
> I made the mistake of upgrading a cygwin install that was working.
>
> Now:
>
>  python
> Python 2.4.3 (#1, May 18 2006, 07:40:45)
> [GCC 3.3.3 (cygwin special)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os.path
> >>> os.popen('ls').readline()
> Traceback (most recent call last):
>   File "", line 1, in ?
> OSError: [Errno 13] Permission denied
>
>
> What on earth happened?
>
> Any idea how I can fix this?  I can't open anything with popen from
> python.
>


What did you actually upgrade?


The current python version in Cygwin is 2.5 (yours is 2.4.3)

--Jeff


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



popen problems

2007-05-04 Thread Dan Armbrust

I made the mistake of upgrading a cygwin install that was working.

Now:

python
Python 2.4.3 (#1, May 18 2006, 07:40:45)
[GCC 3.3.3 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.

import os.path
os.popen('ls').readline()

Traceback (most recent call last):
 File "", line 1, in ?
OSError: [Errno 13] Permission denied


What on earth happened?

Any idea how I can fix this?  I can't open anything with popen from python.

Thanks,

Dan

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



how to play mp3 or ogg files ?

2007-05-04 Thread Didier BRETIN

Hi,

as I'm try to remove my XP applications with cygwin one, I'm now on the 
issue of playing mp3 files. Can I play mp3 or ogg files under cygwin ? 
If yes, with which packages ?


Regards.
--
Didier BRETIN
http://www.bretin.net/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin Problems on Vista (Install and others)

2007-05-04 Thread Morgan Gangwere

I forgot to ask. could you possibly ATTACH the file generated by
running "cygcheck -s - v -r >./cygdrive/c/cygwin_servercheck.log" -
it'll show up on the root of your C drive.

--
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Passwd for a specific nt group

2007-05-04 Thread Larry Hall (Cygwin)
Boffin, Stephane (GE Infra, Aviation, Non-GE) wrote:
>  
> Hello all,
> 
> I would like to run the mkpasswd only for a specific NT goup and for
> some specific users.
> 
> In the man pages there is the -u option for specific users but this
> cammand returns "The user name could not be found" and I am usigin my
> login account is there something I am missing ?


Please read and follow the problem reporting guidelines at the link below:



My WAG is your user is a domain user and you're not telling 'mkpasswd' to
look at the domain.  But that's just a WAG based on the available
information.


> Also how to I run this command for a specifig NT group of peoples ?





> --
> Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:   http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ:   http://cygwin.com/faq/
> 
> 


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

_

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

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin Problems on Vista (Install and others)

2007-05-04 Thread Morgan Gangwere

On 5/3/07, N Y  wrote:

I've read that some people can get Cygwin to run on Vista without
problems, but I've run into almost every reported problem.

I've trying to install Cygwin on my new Dell laptop for two days now.
Intel Centrino Duo with Vista Ultimate.  I'm installing for all users,
unix mode.  From category view, I'm installing all groups except for
audio, databases, games, and publishing.  I have the 2.510.2.2
setup.exe.  The installed cygwin1.dll is 1.5.24-cr-0x5f1.

First problem: hang on gnuplot.sh
I tried everything: run as administrator, setting the compatibility mode,
set the Windows PATH to include "C:\cygwin\bin" before running
setup.exe (via cmd shell), disabling UAC - nothing worked.
Finally I opened Task Manager and manually killed the bash process.
That kicked setup to continue.  Eventually I re-ran gnuplot.sh manually,
once I got bash running happily.

Second problem:
When I started the cygwin shell (via the desktop shortcut), I got this message

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

So I ran mkpaswd and mkgroup and that problem went away.


this isnt really a problem. its just cygwin wanting a /etc/passwd and
/etc/group that it likes, but they didnt get generated because of a
phase of the moon bug. (i get it with the user "admin" but not with
the user "user" - both exist on my machine)


Third problem:
Then I tried to click the startx shortcut on the desktop.  The xserver starts
but the xterm that comes with it never appears.  I tried startx from the cygwin
bash shell.  Sometimes it starts and an xterm appears.  and sometimes it
 exits right away.  I closed all cygwin apps and ran ash from cmd.exe,
ran rebaseall.  Now the startx works from the cygwin bash shell.


erm... the startx shortcut is _supposed_ to do that. you can run this
at a cygwin terminal or from a batch file for a child X window root
and twm:
X -display localhost:0 (blah) & (NOTE the "&" and YES it has to be
localhost. no 127.0.0.1 's - Hast Worked For Me.)
twm -display localhost:0 & (again, note the "&")


Fourth problem:
I wanted to quickly test my access to a remote system via rsh.
I open a cygwin bash shell and run "rsh [EMAIL PROTECTED] ls" and get back:
"12673 [main] rsh 4060 C:\cygwin\bin\rsh.exe: *** fatal error - couldn't dynami
cally determine load address for 'rcmd' (handle 0x7414), Win32 error 127
Hangup"


i dont do rsh but have you tried this from another computer (with say
PuTTY) - also, see if rsh's daemon is alive or if you need one.. i
install everything and usually I dont get a real rsh daemon, so i
compile the official one from source.


If anyone has any suggestions I'd love to hear it.

N

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/





--
Morgan gangwere

"Space does not reflect society, it expresses it." -- Castells, M.,
Space of Flows, Space of Places: Materials for a Theory of Urbanism in
the Information Age, in The Cybercities Reader, S. Graham, Editor.
2004, Routledge: London. p. 82-93.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Passwd for a specific nt group

2007-05-04 Thread Boffin, Stephane \(GE Infra, Aviation, Non-GE\)
 
Hello all,

I would like to run the mkpasswd only for a specific NT goup and for
some specific users.

In the man pages there is the -u option for specific users but this
cammand returns "The user name could not be found" and I am usigin my
login account is there something I am missing ?

Also how to I run this command for a specifig NT group of peoples ?

THANKS

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: network auth problems with public-key SSH login

2007-05-04 Thread Thorsten Kampe
* Larry Hall (Cygwin) (Thu, 03 May 2007 22:21:05 -0400)
> On 05/03/2007, Shankar Unni wrote:
> > Another one of those problems...
> > 
> > When I log in using SSH public-key authentication onto a Windows 2003 box, 
> > it sets up my LOGNAME correctly, but the USER is set to "sshd_server".
> > 
> > When I access a network share that requires domain logon credentials, the 
> > username it sees is "sshd_server", and it refuses access.. 
> 
> 
> Yup.  A known issue.  See the FAQ entry:
> 
>   Why can't my services access network shares?
>   

Also this is not just a Cygwin FAQ but also a Windows one. There it 
goes: "Why doesn't my batch script run from Task Scheduler? - when I 
run it manually it works just fine".

Thorsten


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: rsync hang

2007-05-04 Thread Frank Fesevur

Scott T. Marshall wrote:
I have been having some errors when using rsync to copy files from a 
remote cygwin machine to my local cygwin machine. I read posts the 
cygwin web forum. I have the same hang problem in that when I try to 
rsync (get) files from a remote machine rsync just hangs if any 
directory has what seems to be >100 files. Is there any fix for this 
yet? The posts I saw were from April of 2006, so I don't know if the 
problem is now solved or not.


No, unfortunately this problem is not solved. But the problem is not in 
rsync itself, but in the cygwin1.dll. See 
http://sourceware.org/ml/cygwin/2007-02/msg00643.html


I have looked at that code, but it is quite difficult stuff. And I'm 
having trouble compiling the cygwin.dll (downloaded the 1.5.24-2 sources 
via setup.exe), so I can't even give it a try at this moment. Although 
it is not the real compilation, but generating the docs :-S


But a lot of people have this problem. It becomes a FAQ.

Regards,
Frank


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Some Batch-Scripting-Problems under Windows

2007-05-04 Thread Daniel Spannbauer


Daniel Spannbauer wrote:
> Igor Peshansky wrote:
>   
>> On Thu, 3 May 2007, Daniel Spannbauer wrote:
>>
>>   
>> 
>>> Hello Igor,
>>> first of all Thanks for the answer.
>>>
>>> Igor Peshansky wrote:
>>> 
>>>   
 On Thu, 3 May 2007, Daniel Spannbauer wrote:

   
 
> Hello,
>
> we've build a Program for Cygwin to load some Firmware in some Hardware
> which is produced by us.
> The Firmwware is called file.tld. At the moment the USer has to open
> Cygwin, jumpd to the Path of the file.tld (for example: C:\Dokumente und
> Einstellungen\test\Eigene Dateien\tload) an run the program by "tload -l
> /dev/ttyS0 file.tld".
>
> This is very uncomfortable.
> Now I try to write a simple Batch-Script to do this automaticly, so you
> have just to douible-klick  on file.tld an the  Firmware is loaded over
> a predefined serial Line.
>
> The batch-Script looks as follows:
>
> LINE=/dev/ttyS0
> c:\Programme\cygwin\bin\bash -c "/bin/tload.exe -l %LINE% %1%"
>
> But this won't work couse "%1%" is still "C:\Dokumente und
> Einstellungen\test\Eigene Dateien\tload\file.tld" which isn't a 
> cygwin-Path.
> 
>   
 That's not even valid batch syntax.  You want

 set LINE=/dev/ttyS0
 c:\Programme\cygwin\bin\bash -c "/bin/tload.exe -l %LINE% %1"
   
 
>>> Thats clear, I simply don't wrote it.
>>>
>>> 
>>>   
> So I cahnged the script as follows:
>
> LINE=/dev/ttyS0
> c:\Programme\cygwin\bin\bash -c "/bin/tload.exe -l %LINE% '/bin/cygpath 
> -a -i %1%' "
>
> But this also don't work. couse "%1% has Double-Quots (") at first and
> last place.
>
> I think it is just a quoting-Problem.
> Any Ideas out there?
> 
>   
 Yes.  Use single quotes.  For example, the below should work:

 set LINE=/dev/ttyS0
 c:\cygwin\bin\bash -c '/bin/tload.exe -l %LINE% "`/bin/cygpath -a -i %1`"'

 (you need to quote the output of cygpath as well, as that may contain
 spaces).
   
 
>>> Ok, that works. But the Output of cygpath is "/cygdrive/c/Dokumente und
>>> Einstellungen/test/Eigene Dateien/tload/file.tld".
>>> Seems that our Program, tload.exe, has a Problemwith Blanks in the
>>> File-Name :(
>>> 
>>>   
>> Well, the above code runs /bin/tload, not your tload.  FWIW, /bin/tload is
>> a machine load visualizer from the procps package.
>>
>> If you didn't forget to put double quotes around the invocation of
>> cygpath, your program should get the whole filename as one argument in
>> argv.  If even in that case your tload does not not like spaces in
>> filenames, that's probably a bug in your code.
>>  Igor
>>   
>> 
>
> Its not a bug, its a Feature :)
> Linux also don't like Blanks in File-Names. So I think I have to put a
> Backslash bevor the Blanks.
> But how? With awk?
>
> Regards
>
> Daniel
>
>
>   

Ok, now the Batch looks as follows:

set PATH=C:\Programme\marco\cygwin\bin %PATH%
set LINE=/dev/ttyS0
c:\Programme\marco\cygwin\bin\bash -c '/bin/tload.exe -l %LINE% -I
/cygdrive/c:/Programme/marco/cygwin/usr/uti/include/tload -v SLOW=1
"`/bin/cygpath -a -i %1`"'
pause

With the Option -I set path to the Include-Files for Tload is set, but
it cat find the Includefiles. The tload needs also zcat, but this can't
also be found by tload.
Don't know whats broken here.

Regards

Daniel

-- 
Daniel Spannbauer Systembetreuung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Auf der Wies 8, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/  Email [EMAIL PROTECTED]
Geschäftsführer Martin Reuter HRB 68255 Amtsgericht München


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/