DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4AB95i1O3753216 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4AB95i1O3753216 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=QYi4V+/9 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DBA5385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1731315943; bh=lUqnHwx3DNVdYa1tZkM2HA/lx4X36bDII2/KFG7UXTw=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=QYi4V+/9hBO8oK2tVKe/ebdojU7uPDdqxFyhKW6mW6cIt+B44L50yg3dNE60HwsKw P5LdlYfDTpRXiFnJX4TfQhFwqg9URq81RiWExpmRhHsIDtDiWK/bDMA72YDCAfyNx0 MhIktuDdglAnBGtJpcqBteRskUiLB26lZZkhFHbc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 856E83858408 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 856E83858408 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731315908; cv=none; b=kFD+mtWQ2Ijj7KX5K9pMv33XDLdgJ9DEIO4+G5IFH1PxuxBLvcWxu+0wZ25r4lT+jKqyS2aY2QUyuzEqAFm+Cz/khdbqXSslNmBbo9dr2sq2f7AKe8t+4pG/0yNUe7fjCH/KugHq9nQQrHZdsFH0PiNlHJNPwZAq4yT8RNLUXXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731315908; c=relaxed/simple; bh=GbebsPBsNVgikPqaA9BYgFrAxOKPHSFxIgsthfvU+Dk=; h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; b=RrErKaJkr6ag5MyolyXS5vST6EY+TDueiSyREi0SnuoiZtGcQBq1Zy6qJrfqDr+rvXkmyFWmzwF0YLimdcMRkHWq9tTOyN1Quo7ONBUYS2BQ5rNDsLeNVYZpA2uDTo8M7a83iyEzn2aWYVDlQLapW0u1umU9Cx2H3jKrL3DrJj4= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Mon, 11 Nov 2024 18:04:59 +0900 To: "cygwin AT cygwin DOT com" Subject: Re: [EXTERNAL] Re: SMBFS mount's file cannot be made executable Message-Id: <20241111180459.344882ad4b4cc97989b16a25@nifty.ne.jp> In-Reply-To: References: <20241108205109 DOT 55f99e2d172b9fc87e92ae67 AT nifty DOT ne DOT jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Fri, 8 Nov 2024 16:07:11 +0000 "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" wrote: > I had the issue at work and I asked my Systems team to configure the share correctly on the Linux side of the things. > > Y: on /cygdrive/y type smbfs (binary,posix=0,user,noumount,auto) > Z: on /cygdrive/z type smbfs (binary,posix=0,user,noumount,auto) > > The Z: drive is the "default share", and on which the .exe files are not executable. > > $ pwd > /cygdrive/z > $ cat hello.c > #include > > int main() > { > printf("Hello world!\n"); > return 0; > } > $ gcc -o helloZ hello.c > $ ./helloZ > -bash: ./helloZ: Permission denied > > The Y: drive is the same directory on Linux, exported a bit differently: > > $ cd /cygdrive/y > $ gcc -o helloY hello.c > $ ./helloY > Hello world! > $ strip hello{Y,Z} > $ diff hello{Y,Z} > $ > > This is how the Y: drive had been exported from Linux (ours it an AD environment too, BTW): > > $ tail -n 6 /etc/samba/smb.conf > [lavr] > path = /export/home/lavr > comment = Anton's Local Home Directory > read only = No > hosts allow = [:snipped:] > acl allow execute always = True Thanks for the information. Unfortunately, this did not help in my environment. Perhaps, for non-AD environment, I guess. -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple