From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by sourceware.org (Postfix) with ESMTPS id 9C68B3858414 for ; Fri, 10 Feb 2023 18:41:31 +0000 (GMT) Authentication-Results: sourceware.org; dmarc=permerror header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MnqbU-1ooVZ70By6-00pJVL; Fri, 10 Feb 2023 19:41:27 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 20993A80B89; Fri, 10 Feb 2023 19:41:26 +0100 (CET) Date: Fri, 10 Feb 2023 19:41:26 +0100 From: Corinna Vinschen To: Norton Allen Cc: "cygwin@cygwin.com" Subject: Re: chmod g+ws unsuccessful, "NULL SID" icacls missing Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: Norton Allen , "cygwin@cygwin.com" References: <0219f7c5-ca4c-bae3-3e13-abfc14c53e01@huarp.harvard.edu> <8af5a564-094f-e4eb-25b4-bed2b9294f39@huarp.harvard.edu> <1edf29a6-9fec-2964-cf99-e722e3121f4f@huarp.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1edf29a6-9fec-2964-cf99-e722e3121f4f@huarp.harvard.edu> X-Provags-ID: V03:K1:HOewtyWqhIOkAdRxw6lKM9061MOCehorkvEXCRGLw4v0lBxlwwE NlnkokbqeIEC0VVK7Ry6FqM3frDNWyvfNwGAE6EC5NQFaqZEnFFoOLMNoYqvlIvUXa9yCgS l+hyOURWE26Ib5ZhgwlrrUtGLKB9TDPmfm1LLftPAcIpX4BABznbnLZheNWAUJkL9vF55MB Oyfy749fx5+SYVfzV19zw== UI-OutboundReport: notjunk:1;M01:P0:An1IIUBgGnA=;ONVM4loPdIbw0WwJd9T9xXDSOt7 A6WCeWdrBcw2/dRgQX+yhs59ODGJrdiLSuRWmI4bm21UgR21iANxaSYAb2TzEA61RF4j0NQc9 MHshgDiyA4TdXC1wjv/tKv5YeAv3qyRX9ufoZ8pLZx1NhqOXIE9n/cQsyoEqimC+/rWd8MVuH fPLjdG/q0gg6LgWy63q45Pd7qPIIkkv1E0enP2kKjDFoci/w3XCtSj6cmVx80m4NvYn6rxCPE Uyrt+n8zV+HC4x+H/GqZdlgw3hiF3JckGH3c4f82Mk6KmoCT1M6OXQoO/hz+yQldwdtkWfNED Pqe8/LKJNynBlZIcUL0eLGsdJfiLs02en34U3tx4s7sZ/xykRXeS0eeAuBkW4iRlZMCE9JGJP oEmitnnuYTNep4VkfdAx1DYrg9Dv7sx16iWZVE8jx8y1Ovv5ms0suhpPSqf4XwWaxAREv8sie EgEGwYlGEgYetBl2qIX4z36xPSpexnhEuKzNmhASUClnLAG1GuLNtm7lB3VHjxV+pPWVLJ+ls peqENE17AmlniDLRzGFSgIguH/JKG+o/naVvU1tNx3KO1mfER5B2lBjHzECSpeqlK5Z+BypI0 Pa2RaZx+GpYUrWcYJ9YLsgaEXN2IrpxFC3xp8SrWuSFnosNgIsS5qYC64B6YN0amzIU/7pLvK dJLzesGNB1gBCmbeH3F07OdSjXeu3OHwNB9pKSLlkA== X-Spam-Status: No, score=-97.3 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_FAIL,SPF_HELO_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Feb 10 11:42, Norton Allen via Cygwin wrote: > On 2/9/2023 4:09 PM, Corinna Vinschen wrote: > > On Feb 9 13:25, Norton Allen via Cygwin wrote: > > > On 2/8/2023 4:05 PM, Norton Allen via Cygwin wrote: > > > > [...] > > > > The problem: > > > > > > > > $ chmod g+ws fails to set the 's' bit, and the resulting icacls output > > > > does not contain any "NULL SID" entries. I am seeing the same problem on > > > > (at least) two different systems setup by my organization. One of these > > > > was just re-imaged and I installed Cygwin yesterday with no customized > > > > configurations. AV is Windows Defender, but I suspect if that were the > > > > culprit, there would have been more noise. > > > > [...] > > > [...] > > > Any idea what g+s should be doing? Any more/better information I can > > > provide? > > What you observe is a bug in Cygwin, plain and simple. Without going > > into too much detail, part of the problem could never be observed with > > older coreutils, which we had to live with for much too long in the > > Cygwin distro. The newer coreutils handles permissions slightly > > differently and that dropped the mask from the buggy code. > > > > I applied a patch which, hopefully, fixes this problem (in fact, plural, > > "these problems"). > > > > A new Cygwin test release 3.5.0-0.162.g498fce80ef33 is just being built > > and should be up in an hour or so. You can simply install it via > > Cygwin's setup tool as soon as it's on your favorite mirror. > > > > If it works as desired, it will be part of the next Cygwin bugfix > > release 3.4.6. > > Corinna, > > The fix seems to work like a charm! And I am happy to be wrong about the > source of the problem. Great, thanks for testing! Corinna