From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id E0EFA386F500; Mon, 13 Nov 2023 19:39:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0EFA386F500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1699904358; bh=42TzekNVjDpFrQ8x4dyFOkBSFp5UuUXcoZYS9n+NcZA=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=EcxLfCBzbX6EpMkKTYJCKZQOgPumzCMJILdClAPn3IiDtJQqMvBw0DLWwukx/MnpV /3gPl9i2J5fYI0UNybGd4hN28MthyxNcb9TwhyKcmGvWEl6Vugz95TlZgDAPQynNxv tBK7VVVD0dMBs+EYoDW4s0N/V5X5VVMIktbWTo1Y= Received: by calimero.vinschen.de (Postfix, from userid 500) id 27AFCA8075F; Mon, 13 Nov 2023 20:39:17 +0100 (CET) Date: Mon, 13 Nov 2023 20:39:17 +0100 From: Corinna Vinschen To: cygwin-developers@cygwin.com Subject: Re: Cygwin 3.5 mapping uid/gid on NFSv4 filesystem to unexpected IDs ... Message-ID: Reply-To: cygwin-developers@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: On Nov 10 13:22, Roland Mainz wrote: > On Tue, Oct 31, 2023 at 5:20 PM Roland Mainz 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