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=bT95nqs1jYWFSgeGumuogUDdCQO5cZMC8RfvH9HXFdB49UyxW3qtb ueIdHa62osGAKbxfeDBK9CPhV7sNOyw0R+1iieKqgCMYJ/K9eWlWhp5+2HigWbOK BGpl9qH/Dc0w3kHFeLVjJy+4ZUxDWxIE+lAFbkIaw+EmwWeoZ3lxlw= 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=X9Z7R6ipr4TV7TB2KkJaV8hTNMI=; b=pPN3X0m+dhXy+dgCvRCbp17uSERU 0fEuq9vGh1DIeApA/uetfTIH0VArCaq/c9+muaDDyyXGIvxx1KPse0r1ayeNYVea qaU9yaGDvsFIMhgHExHcwc0bubBzoJOPlg1Z9CwfHafaugHmheYK+Cmc9dy1B702 kBTWFT+jA1yZqNg= 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=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: nihcesxwayst04.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=1565833232; x=1597369232; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=+dz1mB48tUONJ5mZa54+B0ZFhK0gw0gB634tXZVBPZs=; b=jDN8ew6bHHOf9WhdbQPy0yd3mcBD2pdXMUWfiYLwAYHlRE5yyNzL2rNQ 5wP0a0aGlYEMA8DkWWFZUDCLUafeKUcuE5eHmgyszwSEhQM3aTE25NJsV hOKGsFMmByteymNijf7F3qWwPSoaFJtACUkwW4DjlhLdgY89lGil+FG63 o8C4Xd6tfY+M/TRYMRZ+3YAn5Z3gOGmLmhBZuuYvM/AT+3BHPwOIsbEAU epa+uAsZEvIZNcnwby8ShLmyiOavz1OoxC0xkrdtu+tsA5jYeu1/sP34N 7Z8HIDBYfqwo8+V+QXzBN9+5uW6JqMR68pPUTQtDKiSOpKf0ok50xqiHM A==; IronPort-SDR: /WzzHwgpuFRGAWyxNrAm84roBUz+mr/o0XBapS8t0q+leeRIdBI4sbs3Gc2WdscrqBNhS9b2kR vXFA0KipWxIQ== ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f0rSVQwDbHXOF0HNV+iqnh1ypymttenbfIFecxT0P4f5dgQgUgS34MTdqc4MeBU7bF94ECjH0aAny7Dcfp6qIZWTlc+jHzkSiTtaxBXBFxSLFunxATiAdZIlvn050JtQnmdvXjvFjYoTRS4eXlkeHe7QQukEOhkQG6C/NDV6hvL3Y1jDWJVq4aQNcKuhzP5fSmBWPdikiHatxO9PO7ULj+5RhVCQXdfN5yRxYaCIiGODgdqxO/3hxugVy1NkMsgFDATKZemUS4i9meANh9StsWOMb8IriU45QNIK05xjbKY945q6RKCMhQNXjWxnekoBOjCiYPD6Sf/SUqGCvMosQg== 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=+dz1mB48tUONJ5mZa54+B0ZFhK0gw0gB634tXZVBPZs=; b=NjYJROkSf2rsmNAEMgkarBmCEudX5NA+z7brmzuceFpClDI4KPRG1T9g48SN6I7SCIzk1oPv4uJfPob+I21Lt5AkgqXkchZ0KQ11ptU/GSI9L1GOQAZwBnirEXWVsnUPUHTURBIR6HGyuDqz5naR8FXGnNjG9wOIXFgouFBe/ViEJNa6TTfP2rDQY8VStAmYXbyUdgVsVSeTI1P+L+mPlaaph7b53ccjlWm+u6VwH6q7hxmeveuYp4ZJ1jaMtt7WmDbvGYn9IhsGnhAhBY13H+FDp2CwSnuFoHZsYTbrlQqwT1NGlNzToaN9A84HGAZe0sNtZgkXb/OCnMG4LD9PJw== 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=+dz1mB48tUONJ5mZa54+B0ZFhK0gw0gB634tXZVBPZs=; b=gc4vittOauuGD3RkLuTU5ingW9a/toP3B9wsTWZlWrBj6aK3sva/N1mQXXZoD1F+jWL8s707U0gG9I/sW18DrlBVMvUZYYhEJOBAJH77eeoEcnEW9BrHPtmfFZlrkHYpKJQLgve0bwivNJ2zAIQv4ID3BHf9Kv4BZ9lyBQlrFto= 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: Thu, 15 Aug 2019 01:40:25 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr AT ncbi DOT nlm DOT nih DOT gov; x-ms-oob-tlc-oobclassifiers: OLM:7219; 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: HQM/BgO3r+dZ2y2MB/bsxSUklAX6PS2pr7cTyD87mMcxfYX1EoRSyoZ4rdOX+TR4 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x7F1fAEK021358 > You can often figure permissions problems I already figured where the problem was, in how cygwin convers (or, actually doesn't) the UNIX's "x" bit into the native DAC for the underlying filesystem (to store as, again, "x" in the Linux share). Missing that DAC, SMBD returns "Access denied" for an attempt to execute the .exe file. I don't think that any of the requested output is of any help or indication, rather than to actually show that the execute permission is missing. $ /usr/lib/csih/getVolInfo /cygdrive/z Device Type : 7 Characteristics : 10 Volume Name : Serial Number : 3112497429 Max Filenamelength : 255 Filesystemname : Flags : 1006f FILE_CASE_SENSITIVE_SEARCH : TRUE FILE_CASE_PRESERVED_NAMES : TRUE FILE_UNICODE_ON_DISK : TRUE FILE_PERSISTENT_ACLS : TRUE FILE_FILE_COMPRESSION : FALSE FILE_VOLUME_QUOTAS : TRUE FILE_SUPPORTS_SPARSE_FILES : TRUE FILE_SUPPORTS_REPARSE_POINTS: FALSE FILE_SUPPORTS_REMOTE_STORAGE: FALSE FILE_VOLUME_IS_COMPRESSED : FALSE FILE_SUPPORTS_OBJECT_IDS : TRUE FILE_SUPPORTS_ENCRYPTION : FALSE FILE_NAMED_STREAMS : FALSE FILE_READ_ONLY_VOLUME : FALSE FILE_SEQUENTIAL_WRITE_ONCE : FALSE FILE_SUPPORTS_TRANSACTIONS : FALSE $ pwd /cygdrive/z $ gcc hello.c $ /usr/lib/csih/getVolInfo /cygdrive/z/a.exe Device Type : 7 Characteristics : 10 Volume Name : Serial Number : 3112497429 Max Filenamelength : 255 Filesystemname : Flags : 1006f FILE_CASE_SENSITIVE_SEARCH : TRUE FILE_CASE_PRESERVED_NAMES : TRUE FILE_UNICODE_ON_DISK : TRUE FILE_PERSISTENT_ACLS : TRUE FILE_FILE_COMPRESSION : FALSE FILE_VOLUME_QUOTAS : TRUE FILE_SUPPORTS_SPARSE_FILES : TRUE FILE_SUPPORTS_REPARSE_POINTS: FALSE FILE_SUPPORTS_REMOTE_STORAGE: FALSE FILE_VOLUME_IS_COMPRESSED : FALSE FILE_SUPPORTS_OBJECT_IDS : TRUE FILE_SUPPORTS_ENCRYPTION : FALSE FILE_NAMED_STREAMS : FALSE FILE_READ_ONLY_VOLUME : FALSE FILE_SEQUENTIAL_WRITE_ONCE : FALSE FILE_SUPPORTS_TRANSACTIONS : FALSE $ ls -dl /cygdrive/z/a.exe -rw-rw-r--+ 1 lavr cppcore 157753 Aug 14 21:30 /cygdrive/z/a.exe $ getfacl /cygdrive/z/a.exe # file: /cygdrive/z/a.exe # owner: lavr # group: cppcore user::rw- user:lavr:rw- group::r-- group:cppcore:r-- mask::rw- other::r-- $ icacls `cygpath -w /cygdrive/z/a.exe` Z:\a.exe S-1-22-1-4640:(R,W) S-1-22-2-5333:(R) S-1-22-2-5333:(R) S-1-22-1-4640:(R,W) Everyone:(R) Successfully processed 1 files; Failed processing 0 files -- 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