Mail Archives: cygwin/2002/10/15/14:04:33
I have the same problem. I'm running 1.3.13-2.
(I'm running GCC 3.2 if that makes any difference).
>g++ -W -Wall CmdLine.cpp -o CmdLine.exe
>./CmdLine.exe
bash: ./CmdLine.exe: Permission denied
>ls -l CmdLine.exe
-rw-rw-rw- 1 1643 None 417806 Oct 15 13:59 CmdLine.exe
>chmod +rwx CmdLine.exe
chmod: changing permissions of `CmdLine.exe': Invalid argument
When I look at the security settings in Windows, "Read" and "Write" are
checked, but "Read & Execute" is not checked. If I check that, then
everything works as it should (I can run the program, I can chmod it).
Until I compile it again. Then I get back in the same situation.
-Rolf Campbell
=======================================
First, upgrade to Cygwin DLL 1.3.13-2.
Second, read the recent email list messages related to "ntsec" and it
being
the new default.
Third, check out the user guide if you don't understand what "ntsec"
does
for you.
I can't speak to your issue regarding chmod, since I don't see any
problems
here and I don't know what you did or even if you're using a Cygwin
version
of chmod.
Larry
Original Message:
-----------------
From: ZHAO,YE-MING (HP-China,ex2) yeming-zym DOT zhao AT hp DOT com
Date: Tue, 15 Oct 2002 18:18:40 +0800
To: cygwin AT cygwin DOT com
Subject: problem after installing "New Cygwin DLL 1.3.13-1 release"
Hi,
Today I visit www.cygwin.com and run the setup.exe as usual, and there
seems
some updates.
After that, I suddenly find that when I compile file with gcc, it
generates
the bin but I cannot run it.
The reason is that the file generated by gcc is -rw-rw-rw-, and I even
cannot "chmod" it(output is "chmod: changing permissions of `a.exe':
Invalid
argument").
Everything is all right before the updates. And I didn't select gcc or
any
other thing during update. The update is by default.
btw, BCC32.exe(borland cpp compiler) works well.
I don't know why, so I'm writing this mail asking for help.
thanks,
-bryan
I run cygwin as administrator on:
Windows 2000 Professional.
--
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/
- Raw text -