delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/04/13:24:32

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Fri, 4 May 2012 10:24:05 -0700
Message-ID: <CAMkU=1xnZBajUz1BHz_7Q-_HAFgGTkc=ogFBDstMPj0OqMX69Q@mail.gmail.com>
Subject: permission denied while executing files which have execute permission
From: Jeff Janes <jeff DOT janes AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Twice in the last week I've run into a problem where I can't execute
programs which have the correct execute permissions set under both
chmod and setfacl.

It took me a long time to track it down to the issue described here:
http://social.msdn.microsoft.com/forums/en-US/windowssecurity/thread/73f86e9e-928f-40b7-8dd5-27e40db6997e/

The presence of error 740 in the strace seems be pathognomonic for this problem.

strace: error creating process
C:\cygwin\home\jjanes\patch-2.6.1\src\patch.exe, (error 740)

This persists up to DLL version 1.7.14-2

Given how hard this was to track down, could a note be added in the
cygwin FAQs about this?

I ran into this problem trying to build an updated patch.exe (which I
needed to build coreutils, but which I see I no longer need as an
upgrade for patch.exe was released this morning), and also in trying
to build coreutils from the upstream source due to the ginstall.exe
file.

For the curious, the reason I'm trying to build coreutils from source
is to figure out why "cut" is so slow.  On Linux, setting LANG=C makes
cut much faster, but on cygwin this setting does not result in a speed
up for 'cut'.  But first things first.

Cheers,

Jeff

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019