delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/08/06:51:46

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4A8BpjAN2720791
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=xKTDDzGz
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 830E53858C32
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1731066703;
bh=b8XP99fcysugrKSHb2ZPUFc53gF3EhD0auQR4CicQGs=;
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=xKTDDzGzCCExaBI1Re74ImpbYFIo1GIh048yI3jPJXdUX4bH3o3uRUUbRvwmykNTB
gTmVyedCM2L8AJQRWTrvLpRLV3DFRu/OCMmv5fnhRp9UY1zY2gTbdGL3r2MP20zNfM
fBlC6/zzvIAr+x9N8YKK0FQfHAeQl679RWQ6t5PQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9EA323858D3C
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9EA323858D3C
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731066677; cv=none;
b=SweNTG0uC/eqDVtcy2ugzWleDFASLDHtKRnIHqvh0iI3lSPgZiN7bPLhLN5tjSqkFVUX6VEFsj2BahhLs6YnFjQkJ8M/IXfKMmX2wKBtfRlBaMFB1vXaWMgSRL7+z7rX1vzlXSiExDkebbhae7AbUBuL7W9KrP6+bWZD0pujVa4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1731066677; c=relaxed/simple;
bh=9SXD15HSbQtiI1fDUh9E0CS66uUjdY8F2w5zn2jZcxo=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=SO0GjpI55Waik3KHJQAq/z95gHpCwl6Hn1a9FHKTYe85ahS63+bamPuCO/1V17OCaq593iisUTVibbS4ayrAyG3ikP2KLjaCMhrhEfvIcwJSP7qdAJ6GeE4UACTR1eBLjyobrAFPPh1GYhKbgsgVmpDpdYZ6cnb6W3yemcIG8ac=
ARC-Authentication-Results: i=1; server2.sourceware.org
Date: Fri, 8 Nov 2024 20:51:09 +0900
To: cygwin AT cygwin DOT com
Subject: Re: SMBFS mount's file cannot be made executable
Message-Id: <20241108205109.55f99e2d172b9fc87e92ae67@nifty.ne.jp>
In-Reply-To: <BL0PR0901MB430827F1A0668E468B498FBBA5D70@BL0PR0901MB4308.namprd09.prod.outlook.com>
References: <BL0PR0901MB430827F1A0668E468B498FBBA5D70 AT BL0PR0901MB4308 DOT namprd09 DOT prod DOT outlook DOT com>
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Hi all,

On Thu, 8 Aug 2019 15:41:55 +0000
"Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> Hi,
> 
> Here's the situation, I have a netmount "Z:" but I cannot make any files on it executable from Cygwin:
> 
> $ mount
> ...
> Z: on /cygdrive/z type smbfs (binary,posix=0,user,noumount,auto)
> 
> $ cd /cygdrive/z
> 
> $ pwd
> /cygdrive/z
> 
> $ cat a.c
> #include <stdio.h>
> 
> int main()
> {
>     printf("Hello world!\n");
>     return 0;
> }
> 
> $ gcc -Wall a.c
> 
> $ echo $?
> 0
> 
> $ ./a.exe
> -bash: ./a.exe: Permission denied
> 
> $ ls -l a.exe
> -rw-rw-r--+ 1 lavr cppcore 157753 Aug  8 11:29 a.exe
> 
> $ getfacl.exe a.exe
> # file: a.exe
> # owner: lavr
> # group: cppcore
> user::rw-
> user:lavr:rw-
> group::r--
> group:cppcore:r--
> mask::rw-
> other::r--
> 
> $ chmod a+x a.exe
> 
> $ echo $?
> 0
> 
> $ ls -l a.exe
> -rw-rw-r--+ 1 lavr cppcore 157753 Aug  8 11:29 a.exe
> 
> $ getfacl.exe a.exe
> # file: a.exe
> # owner: lavr
> # group: cppcore
> user::rw-
> user:lavr:rw-
> group::r--
> group:cppcore:r--
> mask::rw-
> other::r--
> 
> $ ./a.exe
> -bash: ./a.exe: Permission denied
> 
> What's missing?  How to make the file executable, and why chmod() lies about all-good when it does nothing?
> Any ideas please?
> 
> Thanks!
> 
> P.S. I have another netmount "drive" (U:) which Cygwin identifies as "netapp", and everything works on that drive,
> regarding the execution permission.
> 
> U: on /cygdrive/u type netapp (binary,posix=0,user,noumount,auto)
> 
> Also, any file that I give the "x" permission from outside Cygwin (e.g. from Linux) on the SMBFS drive "Z:",
> becomes executable:
> 
> Cygwin> $ gcc -Wall a.c
> 
> Linux> $ chmod a+x a.exe
> 
> Cygwin> $ ./a.exe
> Hello world!

Does anyone know what was the conclusion of this issue?
I have encountered the same issue and cannot find the
solution so far.


-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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

- Raw text -


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