From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54093 invoked by alias); 13 Aug 2019 12:27:26 -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 53837 invoked by uid 89); 13 Aug 2019 12:27:26 -0000 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 Received: from nihcesxwayst03.hub.nih.gov (HELO nihcesxwayst03.hub.nih.gov) (165.112.13.34) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Aug 2019 12:27:20 +0000 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== Received: from uccsx03.nih.gov (HELO ces.nih.gov) ([165.112.194.93]) by nihcesxwayst03.hub.nih.gov with ESMTP/TLS/ECDHE-RSA-AES256-SHA384; 13 Aug 2019 08:27:18 -0400 Received: from uccsX03.nih.gov (165.112.194.93) by uccsX03.nih.gov (165.112.194.93) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 13 Aug 2019 08:27:18 -0400 Received: from GCC01-DM2-obe.outbound.protection.outlook.com (165.112.194.6) by uccsX03.nih.gov (165.112.194.93) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 13 Aug 2019 08:27:18 -0400 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= Received: from BN6PR09MB1409.namprd09.prod.outlook.com (10.173.201.144) by BN6PR09MB1377.namprd09.prod.outlook.com (10.172.22.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.16; Tue, 13 Aug 2019 12:27:17 +0000 Received: from BN6PR09MB1409.namprd09.prod.outlook.com ([fe80::b4e3:8d3a:1d40:e23]) by BN6PR09MB1409.namprd09.prod.outlook.com ([fe80::b4e3:8d3a:1d40:e23%12]) with mapi id 15.20.2157.022; Tue, 13 Aug 2019 12:27:17 +0000 From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "'cygwin@cygwin.com'" Subject: RE: SMBFS mount's file cannot be made executable Date: Tue, 13 Aug 2019 12:27:00 -0000 Message-ID: References: <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" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: s7gpKpUGIC8ZeWjK4K1XG7LSiTUuH5rqLr+u4KgrvtUtDvzF5deAwnB1NsA9gBPW Return-Path: lavr@ncbi.nlm.nih.gov X-SW-Source: 2019-08/txt/msg00159.txt.bz2 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 "noumoun= t". I cannot dis- or re-mount it AFAICT. $ mount ... Z: on /cygdrive/z type smbfs (binary,posix=3D0,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 abo= ve works) I think that something's wrong with how (or if) Cygwin translates the "x" u= nix execution permission bit to an ACL that is passed thru SMB -- it does n= ot 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 ex= ecutable on the Windows side... I do not know how is it all implemented, t= hough; 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