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:from:reply-to:to:subject:date:message-id :content-type:content-transfer-encoding:mime-version; q=dns; s= default; b=kl10vRTibtQ71wQfGG5pkgwCFkrxx4cUw6oScHvjw9SK7zHO7MMbm 8HRG//VbLypBuJGuk3kKStM92O0o92G773ny9NWdbmyebzNuWxWbnNoq9JDX+9PV fijMkXKMX6DPQY0SHrcrOrxDhLJZdEf7ksaxY1DldP090295+jZ2sw= 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:from:reply-to:to:subject:date:message-id :content-type:content-transfer-encoding:mime-version; s=default; bh=ZxUh/I28WGXBQlxnq+jBZhBVWV0=; b=kTzYKzzrOZWqEvADzCRolHyPO89P FAFJCwfnz0IqI0OK5tNnfkiomabZqn0K1LiCSsGyuT1YIV3eLno4OffcBCEqzaR2 XByZnYPpyHv7H68rqNopIpcmnEugP7Jw0mtxRHRqcEax/gNxfiUG+YAztfbi34Gr Plwu8P24BaSWc2o= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: nihcesxwayst01.hub.nih.gov DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1565744033; x=1597280033; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=IXrYb8YyPjS2ILOpfdNfmwo3UR3O+IC518WJVjpylUI=; b=iAmlqMTOom0bhTFeKdgOEGJLTcm4Y7KUK1hVc5olwyVKdTk4Rty+Uhqz uMfv/ToTnPt/vzZZZ0JQ7rwVAzq01n9NjkqZUblEGs6uIVRBjxOylAoaR P09WxrLbbsNfyUf9ajwvxqEbfy6qCjPWUs52gYJDSu0kfSn6tdv6jd4ZY uFEznWG8b3et86XS/enTLrfRwaZtim7G84jrHgrPsdzgk4NDBBFuJd89d gtZQyXt2XGnjpr073V7eHn1gIjb1aIYGlTAwGtoZwzRg0+cDyPWRZ92/M GBbGHNhthy6ZQjUpNx7KQPKXbDwy3sVartgcncOxrN8gij1Gwe9cRPF3r w==; IronPort-SDR: 1k0I12IEKSceUOZ2jRH0JvUoAMM61zZmFO65NO0+G50tefIqji3l47DCImuMA6g4NFvktgMkn/ 8FSSTqQQ7x+FcI9DCxjlQ6Bx9IUmUCUcDVGoolA/l/jaJMQS6UGbSKk9kbtOOlTmvI9J1Hhsqf zD1MMgNJUFwT1x57e8kVdXRBgsPEazS6ajMB9+Aciq1oCuJXRd2hATvyVCAQLe+imiQ0aJOE25 Kvhr/55DYuXHZrnJIpPCru04kP42o1GmJuV7B7b3kxld4DSxWL5Lgx2f82EhaIpZMW7XSx7VNy +RI= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dXL0q6DVeUMW8348DhuxbyWbb2igZdcgdbrk1O+hlE4qUv3gGw3eSY8GQ7dv78THbPsBh7G3CvcuAL9jvcGLQimYs9bGCNWBl7TqcmfblbovCxdjsPoKkM8S9p6DGRM3KRghY/jEx2fKsCWDyHB44xc9HsWAM3kvA+VmDnrduBYkrLEYzOl0xhJOpJGISYN7bPlhS0aR5qYDEkiyKg7UaB1wneDJYnH0riOr8JNDvvqPi9FMP1COLacvwGBnw9pSD2mJhEYyy9BpkGLz+P/II929HDecz3YyGXTEBCYGolVS+SCTWXz/32+sdrDUBWF+j/g3Tp7ykIiR8YrQOjiDNw== 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=IXrYb8YyPjS2ILOpfdNfmwo3UR3O+IC518WJVjpylUI=; b=FQvPB8cBYWbP4EM7jG8ArNr/vex5Nu5WjR81HzP+iySlqD/8q0Tj8P96yxpueBxNgBmHWjxcpOTGnDHXhmvVZhPLNk7+oZPAZpKXSz7ySnTqfoURkLCym5XOYiowgnayHjmbwnds+Ce16u/TCUk+IncVesdmDLrG3H2wz6+HUk5D7CrcicQldJ+4/19Zy1miNZ3PMcMQ25nvvr3LgPAD/5bPo5LanO18FaAxd5hy3p4FtNi8qgTMuMyo49/GDx3hgZjTUSqOPDoNN+glnLDk2WuTNgkoIpSCPnSp5BFvAIjsBYhX9K3hYqWDw6/onmRfuUYIfCp0jRxMIXjappigAQ== 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=IXrYb8YyPjS2ILOpfdNfmwo3UR3O+IC518WJVjpylUI=; b=qN1nkA+3ZKxGK7bMUonyCMLbFy+KgBGHjgJALFGg74KZNMYW3ps1AdAALduumpDSAoE2slniPIJUF+hUhj6Twa8r1b6ert9/SicgAehG+ahw93Cx42Z0c50+8rA3NrPR32kXNAHtVwkyRHeK1w/GHTKEFrlNLTcEu6RNdS0VyRU= From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "'cygwin AT cygwin DOT com'" Subject: Re: SMBFS mount's file cannot be made executable Date: Wed, 14 Aug 2019 00:53:32 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr AT ncbi DOT nlm DOT nih DOT gov; x-ms-exchange-purlcount: 1 x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: eKr/cks9wwSe3hf3oS0WzOUf2Ai+0pVgyLiyhZdzIFbnefDX4cG5IInuTN7kFIdT Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x7E0sTuO007118 > If it's related to the ACL handling then it should start working when > you remove the ACL on the file with 'setfacl -kb ...' There are no special ACLs set on the file (that was just produced by GCC from the source code, see my first email). But I am now convinced that the problem is _entirely_ in Cygwin's corner: When I open that file's the "Properties->Security" Windows tab, I can see that my permissions are "Read" and "Write", yet "Read & Execute" is NOT checked. When I check it, I see that the file becomes executable (the "x" bit) from both Cygwin shell and on the Linux side, too. And after that, I can execute the file from the Cygwin shell. So what happens is that when "chmod" (or "creat" with a permission mask) is called, Cygwin does not honor the "x" bit(s) and does not convert it to a corresponding proper ACL for the Windows mounted filesystem (and that ACL, in turn, would have been then sent to SMBD to get converted there back to the "x" bit in the Unix world). Once the "x" is there, Windows(via SMBD) obviously allows execution of the image. Here's a related "bug": https://forge.univention.org/bugzilla/show_bug.cgi?id=33785 I did not investigate in details how Cygwin handles the execute permission, but obviously there's something off. -- 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