delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/01/23/22:14:42

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 584F03858412
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1706066080;
bh=iX4LRNHvcDLHQu1/Ycq6naVwAVovG3nhjCHl4IdNYqQ=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=gPWXU39z8vPdPybeRGLTIvv0oYktQq3JPkgcazWK4tWzBvJPkJuDU2UZEiXe0rXgT
m5fzcwfYrJJspu+Y4el50B2SuR9iUoAA0x5bCI+pRCzLqii+17sYpdaIJaOgRkmjQQ
4sG8iI4IQaQ1MAhRP5e5y8+7wsK3V6HVSLO3Hmic=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E58853858C2F
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E58853858C2F
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706066053; cv=none;
b=yFxLLBOrfReSnpgTqxggVADAyvUcAsTEgdEUE9hN4SPWhu7BvWTxBJ+oP3tPOB2i/mPMfdyuAc2Ig7C2FpFiO3dvN7nCc1RL1wZLteITUOSj0topqFbaMjqfH/2hDrcDv+SmRaZvOwVCjQH0NXGwyeQi7lSGra5D9KXpjRRLs9Q=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1706066053; c=relaxed/simple;
bh=g0drTpqtWbr9ggHtHnDAsBPEJk7BPzvdNdJOxGnyeb8=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=Dkiiz49ig377soqITbn/O+/96Q/qoyQWi9Iq2LyK8/aq96iNROZ1KL5k0xD8BB375I8MGXvLX+wzs3x+2YLnWJg62PJJpb0jKV/bljSkmMX/WP5N1RsHqqWpyZfidmt9lOi1QVg/ln3viSJNYtF1dBjNq7jWfynlNxsxXvlFYT8=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1706066049; x=1706670849;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=nNdnsDlwNUpng1AmkKWyJjzLtADx5/pjpqpeTcE8mjs=;
b=Z5jap9L6xyZhjFpKbCJPMZGeGcNrkPW5T0pYIYPI3KLAtJmk4y/wbWSTV1aTihoGsT
F7mpo+NK1Hy0jI5geZoef/PRWysQWCioxb8msVzzwpJJPROJ6Fpe50+ZxbJUtt4e6oJn
RsLDxDvEhdFO5ArO1aPOERH5uggTzG8ybiUJdaUUn6rFoY39e7k8M/ASKocJg589OSGY
ZXSgM9AcXCIHphsZD8VgRiJEwPb6swbqhlG9gVY71EFpJ7SiZ70Ln1t92/ihl7HaVdsf
C6+2TE9GGn82l0LdkcsFG+nlJA9NnJq81qc0o/T0Ltvnot+r9ZgfVEnQ3a0SOf6AY1Vk
DOEg==
X-Gm-Message-State: AOJu0Yzanxk7AHfA1BgMHTIcblG0JRwTzcYK6hzr2FwY7lic95J3E2xJ
E5cIdiBP27Zr3OOumTDFYNClbuUr1aqk1zf2z0ACewfBbzsyc8UPeI++Yzi8
X-Google-Smtp-Source: AGHT+IGXCcRjVKpLvJ5tqQDIc8qm4FP0ubv8t6juV03MpRPINbeVTdFGBi5lvENAjum8HWJ7h2N3cQ==
X-Received: by 2002:ac2:4d84:0:b0:510:11de:c384 with SMTP id
g4-20020ac24d84000000b0051011dec384mr30541lfe.55.1706066049138;
Tue, 23 Jan 2024 19:14:09 -0800 (PST)
Message-ID: <4a70e71e-f882-46d1-b359-2d00b38e6047@gmail.com>
Date: Wed, 24 Jan 2024 04:14:08 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Wrong NTFS permissions
To: cygwin AT cygwin DOT com
References: <7157367c-cd10-4738-8448-4b3c862ab13b AT freesbee DOT fr>
In-Reply-To: <7157367c-cd10-4738-8448-4b3c862ab13b@freesbee.fr>
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, 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 autolearn=ham autolearn_force=no version=3.4.6
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.30
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: Marco Atzeri via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Marco Atzeri <marco DOT atzeri 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 40O3EgFq032721

