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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=oJ6VExh686zKRX4m
	UVU2cyQLgih1bbpYGzd3Gl2h5KQ7uU4ArVyLRXgwYT0kbWBkc4lxNS1iUTl8PNIc
	9n+8ni44lOxFqoPHY4AD/VyFbc8WVEWLPiUDB1mr1p0UsBgyFJH96cSHNWUvrH5z
	moII+WiXpd06RxVWzXQGXi09RYY=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=aP49L2bQ2sks3/RUShSDdL
	q/NXs=; b=Gq/dYfzuNG9bIHiiPuREY32vfXoAFJaZTIbB/tDMNdt61g3JQcU0zf
	RKS4Ttz4Ev5M+cwSz7d7GMdEZaxiQRG7opo3cHsoZS4/zaIqva8BvJsdjtbGmtKU
	JwkDkKQN/gZtZmcHN1UCkaaE3lars4UcM4OrZvzWu8aElJOjFc+fk=
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=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.1 spammy=H*Ad:D*gov, H*M:yandex, H*x:Bat!, HTo:D*nih.gov
X-HELO: forward102o.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1565721302;	bh=IQh22zj7Vzn302IprFyu4qqs4iLbH4dDjWgkPQ5NHK4=;	h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date;	b=JHAyrkn6TUp/WRTqMUgJ5ZAwUP1SHKStykGQc4t8GAriuaY1XQSSs96nVXnbJ8IwQ	 Hnsra80G6i2rlbJwqPQZPzAJytU0OU+P/G/DNGTjunLHzZWEe/C8rJfjeLLAs+SeaJ	 c9Q/zvyypW7Hz9FbhvLp2wvdw5IGeMfaelNKtlx4=
Authentication-Results: mxback9o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Tue, 13 Aug 2019 21:24:22 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1612836928.20190813212422@yandex.ru>
To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>,
        cygwin@cygwin.com
Subject: Re: SMBFS mount's file cannot be made executable
In-Reply-To: <BN6PR09MB1409D5E76638A6D39C8ED13FA5D20@BN6PR09MB1409.namprd09.prod.outlook.com>
References: <BN6PR09MB1409EACEBA48577B4C6CC3D2A5D30@BN6PR09MB1409.namprd09.prod.outlook.com>   <704986a5a4ab41709eb963dcd23887b1@BELBRU-EXMP101.eeas.europa.eu>  <BN6PR09MB1409D5E76638A6D39C8ED13FA5D20@BN6PR09MB1409.namprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]!

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

/cygdrive is automount.
What is your cygdrive mount options? Because default is, apparently, "binary,posix=0,user".

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


-- 
With best regards,
Andrey Repin
Tuesday, August 13, 2019 21:22:07

Sorry for my terrible english...


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

