delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/08/08:12:04

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4A8DC4OQ2744425
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=Djzsf1yG
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67BD23858405
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1731071522;
bh=ICp26AdeHrGifP/0nMEkP4s7ZiYdfTXGmEtiQLDmZ30=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=Djzsf1yGcMhM54X+kwJYrrAKWJAbcYS6OIdyAouqon0I09i31QUASHSL4BYGViaaZ
vdGTjiOzE7Spk1+PLVrSyduEzzQwcek8onCAS36ErpPhVEDSYzPbnRudY58JR2e5Xj
xr7wmahYa30hZHoLsK5gS170wFQthzlx3xSBfj/A=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 461F63858D20
Date: Fri, 8 Nov 2024 14:11:40 +0100
To: cygwin AT cygwin DOT com
Subject: Re: SMBFS mount's file cannot be made executable
Message-ID: <Zy4ODHHpmZPggGSz@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BL0PR0901MB430827F1A0668E468B498FBBA5D70 AT BL0PR0901MB4308 DOT namprd09 DOT prod DOT outlook DOT com>
<20241108205109 DOT 55f99e2d172b9fc87e92ae67 AT nifty DOT ne DOT jp>
MIME-Version: 1.0
In-Reply-To: <20241108205109.55f99e2d172b9fc87e92ae67@nifty.ne.jp>
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: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
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>

On Nov  8 20:51, Takashi Yano via Cygwin wrote:
> 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)
> > [...]
> > $ ls -l a.exe
> > -rw-rw-r--+ 1 lavr cppcore 157753 Aug  8 11:29 a.exe
> > [...]
> > $ chmod a+x a.exe
> > [...]
> > $ ls -l a.exe
> > -rw-rw-r--+ 1 lavr cppcore 157753 Aug  8 11:29 a.exe
> > [...]
> > Also, any file that I give the "x" permission from outside Cygwin (e.g. from Linux) on the SMBFS drive "Z:",
> > becomes executable:
> 
> Does anyone know what was the conclusion of this issue?
> I have encountered the same issue and cannot find the
> solution so far.

SMB is really complex, and Samba adds to the complexity.

If the remote drive is a Windows share, check if the server shares the
folder with "Full Control" for everyone.

If the server is a Samba share, check if `force unknown acl user = yes'
and for the share itself, check that

  read only = No
  vfs objects = acl_xattr
  map acl inherit = Yes
  store dos attributes = Yes

Not sure if that helps, but I don't have any other idea.  I'm running
Samba in an AD environment and "it works for me" :-P


Corinna

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