On 23/01/2024 22:54, Vincent Rivière via Cygwin wrote:
> Hi,
> 
> I'm facing a really weird issue with NTFS permissions.
> 
> $ umask
> 0022
> 
> $ cd /cygdrive/h/

what is H ?

> $ mkdir a
> 
> $ ls -ld a
> drwxr-xr-x 1 vincent vincent 0 Jan 23 22:35 a
> 
> # You can see that permissions are fine.
> 
> $ getfacl a
> # file: a
> # owner: vincent
> # group: vincent
> user::rwx
> group::r-x
> other::r-x
> default:user::rwx
> default:group::r-x
> default:other::rwx
> 
> # I have no idea if those default: values are good.
> 
> $ cd a
> $ mkdir b
> 
> $ ls -ld b
> drwxr-xrwx+ 1 vincent vincent 0 Jan 23 22:44 b
> 
> # Bogus permissions!
> 
> $ getfacl b
> # file: b
> # owner: vincent
> # group: vincent
> getfacl: b: Invalid argument
> 
> Am I missing something, or this is a Cygwin bug?
> 
> Cheers,

my guess,
it is related to the remote server as I see as expected

$ cd /cygdrive/z

$ mkdir a

$ getfacl a
# file: a
# owner: Unknown+User
# group: Unix_Group+0
user::rwx
group::rwx
other::rwx

$ cd a

$ mkdir b

$ getfacl b
# file: b
# owner: Unknown+User
# group: Unix_Group+0
user::rwx
group::rwx
other::rwx


Use csih package for more info on your remote package

$ /usr/lib/csih/getVolInfo .
Device Type        : 0x07
Characteristics    : 0x00000010
   FILE_REMOVABLE_MEDIA              : FALSE
   FILE_REMOTE_DEVICE                : TRUE
Volume Name        : <marco-backup>
Serial Number      : 2870488680
Max Filenamelength : 255
Filesystemname     : <NTFS>
Flags              : 0x0001002f
   FILE_CASE_SENSITIVE_SEARCH        : TRUE
   FILE_CASE_PRESERVED_NAMES         : TRUE
   FILE_UNICODE_ON_DISK              : TRUE
   FILE_PERSISTENT_ACLS              : TRUE
   FILE_FILE_COMPRESSION             : FALSE
   FILE_VOLUME_QUOTAS                : TRUE
   FILE_SUPPORTS_SPARSE_FILES        : FALSE
   FILE_SUPPORTS_REPARSE_POINTS      : FALSE
   FILE_SUPPORTS_REMOTE_STORAGE      : FALSE
   FILE_RETURNS_CLEANUP_RESULT_INFO  : FALSE
   FILE_SUPPORTS_POSIX_UNLINK_RENAME : FALSE
   FILE_VOLUME_IS_COMPRESSED         : FALSE
   FILE_SUPPORTS_OBJECT_IDS          : TRUE
   FILE_SUPPORTS_ENCRYPTION          : FALSE
   FILE_NAMED_STREAMS                : FALSE
   FILE_READ_ONLY_VOLUME             : FALSE
   FILE_SEQUENTIAL_WRITE_ONCE        : FALSE
   FILE_SUPPORTS_TRANSACTIONS        : FALSE
   FILE_SUPPORTS_HARD_LINKS          : FALSE
   FILE_SUPPORTS_EXTENDED_ATTRIBUTES : FALSE
   FILE_SUPPORTS_OPEN_BY_FILE_ID     : FALSE
   FILE_SUPPORTS_USN_JOURNAL         : FALSE
   FILE_SUPPORTS_INTEGRITY_STREAMS   : FALSE
   FILE_SUPPORTS_BLOCK_REFCOUNTING   : FALSE
   FILE_SUPPORTS_SPARSE_VDL          : FALSE
   FILE_DAX_VOLUME                   : FALSE
   FILE_SUPPORTS_GHOSTING            : FALSE


Regards
Marco


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