From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48221 invoked by alias); 14 Aug 2019 22:58:03 -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 48213 invoked by uid 89); 14 Aug 2019 22:58:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,WEIRD_QUOTING autolearn=ham version=3.3.1 spammy=Device, H*F:D*ca, H*Ad:D*ca, H*RU:sk:smtp-ou X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Aug 2019 22:58:01 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id y2DOhubQcIhW9y2DPhqRfa; Wed, 14 Aug 2019 16:58:00 -0600 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: SMBFS mount's file cannot be made executable To: cygwin@cygwin.com References: From: Brian Inglis Openpgp: preference=signencrypt Message-ID: <198c831d-4691-9c54-85f1-e605d439a028@SystematicSw.ab.ca> Date: Wed, 14 Aug 2019 22:58:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00187.txt.bz2 On 2019-08-14 05:22, Ken Brown wrote: > On 8/14/2019 12:23 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote: >>> Have you checked the default ACL on the directory containing the file? >> >> No, and there's nothing special there now that I checked. I can change the >> "Read & Execute" for the .exe file from the Windows file properties without >> having to deal with anything special or additional (like inherited >> permissions), so I don't think the containing directory has anything to do >> with it.> > I suspect the containing directory has a lot to do with it. You shouldn't > get an "Invalid argument" error below. > >> $ getfacl /cygdrive/z >> # file: /cygdrive/z >> # owner: lavr >> # group: cppcore >> user::rwx >> group::r-x >> other::r-x >> getfacl: /cygdrive/z: Invalid argument > > Running getfacl under strace might provide a clue as to what the problem is. > You could also try running /usr/lib/csih/getVolInfo.exe on that directory. Running getVolInfo shows you supported operations and options: $ /usr/lib/csih/getVolInfo "$exe" Device Type : 7 Characteristics : 20020 Volume Name : Serial Number : 112776248 Max Filenamelength : 255 Filesystemname : Flags : 3e706ff FILE_CASE_SENSITIVE_SEARCH : TRUE FILE_CASE_PRESERVED_NAMES : TRUE FILE_UNICODE_ON_DISK : TRUE FILE_PERSISTENT_ACLS : TRUE FILE_FILE_COMPRESSION : TRUE FILE_VOLUME_QUOTAS : TRUE FILE_SUPPORTS_SPARSE_FILES : TRUE FILE_SUPPORTS_REPARSE_POINTS: TRUE FILE_SUPPORTS_REMOTE_STORAGE: FALSE FILE_VOLUME_IS_COMPRESSED : FALSE FILE_SUPPORTS_OBJECT_IDS : TRUE FILE_SUPPORTS_ENCRYPTION : TRUE FILE_NAMED_STREAMS : TRUE FILE_READ_ONLY_VOLUME : FALSE FILE_SEQUENTIAL_WRITE_ONCE : FALSE FILE_SUPPORTS_TRANSACTIONS : TRUE You can often figure permissions problems out yourself by looking at the outputs from: $ ls --color=auto -dl "$exe" $ getfacl "$exe" $ icacls "$(cygpath -m ""$exe"")" and correlating the info, perhaps also with the same commands executed on the containing directory. If you post those output from your system, other may be able to help you. To first approximations: all file access problems are permissions problems; and all programming problems are application programmer array access problems. ;^> You have to first totally eliminate all possibilities of those, before you should bother looking at other prossible causes. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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