delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/13/14:36:00

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: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 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=-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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1612836928.20190813212422@yandex.ru>
To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr AT ncbi DOT nlm DOT nih DOT gov>,
cygwin AT cygwin DOT com
Subject: Re: SMBFS mount's file cannot be made executable
In-Reply-To: <BN6PR09MB1409D5E76638A6D39C8ED13FA5D20@BN6PR09MB1409.namprd09.prod.outlook.com>
References: <BN6PR09MB1409EACEBA48577B4C6CC3D2A5D30 AT BN6PR09MB1409 DOT namprd09 DOT prod DOT outlook DOT com> <704986a5a4ab41709eb963dcd23887b1 AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu> <BN6PR09MB1409D5E76638A6D39C8ED13FA5D20 AT BN6PR09MB1409 DOT namprd09 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
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

- Raw text -


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