| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.3.2 sourceware.org 0F1E2386F430 |
| Authentication-Results: | sourceware.org; |
| dmarc=none (p=none dis=none) header.from=emmenlauer.de | |
| Authentication-Results: | sourceware.org; |
| spf=fail smtp.mailfrom=mario AT emmenlauer DOT de | |
| From: | Mario Emmenlauer <mario AT emmenlauer DOT de> |
| To: | cygwin AT cygwin DOT com |
| Message-ID: | <d05f79db-5574-d408-28ce-7840cddff7ec@emmenlauer.de> |
| Date: | Tue, 22 Sep 2020 22:14:44 +0200 |
| User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 |
| Thunderbird/68.10.0 | |
| MIME-Version: | 1.0 |
| X-SA-Exim-Connect-IP: | 188.192.104.34 |
| X-SA-Exim-Mail-From: | mario AT emmenlauer DOT de |
| X-Spam-Checker-Version: | SpamAssassin 3.4.2 (2018-09-13) on |
| server2.sourceware.org | |
| X-Spam-Level: | |
| X-Spam-Status: | No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
| SPF_HELO_NONE, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.2 | |
| Subject: | 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 AT cygwin DOT com |
| X-Mailman-Version: | 2.1.29 |
| List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
| List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
| List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
| Sender: | "Cygwin" <cygwin-bounces AT cygwin DOT com> |
Dear All,
thanks for the awesome Cygwin, its really great!
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 scrips.
All the best,
Mario Emmenlauer
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |