DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4A8GCFiI2802598 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=PcqrgNhR X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9E557385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1731082333; bh=SY3xxE92H1mju2WmW9t7bg8u8xbM7RhrEL6k6Pq6tZk=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=PcqrgNhRGs5b720GRfqhtsPrRQgR+lmHdqrqPOcLZ/KrwKAFEci93/3/DR2eIwg++ N7802DpDqj6S2HJqeXL3jm19hBLNiL+ugd4zu2YCBJJNQXpvtoJbdJwDM0bJvkvP09 wIBOw40rf3mVewZZmbVuAxnSWgOzUkhrBBvJ9Y7E= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C3705385841D ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C3705385841D ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731082305; cv=pass; b=wC/e1y2wwnXc9GrcXAJ1EqGqp9ct8IZ9MjyqQhCBK4C6l2QYKQ5MNCM3fi8yVjWB0MfqYG0OIeWrpObLBiQ2WfcILJSzGZfgJS65KQ4r7Hree4q7amv102Ca+20smivjKJ3+Qb2l8ILXUmOUzsRRgDjc18hr09xS8cRh76fz9FM= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1731082305; c=relaxed/simple; bh=GCCbRQRBMg+uAFZ2DjXNMs0tr+iFHonwUNEkuLtm6TM=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=cTAxTW5SE5tqcWmd+1YxSdglw3gdqEOi+KXyVuIoRz40RmhH5ztS0ZLbE4WgKildssPG8CTCRiR1Vb/tfWLsahYHNnm2rkGNJs4qjZddLZzTJdK5qW+QWbab00XvOf9m1Qez4UjxwafhQOEEOuH8jMNMme1iOfdz13BbOfbIK/k= ARC-Authentication-Results: i=2; server2.sourceware.org X-CSE-ConnectionGUID: 1B/Z9cKcRr+09hA5ySe/kQ== X-CSE-MsgGUID: Ic8igVKjSvGfbHOBnsHzVw== X-SBRS-Extended: Low X-IronPortListener: ces-out X-IronPort-AV: E=Sophos;i="6.12,138,1728964800"; d="scan'208";a="467386270" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=szHb9kTn+vZSRpVyOGUDvmcM3tFCRS1KqyKkSNfWUqUj6hyo3RFmy8eJOQQtQEoHK1XYyLhgBnTBI26XCDLx12dmagEjAYPtPpREhN+b9A/UzkdkEQ7TvArY8dLQ/7JO9EO9PVvVkqEaw46HLiIKL8GBOuYy38yu4LTzjnxWB2gz3zt5sWTCcgHbeRCQVFcDkmSeGX42rSx+wB7qhi8XTKCRP9b3TQjKVuPTTr/jPMpjtPGkJfgCxSFZLczj3fc9kXMArFPcwp8uNzUvbM8jo1Ra+x0NAkcGQCKgeanHjrgcA6MVc7umHiMSQqYOndyCJXviXyPyQbKgC1Dirn8pDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SwQ3v7mNCBJ7BKBhMyKYkh7Gf0iYaAwydQyAEzL4ReM=; b=oWeS4Lsxr5fZTGUb2qj3iNerxUUa6Pg8I1THaPZrDDoDf4cDj5uu5vgWJWUt/X8QGH+esMcLTbvEvvkaZUrtthH9z65koqITZXP3qvCUapMkQ7NbelOaymw8/o/UhhMQhq53ql4Kdn1koZ3LyFyl4rAue9GufyWANw3+ovzU1eeTcBGV05FzkOS2TuRWLUGFRAZQebPupdj9XRDiF5f9Zx3UkQX0Hevd45uCJ44oN845vk2ebjMq/F/SB1R0/Rs8Xq8kyupabr5U7X163bAJxh4etxNvISLw8a/5MU7jLlKh5g7IlXZnKYHIEi642PWUHyct/Fu/X+CHQAJfUmH1IQ== 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 To: Takashi Yano , "cygwin AT cygwin DOT com" Subject: RE: [EXTERNAL] Re: SMBFS mount's file cannot be made executable Thread-Topic: [EXTERNAL] Re: SMBFS mount's file cannot be made executable Thread-Index: AQHbMdSMduNY6heD7k25oFIutacuGbKtiP5w Date: Fri, 8 Nov 2024 16:07:11 +0000 Deferred-Delivery: Fri, 8 Nov 2024 16:05:46 +0000 Message-ID: References: <20241108205109 DOT 55f99e2d172b9fc87e92ae67 AT nifty DOT ne DOT jp> In-Reply-To: <20241108205109.55f99e2d172b9fc87e92ae67@nifty.ne.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR09MB10941:EE_|SA9PR09MB4685:EE_ x-ms-office365-filtering-correlation-id: bf2f20fc-6b96-4a8a-d385-08dd000f68bf x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?ME7ZQEWB1Jh32ccyx02XtthgZI+grmLe3zqgghK2Dg1X9ghj2mGK+0DfAVgb?= =?us-ascii?Q?ILUcv3lBKQpbovL+c8Wp3reFRin3y9bbz4FX7u8JjmTa+NJYNlmge8xV0vAJ?= =?us-ascii?Q?Y/PyUZTB7H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ascii?Q?shMr43XRKv4l29GEeFX136djSz0vGJE8hZCtzZCy5LxbtQX38FyhX/uK73xs?= =?us-ascii?Q?h7oicRBOGieaTpKLuoSk99Cz5cnHuwAyed/ezxhnQNzJw3/cwEY/j2Rr9NBX?= =?us-ascii?Q?HUoQ6RKExmqS7BGXOOugYr96nKtX7vWkNafI5s9CRxJVDqsUlCNWw9J2VP4c?= =?us-ascii?Q?rAJtBgbBikCOs7nHjfFJUYojXC25YmWG6xAchCr9hDt0fpwSmOJOSPqhl9SQ?= =?us-ascii?Q?E/7qK9MHDr/PyAFIB4h5sclYs3Kd1hT5Snmy3gnpV2FLs4ZUel/VqFfao0/i?= =?us-ascii?Q?vsxQcszNxZ/No4xyq+nYodpMCyetemPfJ4EhBLsdzZfYWXuYSgkTP/vVtW/i?= =?us-ascii?Q?0QNaGq4=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR09MB10941.namprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?KyI6njbvYEGRYD1yd2Y0tQt4dHVUOzYvDWdeeXbwLgxm1pH8ExocaoWCDh44?= =?us-ascii?Q?+KILd5poXuRo13fkVgNSeUESeMujRUg6EmQBMhaJ1dexx5+swDTsqzKXLBUf?= =?us-ascii?Q?Tb+1gadTHvNMWg7ychWSficVEHcWU+2//MxUe2dqaXEQCNVe17W32Sxjvihn?= =?us-ascii?Q?ZB70mfkBrlybd7HqL8Q5OiSX+w5B5uieNeth5J/Rz/R+FV4Z7JIOA10vqOPc?= =?us-ascii?Q?gC7xSFjjJLLsN56wUtEHvMJGw2xp8rF8ApEhWTuH+9g3Tk73pzTLjY3SIpvM?= =?us-ascii?Q?+nG4G7stM8ICjOFykfopPZX8m3eaC/BY2j9fq+j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Xfam5K+kQGn7vmVj2rBN1fMNYqX5K8vm5rBBDH/+?= =?us-ascii?Q?85AM9r1+CycarInUJeAtqJth+/8KRgqLcEtaOUHOk2zj3wIFVnrpDHLEc164?= =?us-ascii?Q?GoCEUY9StE8dNx3jUCWyd7XqSdctj0gxVGr47J0AS/hNatnxnX0T2ACC/BgS?= =?us-ascii?Q?QeL5vCrFXRP/f1t5sgvRrA6Y4Fvk5zpQq7SRcpsda0SqrOU0vI01TfOXcaPr?= =?us-ascii?Q?rKjHhlKWER5Ev45KflVaMfEAclJ3xpjaoD7QkI3VgwzDEV0W+6+RkOBeBjco?= =?us-ascii?Q?ttbqbnn+5ZoK1nSxZpaN1qt0E+22P97bLeZpaMoKRak1inMlOIlxaB0SLPFJ?= =?us-ascii?Q?KS0AuDNazPxFOOvD/PI=3D?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ocK0bDX09AMCVBUWoPe02wUM7vT+oeI39nMEEi3CwaMss4JErvTV3wfY+yWjFCx4dT3Vl7KeDH4AXLb8wgiPCCz6/1EmcVvOD+iEC6HWzVWLkFmRBtdwLO3lLcygL3PXFWXsqScIJTnQMuzdCHerulSily4ptfE61SGJ+9GYkO6h7p0pzRoaDeGreOKkxkzJ6+EIVoGwy5WaBTEIy9G4t8HbKjnRoppdv1WOHBemPH2wH8S2w6SGOnPRf660eiCHML47dNOscX8DzT/U4xsoypQuMCoTBz3yIbYB4XS7KboDYE2RL1LMFPJ9updeKWsbBpElKvCzYYyjFS3Rk/rF3wFsRkckgzdoZQuiWgiWbQOtdXJysmENLacT8btKWeVuBifk+9SwwSHhShwWWxkeXcEty61SWrwaZ8fnKLNZz07gd7duvTsHr79aWHg3wa1Rbgud5aIyKmnKkR6V7W26KEjjivIix65x2vJiQkiNUqVB18Qmlx9rI2pqEV7BXTTb/17MNWzueWxPClUBqxEQ+AnQM6JhcVXeABfQtU/CfUC1m66OKZ1i3OJ+rLwBiPfCgk0baa36si67skqdMMGCUxBWhr+w8jtZWtqtEJ1McdoWf6u7CmxOtFDfgZU5/as1hiRe5eVLZTT03nRyhGMHaziVJ/lj26hFBaJLpbuRxQn0llHQHATLnlQhPtRpXlOc X-OriginatorOrg: ncbi.nlm.nih.gov X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR09MB10941.namprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf2f20fc-6b96-4a8a-d385-08dd000f68bf X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2024 16:07:13.8112 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 14b77578-9773-42d5-8507-251ca2dc2b06 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA9PR09MB4685 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\] via Cygwin" Reply-To: "Lavrentiev, Anton \(NIH/NLM/NCBI\) \[C\]" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" I had the issue at work and I asked my Systems team to configure the share correctly on the Linux side of the things. Y: on /cygdrive/y type smbfs (binary,posix=0,user,noumount,auto) Z: on /cygdrive/z type smbfs (binary,posix=0,user,noumount,auto) The Z: drive is the "default share", and on which the .exe files are not executable. $ pwd /cygdrive/z $ cat hello.c #include int main() { printf("Hello world!\n"); return 0; } $ gcc -o helloZ hello.c $ ./helloZ -bash: ./helloZ: Permission denied The Y: drive is the same directory on Linux, exported a bit differently: $ cd /cygdrive/y $ gcc -o helloY hello.c $ ./helloY Hello world! $ strip hello{Y,Z} $ diff hello{Y,Z} $ This is how the Y: drive had been exported from Linux (ours it an AD environment too, BTW): $ tail -n 6 /etc/samba/smb.conf [lavr] path = /export/home/lavr comment = Anton's Local Home Directory read only = No hosts allow = [:snipped:] acl allow execute always = True HTH, Anton Lavrentiev Contractor NIH/NLM/NCBI > -----Original Message----- > From: Takashi Yano > Sent: Friday, November 08, 2024 6:51 AM > To: cygwin AT cygwin DOT com > Cc: Lavrentiev, Anton (NIH/NLM/NCBI) [C] > Subject: [EXTERNAL] Re: SMBFS mount's file cannot be made executable > > Hi all, > > On Thu, 8 Aug 2019 15:41:55 +0000 > "Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: > > Hi, > > > > Here's the situation, I have a netmount "Z:" but I cannot make any files on it executable > from Cygwin: > > > > $ mount > > ... > > Z: on /cygdrive/z type smbfs (binary,posix=0,user,noumount,auto) > > > > $ cd /cygdrive/z > > > > $ pwd > > /cygdrive/z > > > > $ cat a.c > > #include > > > > int main() > > { > > printf("Hello world!\n"); > > return 0; > > } > > > > $ gcc -Wall a.c > > > > $ echo $? > > 0 > > > > $ ./a.exe > > -bash: ./a.exe: Permission denied > > > > $ ls -l a.exe > > -rw-rw-r--+ 1 lavr cppcore 157753 Aug 8 11:29 a.exe > > > > $ getfacl.exe a.exe > > # file: a.exe > > # owner: lavr > > # group: cppcore > > user::rw- > > user:lavr:rw- > > group::r-- > > group:cppcore:r-- > > mask::rw- > > other::r-- > > > > $ chmod a+x a.exe > > > > $ echo $? > > 0 > > > > $ ls -l a.exe > > -rw-rw-r--+ 1 lavr cppcore 157753 Aug 8 11:29 a.exe > > > > $ getfacl.exe a.exe > > # file: a.exe > > # owner: lavr > > # group: cppcore > > user::rw- > > user:lavr:rw- > > group::r-- > > group:cppcore:r-- > > mask::rw- > > other::r-- > > > > $ ./a.exe > > -bash: ./a.exe: Permission denied > > > > What's missing? How to make the file executable, and why chmod() lies about all-good when > it does nothing? > > Any ideas please? > > > > Thanks! > > > > P.S. I have another netmount "drive" (U:) which Cygwin identifies as "netapp", and > everything works on that drive, > > regarding the execution permission. > > > > U: on /cygdrive/u type netapp (binary,posix=0,user,noumount,auto) > > > > Also, any file that I give the "x" permission from outside Cygwin (e.g. from Linux) on the > SMBFS drive "Z:", > > becomes executable: > > > > Cygwin> $ gcc -Wall a.c > > > > Linux> $ chmod a+x a.exe > > > > Cygwin> $ ./a.exe > > Hello world! > > Does anyone know what was the conclusion of this issue? > I have encountered the same issue and cannot find the > solution so far. > > > -- > Takashi Yano > CAUTION: This email originated from outside of the organization. Do not click links or open > attachments unless you recognize the sender and are confident the content is safe. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple