From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aldebaran.he1ix.org (aldebaran.he1ix.org [IPv6:2a01:4f8:173:803:0:a1de:ba:a]) by sourceware.org (Postfix) with ESMTP id 0C8143857C45 for ; Thu, 1 Oct 2020 10:22:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0C8143857C45 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=emmenlauer.de Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=mario@emmenlauer.de Received: from port-213-160-25-97.static.as20676.net ([213.160.25.97] helo=[192.168.33.110]) by aldebaran.he1ix.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1kNvjD-0006Hy-7r for cygwin@cygwin.com; Thu, 01 Oct 2020 12:22:23 +0200 From: Mario Emmenlauer To: cygwin@cygwin.com References: X-Tagtoolbar-Keys: D20201001122222802 Message-ID: <52be2ff1-85fe-87e6-55d1-fb9ab36fe086@emmenlauer.de> Date: Thu, 1 Oct 2020 12:22:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 213.160.25.97 X-SA-Exim-Mail-From: mario@emmenlauer.de X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, TXREP, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: test -r or -x always return false on an NFS mount? X-SA-Exim-Version: 4.2.1 (built Sun, 08 Nov 2009 07:31:22 +0000) X-SA-Exim-Scanned: Yes (on aldebaran.he1ix.org) X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2020 10:22:27 -0000 On 22.09.20 22:14, Mario Emmenlauer wrote: > But since today I met a problem: I mounted a Linux NFSv3 share using > the Windows 10 shipped NFS client. The user and group ID are mapped > via registry settings AnonymousUid and AnonymousGid in the entry > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default > > Everything seems to work quite well, and in `ls -la` I can see the > file permissions and user and group entries. But when using `test` > to check for read (`test -r`) or execute permissions (`test -x`), it > always returns false, even for readable files. `ls` on the other hand > shows the permissions correctly, and `cat`ing the files works without > problems. > > I've read https://cygwin.com/cygwin-ug-net/using-filemodes.html > about the Cygwin file permissions for NFS, and also the NFS account > mapping at https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nfs, > but as far as I can see, they are both unrelated. Google turned up no > useful hits for keywords "cygwin" "test" and "nfs", so I'm a bit at the > end of my wit. > > Is this a known issue, and/or are there any workarounds? I'm currently > using `test -e` in place of read or execute checks, but it basically > breaks all my build scripts. Is there something I should do about this issue? I could look into the source code of `test` on Cygwin if someone can point me to the correct repository? Or should I just file an issue? The issue is not a super high priority for me personally, but I guess its quite a limitation of Cygwin if essential scripting functionality is misbehaving on NFS. All the best, Mario Emmenlauer