delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/08/11:42:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; q=dns; s=
default; b=w6vook5/QknyJ8Wzer1rZO4EIbrTI9NiDwkDUEEhJgUpcrytybmjp
ykeQu7TW7mbqWySjFdD9gBXizOPHN+WKlF/A3/9fLY2HB5dRq+6mP5KXT4JI41pc
ygHYar06uRe3eD2hx0NsGJ8wN27ix9j1j61SkfkU9uHyPwxDJEk7YQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:reply-to:to:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; s=default;
bh=UUbtq9amvO3e74qQcsQNQujQzVg=; b=lYq4MdToGar5z2hmlpkQvqc4Kxfq
p1KnqRdnIDaQqRrywhrB/4QX2a+SzpllI+abVGHUOcMVP+2JO/ysgojMpePMb+Y6
quiXXQtRfFrDzOdsFr6aJzyzbM2lOupA2b+RUb/8TPaHDz/oQnxQ4KKlNuaESCrZ
i0ieYMibWyZOlLA=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=ac, PS, P.S, UD:P.S
X-HELO: nihcesxwayst01.hub.nih.gov
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1565278918; x=1596814918; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=dBYrfPygkdzmR2W6jxno09S9Ha/5N7tbY6BQZbcfvO4=; b=WwADDHuRnEKtm5+jTD+vul75RdenZH3+kwZdy+PJEN3p/yEtvPU+bIeh 6c7LivYcdeTiAGHG6mC78Br1u59vtvzzH+GxLOZqZ8YSr1rtAxTqxYLxU XwNDdheJpDP43Rxad8G2NcZXsKDjO6cSqT6l0Bf7P6+2nnXcl4d0Twd/J TiBeLfjtEzfwgc2I10n4EnqpaNPdgmI/HkVBWBwpbsZJacLlf+Z6VCU1o dbaKZu7LjdwxmvNF64bxcppwzzPo4ybz5SparQLa2jeejnfgkNW7oztBn hPEHues3EQskgqEagnkvPEnSc9ZhWWsLRwaJrjNnG4z1ZfU4Jabn6NlA8 g==;
IronPort-SDR: CZto0Z2vWfrP8ReUcWutm/bVnW4oWYJtcFu5+3SELgXOYQPaWLrMZtY+ukfvudXjRxGUH3689a QfJWrC5ZTuLJF9Tgxa4hoBNEvxheK/9/Y2yaHPNvw+lMHvFfycr9hOisLhLcDvXoOXIj92cj00 IQmQ1HrzEqYmXoHcw1OnzxsFI9U8gzeN+DaboL5w6ACxQtOx4TAx8buq/8kHHLfx+cCoHjGWTS 5kL3WlPC4qWMoP5lliiAdNeg45gXxU2oJoibu+VWaGmJlCXwlRYcZuSmWBEhkiGmd24Sgpfj2R EZI=
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jBVGfDXIzMc7TdrU7XHEhJEsVPcyOwr7/YMA6/NYF9X/t7oawua9AYJxiNgZgOHG4CwRImmptKZt/OMzpNzYH3gL9FacD1urLjjHt0AzDRYwIXfpA07NBeY6sdPzv8db58TiqemddHRjatigZ5+kKNccO4KpzZI2g+CqSFFYZjVMFXV+HILrUkTc9FhYnrCg9zGO/h/brNultjAQtABeURanEQ2t0nQC6jSdT4CdT84A4i8h2WJYMhrBlIZn4A96wCU5PV4M0iNWO2Qy2p106BQvbjx4b/gjUf9bPa4O4YfG+3yhi8MeT+C21mrB5QUPBPdHf1531K0Q6f9E/HxQtw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dBYrfPygkdzmR2W6jxno09S9Ha/5N7tbY6BQZbcfvO4=; b=aFKUDk0Up5xATzcCrGDojmG5xAEeQdSDwSHIsH0VqmKNLvbBlqTbTlz7nS4LOayvCTUDpZSpr/EE9sbErfn0kA81xSGKPGVauCJR44jyJ7I3CB/2SDUvkZhaxoeeApXnrKq3+Pe85eGrAlEtmaI7/ZbYDtSjz79z2pwVO1QWXo0oDd2ORm28qiMwUv2PuGaG5rjzBlsKYUyupHPUovbFqdhgUmw5227BpKA3dQNFM3u0rqNBwN3lgBxkLqWNqTnuHIBbWxm3uC2iNbkDB6WQzxixSp7NUevU8pHDTRx/ms9qB2m32hQhkfGC1yLLnd134L713cZkzfJ37x20hbeYAQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.onmicrosoft.com; s=selector1-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dBYrfPygkdzmR2W6jxno09S9Ha/5N7tbY6BQZbcfvO4=; b=tDF6diRKcAO3jepIV1ef07pfPLQmE16pe15gCZGZ2fVzAPvk53mSpd8/tjxmNGlRRG+3YCqJdsf/isB0KoSBuqyPRKN0JAxyofUFimbvvsPogZrhoLCwExm+8DJ4GUuU9oFRbT+XowRCErKfC224vnujuNQozMV15zhgk1DJGgs=
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: SMBFS mount's file cannot be made executable
Date: Thu, 8 Aug 2019 15:41:55 +0000
Message-ID: <BL0PR0901MB430827F1A0668E468B498FBBA5D70@BL0PR0901MB4308.namprd09.prod.outlook.com>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr AT ncbi DOT nlm DOT nih DOT gov;
x-ms-oob-tlc-oobclassifiers: OLM:4502;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6zUL8Nml5DPm9v85BWRMW/W3s8+nNtDHDNknvjpryY/YhYe/Yku5oEpbYH9jqdg8
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x78FgWfI015489

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!


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