Cygwin 3.5 mapping uid/gid on NFSv4 filesystem to unexpected IDs ...

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Nov 13 19:39:17 GMT 2023


On Nov 10 13:22, Roland Mainz wrote:
> On Tue, Oct 31, 2023 at 5:20 PM Roland Mainz <roland.mainz@nrubsig.org> wrote:
> >
> > Is the Cygwin behaviour (i.e. mapping of NFS3Attr uid/gid to different
> > uid/gid in Cygwin $ ls -n #) intended ?
> 
> In the meantime I tried this:
> ---- snip ----
> # Map NFSv4 uid/gid 1:1 to Cygwin uid/gid - does not work
> regtool -i set '/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/NTDS/trustPosixOffset'
> 0x0
> regtool -i set '/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Netlogon/Parameters/trustPosixOffset'
> 0x0
> ---- snip ----

This can't work.  trustPosixOffset is not a value in the registry. It's
stored in AD only and fetched from the domain's system container via
LDAP.

uid/gid mapping between NFS server and Cygwin works by utilizing the NFS
client's identity mapping as described in
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nfs

If this doesn't fit your needs, you have to overload what's given to you
by maintaining this info via /etc/passwd and /etc/group entries.


Corinna


More information about the Cygwin-developers mailing list