This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: SMBFS mount's file cannot be made executable
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin at cygwin dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Thu, 15 Aug 2019 01:40:25 +0000
- Subject: Re: SMBFS mount's file cannot be made executable
- 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
- 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-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f0rSVQwDbHXOF0HNV+iqnh1ypymttenbfIFecxT0P4f5dgQgUgS34MTdqc4MeBU7bF94ECjH0aAny7Dcfp6qIZWTlc+jHzkSiTtaxBXBFxSLFunxATiAdZIlvn050JtQnmdvXjvFjYoTRS4eXlkeHe7QQukEOhkQG6C/NDV6hvL3Y1jDWJVq4aQNcKuhzP5fSmBWPdikiHatxO9PO7ULj+5RhVCQXdfN5yRxYaCIiGODgdqxO/3hxugVy1NkMsgFDATKZemUS4i9meANh9StsWOMb8IriU45QNIK05xjbKY945q6RKCMhQNXjWxnekoBOjCiYPD6Sf/SUqGCvMosQg==
- Ironport-sdr: /WzzHwgpuFRGAWyxNrAm84roBUz+mr/o0XBapS8t0q+leeRIdBI4sbs3Gc2WdscrqBNhS9b2kR vXFA0KipWxIQ==
- Reply-to: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
> 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 : <home>
Serial Number : 3112497429
Max Filenamelength : 255
Filesystemname : <NTFS>
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 : <home>
Serial Number : 3112497429
Max Filenamelength : 255
Filesystemname : <NTFS>
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