X-Recipient: archive-cygwin@delorie.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
	:references:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=XJG1qntt+zaZjVAxOTKVIZLlhvcLJ
	owPSzB3RWpde5ERHiqejD83Qc8ZJrt9xgQRe7vuZkyihUdb7O6RlxW/emzLQpkj2
	ZSJchUPIYUL2OQCxjKsErcCwfV7dXdHT9VXr8ydzkUrY/rm9YzO2uMrGQ9qx1tV9
	OlJJTPhikWV3Lg=
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
	:references:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=qjU67IprZfsS4FgUinETNRwOrHY=; b=dHZ
	h0t5draMVKg9NtLjlaPH7C7SU7fOzKVbnqeqDTOv7jXCJlGAjuV/6okJsbxh98bj
	xhcUmzg6qRWjOEY6LUahMVEsYR/ZgJl4gOIheXzUE+kpiQvBoxjWLt3HKmHGUAvk
	t+QRrNssXsN6ndEe1TBZkSLm5Aoa5LZXVCQahkiI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=transferred, ACL, acl, ac
X-HELO: nihcesxwayst03.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=1565699240;  x=1597235240;  h=from:to:subject:date:message-id:references:in-reply-to:   content-transfer-encoding:mime-version;  bh=0nwf5+B/5kpmjya3mh8hEKUY1aLVvQIG1+e7Q+GdO2o=;  b=n7wUrn7+LqRgSPmYJ+kfINcXuaiIdhUKXCD+8xkZV7DdSqEHTp/WftyS   gwM9ECHP0c3HpKQa/k2G03674wHa7WLqAJLqQQGhJqj2VIYwmnotuF+c1   wdjSt6hWf6Bp8uo51Ga3Dam8EDERjznv1y25MkwJS4yi1ZM9ddBLXw/BB   2oLlCp3WYHZH+Qbyxrjl93407MIxTIcRn+tuycvtM+EM/PgXlDO+9ALp0   z8+0566MF+ncezbk4c57P9BCY+2H3MSAKzXSRCBhUAzDqc1I+0sLnRJLc   pXHix4hSjj8pPt0Yvsxzt0M+J/El00q0jjqCUtNTnPvIw7zShSI3IBPLa   Q==;
IronPort-SDR: V4yZqLf95T1tWDjDAn9nKCQPiMeEpNWq5xlInPcMEUOH1pl+ZNnMGNLed4EI8lfiTX87BN1Ja7 pOgBLXghryuw==
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QHKjx1Ki5EdOeIKWh6CWeYT2NN3aHgGOC/D3nvHA4idJ2KKApeNVCs+OhAYEWYL6nfJy497ff7J2XyK5lsRJDcziWWySXjPCJze9NMHpnimKM81LBeLYem4z80b7c92Z+QwvgGdWhFQpaPZvK9HnmGoEFTp4ZCp0Yt+fgynYQeVe4CiE0YyFCD5SW/f/3rPgqUGCqu0YBO/XiDvSxMODsF+bgBDU10ib3zTtEongZpr9q+VI/5KYNJFhVwj29dhS0qHH1oLBBMM5SlbV//NcYMNfWlH7LpivyvvBbaWRdu7dLF/gVX8ZQz/YjL/Iy7FDRDIasiV0ivRRVH39S4B13w==
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=0nwf5+B/5kpmjya3mh8hEKUY1aLVvQIG1+e7Q+GdO2o=; b=eydE3OGqEnhvuPXrwxycGXue+HwzgDRqJ8uPotY41HkDtyJ+uYrBEK/Q9kTysW4qhqQAwiAn1pz83DocnU0GoSsEkNrZS71y5IH0lDLD+oi76LGqdZHVNiVKLnhaAWgafmQ2WShdgYfOWIO1iZKK9pqRQhKbGmn2kYVWT8UIKbIy0wGvlAts+AWgBcJTdRMcytohPAd+qNKTn+0uMJhkb/rBYRbmj+s/zJKtYRjyqnDUgMGTzfYT+pMWiEF841+lDHs97tDTYzbRqF9+acgm0QJq/iBNRfa/+UeRZsY6wWyp04UINcn21NlYdOern1hugLT/6weMNIkJt8Zi1kI2gg==
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=selector2-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0nwf5+B/5kpmjya3mh8hEKUY1aLVvQIG1+e7Q+GdO2o=; b=QZE7lHWb1qB52jZ2CLlyZBpXfniCntzenLdQcOdIum6pPFePyQUSenqKOrQkHYwovXk2KSUBRgulAZqrNCIv3TX6FGVOaepK9g+YQCHtzfLpojmKkQ/lySn2WAkWuX6+4XwB9czSTJ/5ymqjpHOQc/ienPDh+pIOXjaoNnBb9W8=
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin@cygwin.com>
Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: RE: SMBFS mount's file cannot be made executable
Date: Tue, 13 Aug 2019 12:27:16 +0000
Message-ID: <BN6PR09MB1409D5E76638A6D39C8ED13FA5D20@BN6PR09MB1409.namprd09.prod.outlook.com>
References: <BN6PR09MB1409EACEBA48577B4C6CC3D2A5D30@BN6PR09MB1409.namprd09.prod.outlook.com> <704986a5a4ab41709eb963dcd23887b1@BELBRU-EXMP101.eeas.europa.eu>
In-Reply-To: <704986a5a4ab41709eb963dcd23887b1@BELBRU-EXMP101.eeas.europa.eu>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr@ncbi.nlm.nih.gov;
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: s7gpKpUGIC8ZeWjK4K1XG7LSiTUuH5rqLr+u4KgrvtUtDvzF5deAwnB1NsA9gBPW
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x7DCS0OU009107

Thanks for responding!

> You need the "exec" mount option.

I thought so too, but how do I give that option to a drive that is "noumount".  I cannot dis- or re-mount it AFAICT.

$ mount
...
Z: on /cygdrive/z type smbfs (binary,posix=0,user,noumount,auto)
$ umount /cygdrive/z
umount: /cygdrive/z: Invalid argument

Also, I tried to mount the same path elsewhere, and with the "exec" options, and that wouldn't help, either:

$ mount -o exec //coredev2/home/lavr /mnt
$ mount
//coredev2/home/lavr on /mnt type smbfs (binary,exec,user)
...
$ cd /mnt
$ pwd
/mnt
$ gcc a.c
$ ls -l a.exe
-rw-rw-r--+ 1 lavr cppcore 157753 Aug 13 08:20 a.exe
$ ./a.exe
-bash: ./a.exe: Permission denied
(and again, if a.exe is given the "x" perm in the Linux fs, the command above works)

I think that something's wrong with how (or if) Cygwin translates the "x" unix execution permission bit to an ACL that is passed thru SMB -- it does not get transferred to the Linux side correctly.  But if set there, then it gets converted to the execute ACL the right way, and that makes the file executable on the Windows side...  I do not know how is it all implemented, though;  it's just my observation.


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


