delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/03/19:07:59

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24B003857835
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1691104078;
bh=qHg9DqY0mCEEVVEDnUuv/Amsm9cwuDfZyPwHNQfnk6c=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=FcmqGNNgL5oXUix3kkPm1GV100DcYmTUv4VBfaztgxNcOfW93C1DWZ4806tv4PAwe
I3wK2n4t1EqI89lksto7fQa3KIGQf0sb2BGXwHCsXxe8rOLm0D/xDpdh7zBp1Wl1Xg
iMVgWs+ecUiEoq/Gsykc88tyU00LBOCJIooHQv+0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 866FE3858C50
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: <CANH4o6NGYsDPgnW7F6qdMWcEnET2yNKFwS-E=DUQtR9t8Q2Njg AT mail DOT gmail DOT com>
In-Reply-To: <CANH4o6NGYsDPgnW7F6qdMWcEnET2yNKFwS-E=DUQtR9t8Q2Njg@mail.gmail.com>
Date: Fri, 4 Aug 2023 01:07:09 +0200
Message-ID: <CANH4o6OPQX9im5Ms_LxNgRxw8CEHMSNdwsKrfaYoRzQHS01TDw@mail.gmail.com>
Subject: Re: ms-nfs41 mount: Where does Unix_User+0 and Unix_Group+0 come from?
To: ms-nfs41-client-devel AT lists DOT sourceforge DOT net, cygwin AT cygwin DOT com
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
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>
From: Martin Wege via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Martin Wege <martin DOT l DOT wege AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 373N7wGV012918

On Thu, Aug 3, 2023 at 8:46 PM Martin Wege <martin DOT l DOT wege AT gmail DOT com> 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=uid(3620) and group mlw=gid(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=sys 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

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019