delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/10/22:34:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 14CBC3858400
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cs.umass.edu
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu
Subject: Re: chmod g+s ineffective
To: Chris Wagner <wagnerc AT plebeian DOT com>, cygwin AT cygwin DOT com
References: <9c053381-4466-ea8a-11d6-ea2e676d3b35 AT huarp DOT harvard DOT edu>
<792558531 DOT 20220629153952 AT yandex DOT ru>
<dd5e2750-5d86-0283-84fb-ef10efd4a8a0 AT huarp DOT harvard DOT edu>
<7964c08d-83cb-aab3-5d1c-4a5f0a86bf0a AT huarp DOT harvard DOT edu>
<463526579 DOT 20220701025601 AT yandex DOT ru>
<ddda74cf906b99988ecbbb30f6f5ef0a AT plebeian DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <d661eca3-484b-258d-7ba6-7af22347d27a@cs.umass.edu>
Date: Sun, 10 Jul 2022 22:33:47 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <ddda74cf906b99988ecbbb30f6f5ef0a@plebeian.com>
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, BODY_8BITS,
JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS,
TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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>
Reply-To: moss AT cs DOT umass DOT edu
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin 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 26B2Y5XK006551

On 7/10/2022 10:17 PM, Chris Wagner wrote:
>>> On 6/29/2022 9:18 AM, Norton Allen wrote:
>>>>>> On one machine I have, chmod g+s fails to set the sticky bit. The >>> command
>>>>>> does not return any error, but ls -l continues to show the bit not set.
>>>>>>      $ mkdir foo
>>>>>>      $ chgrp flight foo
>>>>>>      $ chmod g+ws foo
>>>>>>      $ ls -ld foo
>>>>>>      drwxrwxr-x+ 1 nort flight 0 Jun 29 06:50 foo
> 
> Hi.  The permission bits are implemented as normal Window's DACLs (Discretionary Access List).  +s 
> is implemented magically with the NULL SID.  You can view it from Explorer or with icacls.  Try 
> checking the return code (echo $?) from chmod.  Also try changing perms from Explorer.  You might 
> not be able to set the NULL SID for some reason.

I'd like to add that, for good reason, the Cygwin DACLs do not conform
to the order of entries that some Windows tools prefer.  Don't let any
Windows program/tool reorder the DACLs!  It will break the Cygwin
functionality, and the Cygwin order does not break Windows functionality.

Best - Eliot Moss

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