From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 866FE3858C50 for ; Thu, 3 Aug 2023 23:07:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 866FE3858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6bca66e6c44so1330118a34.0 for ; Thu, 03 Aug 2023 16:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691104041; x=1691708841; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=P4ZQ1NNnrkE9c+u87G6Kv4PxljqH4sKujoohOtsFgio=; b=WGklvT/GhcR3KcB0vsZQV9Ynh3y1+rDHYC+SKOjJyEvokv4QtIT02XveAFMZGJUOgU 2VJ/jTsEKfQg0lefRsZmd4K+ZiCReVNvWFCdnz74p0k620aRs5EuTdK8jxZCZycr6eh5 qE6GoZUMID0HTnvbptDkDC4ttdROLA/avEmDglVDKWMs3Z+u9wLx083aaPplp+mrSJEo qdB6MR1lyR2vnSF8RPZV8p3vyzwwPz7PTPV1g/QBOX3MUYEy98Fl9MLAUXkD8RVc9xio hqJwA3889Aw3hfeQfSvLLeFS1FLNfER6nviYJ9hwOVtB8ktrt6H7qyvW5stTCJepZqui pUDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691104041; x=1691708841; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P4ZQ1NNnrkE9c+u87G6Kv4PxljqH4sKujoohOtsFgio=; b=W6A41UW4nPm8WUx9fOHJ5RizmRDs46NZqqK9Yuf49PXkPycabTsAyu9gZrEQUVVTyb jtfTwzF+0PHzk3PUW212qHXnaXBi+Mi3RrGqFFZYkxZZTsHx/LmSZ9oToBLJYgap4hd5 iwxUPxsdMMXwHI/1huOHruRnFfMXjIGkk69iCzWeV2AWFcZ5e97GZPuOqggiCb6Abo1Y 2Tq+fphWwqoTlLKU3SH7kylMOsWtKoARGIciiMcHcfZFepisRitwTCTKa7g31jAYGP1C VdLOXJ+wV+BJ1Sc+H9ZGGLSPrdKghDC/JilKtzTVWFTyGk2kHDQBEQYQiZT32t1UCPH5 xBpQ== X-Gm-Message-State: AOJu0Yy9JObdgtnbgPbId1aXDROhyuikAD8EIpSdk6P1pREvq/KIZts7 Zvu1DXJu8/kJdUjogAx04puIS+KA77/kvyS7yypkgP4ez2Kf4S9U X-Google-Smtp-Source: AGHT+IGz0dN1m25xQ5KR/hC4ccQqAyPJxg7jkyAQ6XRRkYyb62q2r5csa3IAd+wGTAt+oXEMgS5cC9Z8M4oAXxsi4AQ= X-Received: by 2002:a05:6870:4694:b0:1be:cc5b:6ce with SMTP id a20-20020a056870469400b001becc5b06cemr28282oap.20.1691104040847; Thu, 03 Aug 2023 16:07:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Martin Wege Date: Fri, 4 Aug 2023 01:07:09 +0200 Message-ID: Subject: Re: ms-nfs41 mount: Where does Unix_User+0 and Unix_Group+0 come from? To: ms-nfs41-client-devel@lists.sourceforge.net, cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,URI_DOTEDU autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Aug 3, 2023 at 8:46=E2=80=AFPM Martin Wege wrote: > > Hello, > > We are working to deploy the ms-nfs41-nfs-filesystem on our Windows > machines, and encounter some issues with Cygwin (latest stable). > > For example, if we go to the ms-nfs41-nfs-filesystem (not the NFS > version 3 client from Windows!!!) with cd X: ; cd tmp/data9/, and do a > ls -l we get 'Unix_User+0' and 'Unix_Group+0' for user and group > names. > The question is: Where do these names come from - Windows, > ms-nfs41-nfs-filesystem or Cygwin? > getent passwd and getent group do not list this on Cygwin. > NFS version 4 server "lordbatman" has user mlw=3Duid(3620) and group mlw= =3Dgid(3620) > > Steps to reproduce: > 1. Download and install cygwin. > 2. Download http://www.citi.umich.edu/projects/nfsv4/windows/120612/ > and install it. > 3. Start NFS version 4 client daemon: > ms-nfs41-client-x64/nfsd_debug.exe -d 3 --noldap --gid 3620 --uid 3620 > 4. Mount NFS version 4 directory: > ms-nfs41-client-x64/ms-nfs41-client-x64/nfs_mount.exe -p -o sec=3Dsys X > 'lordbatman.bias.dfn.de:/export/home/mlw' > > Expectation: > Cygwin ls -l should list file user/group as mlw/mlw > > Actual results: > Cygwin ls -l lists file user/group as Unix_User+0/Unix_Group+0 Did a cygwin source clone, and found this: cygwin$ grep -r -E 'Unix_(User|Group)' . ./newlib-cygwin/winsup/utils/mkgroup.c: "Unix_Group", ./newlib-cygwin/winsup/utils/mkgroup.c: "Unix_Group", ./newlib-cygwin/winsup/utils/mkpasswd.c: "Unix_User", ./newlib-cygwin/winsup/utils/mkpasswd.c: But I do not understand this code. In which cases are Unix_User+0 and Unix_Group+0 used? Martin