From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8197 invoked by alias); 13 Aug 2019 18:35:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8189 invoked by uid 89); 13 Aug 2019 18:35:09 -0000 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 Received: from forward102o.mail.yandex.net (HELO forward102o.mail.yandex.net) (37.140.190.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Aug 2019 18:35:06 +0000 Received: from mxback9o.mail.yandex.net (mxback9o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::23]) by forward102o.mail.yandex.net (Yandex) with ESMTP id 5328766807A8; Tue, 13 Aug 2019 21:35:02 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback9o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id FZ4yrE6IZC-Z2qGkXxl; Tue, 13 Aug 2019 21:35:02 +0300 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 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TMfCtVEAq4-Z1E4Oh7j; Tue, 13 Aug 2019 21:35:01 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 13 Aug 2019 18:24:22 -0000 Date: Tue, 13 Aug 2019 18:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1612836928.20190813212422@yandex.ru> To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" , cygwin@cygwin.com Subject: Re: SMBFS mount's file cannot be made executable In-Reply-To: References: <704986a5a4ab41709eb963dcd23887b1@BELBRU-EXMP101.eeas.europa.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00163.txt.bz2 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