From: Norton Allen <allen@huarp.harvard.edu>
To: moss@cs.umass.edu, Chris Wagner <wagnerc@plebeian.com>,
cygwin@cygwin.com
Subject: Re: chmod g+s ineffective
Date: Mon, 11 Jul 2022 12:49:01 -0400 [thread overview]
Message-ID: <2c7cbdb4-1fe4-501b-f5cb-82204b9e4089@huarp.harvard.edu> (raw)
In-Reply-To: <d661eca3-484b-258d-7ba6-7af22347d27a@cs.umass.edu>
On 7/10/2022 10:33 PM, Eliot Moss wrote:
> 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.
>
Right. My experience (Windows 10) is that I cannot change perms from
Explorer if I don't let them reorder the perms (which I do not).
I have been separated from the machine that exhibits the problem, so I
have not been able to try the solutions suggested, but expect to have it
back in a week or so.
prev parent reply other threads:[~2022-07-11 16:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 12:12 Norton Allen
2022-06-29 12:39 ` Andrey Repin
2022-06-29 14:18 ` Norton Allen
2022-06-29 17:51 ` Norton Allen
2022-06-30 23:56 ` Andrey Repin
2022-07-11 2:17 ` Chris Wagner
2022-07-11 2:33 ` Eliot Moss
2022-07-11 16:49 ` Norton Allen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2c7cbdb4-1fe4-501b-f5cb-82204b9e4089@huarp.harvard.edu \
--to=allen@huarp.harvard.edu \
--cc=cygwin@cygwin.com \
--cc=moss@cs.umass.edu \
--cc=wagnerc@plebeian.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).