public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* test -r or -x always return false on an NFS mount?
@ 2020-09-22 20:14 Mario Emmenlauer
  2020-10-01 10:22 ` Mario Emmenlauer
  2020-10-06 15:46 ` Andrey Repin
  0 siblings, 2 replies; 12+ messages in thread
From: Mario Emmenlauer @ 2020-09-22 20:14 UTC (permalink / raw)
  To: cygwin


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-10-15  8:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 20:14 test -r or -x always return false on an NFS mount? Mario Emmenlauer
2020-10-01 10:22 ` Mario Emmenlauer
2020-10-06  1:41   ` Ken Brown
2020-10-06 15:46 ` Andrey Repin
2020-10-06 16:10   ` Mario Emmenlauer
2020-10-13 18:36     ` Corinna Vinschen
2020-10-13 19:00       ` Mario Emmenlauer
2020-10-14  8:28         ` Corinna Vinschen
2020-10-14  9:06           ` Mario Emmenlauer
2020-10-14 11:50             ` Corinna Vinschen
2020-10-14 14:57               ` Mario Emmenlauer
2020-10-15  8:16                 ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).