public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: permission 600
Date: Sun, 9 Jan 2022 06:25:44 -0500	[thread overview]
Message-ID: <abb3ae3c-ba9a-d3bf-fc1e-83a8af5a706d@cs.umass.edu> (raw)
In-Reply-To: <1804805239.1181531.1641726692666.JavaMail.yahoo@mail.yahoo.co.jp>

On 1/9/2022 6:11 AM, Tatsuro MATSUOKA wrote:
>> ----- Original Message -----
>>
>> From: "Thomas Wolff"
>> Date: 2022/01/09 日 17:51
>> Subject: Re: permission 600
>> Am 09.01.2022 um 07:10 schrieb Tatsuro MATSUOKA:
>>>> ----- Original Message -----
>>>>
>>>> From: "Marco Atzeri"
>>>> To: "cygwin> Date: 2022/01/09 日 14:39
>>>> Subject: Re: permission 600
>>>>
>>>>
>>>> On 09.01.2022 06:28, Tatsuro MATSUOKA wrote:
>>>>> $ echo aaa > test.txt
>>>>> $ ls -l  test.txt
>>>>> -rw-r--r-- 1 user user 4 Jan  9 14:07 test.txt
>>>>> $ chmod 600 test.txt
>>>>> $ ls -l test.txt
>>>>> -rw-r--r-- 1 user user 4 Jan  9 14:07 test.txt
>>>> it works for me
>>>>
>>>> $ ls -l test.txt
>>>> -rw-r--r-- 1 Marco Kein 4 Jan  9 06:35 test.txt
>>>>
>>>> $ chmod 600 test.txt
>>>>
>>>> $ ls -l test.txt
>>>> -rw------- 1 Marco Kein 4 Jan  9 06:35 test.txt
>>>>
>>>> I suspect that having user and group called same
>>>> is the clue
>>>>
>>> Ah! Thanks!
>>>
>>> Tatsuro
>> Did you verify it by using different names?
>> It can hardly be an explanation by POSIX means. If so, it must be some
>> weird consequence of Windows-specific stuff. Maybe a workaround could be
>> found for cygwin?
> 
> I made another windows account and sign in PC with different user name.
> But result for chmod 600 gave the same results.
> I found the workaround for jupyter by readind the code of "paths.py" in jupyter.

You can find the underlying Window permissions using icacls.  Cygwin
has to set up some funky work-arounds to model some of the POSIX
permissions - the two models are substantially different.  Sometimes
clearing back to some nominal Windows permissions and applying
chmod again helps.  "setfacl -b" can help clear out permissions,
etc.  Don't forget that permissions can be inherited from the
containing directory as well.

Other people may be able to offer more specific guidance, especially
if you post the output of icacls.

Best - Eliot Moss

  reply	other threads:[~2022-01-09 11:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1804805239.1181531.1641726692666.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2022-01-09 11:11 ` Tatsuro MATSUOKA
2022-01-09 11:25   ` Eliot Moss [this message]
     [not found] <1678276178.1336676.1641891339407.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2022-01-11  8:55 ` Tatsuro MATSUOKA
     [not found] <996962702.1253083.1641813036736.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2022-01-10 11:10 ` Tatsuro MATSUOKA
     [not found] <13484389.1228247.1641769990069.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2022-01-09 23:13 ` Tatsuro MATSUOKA
2022-01-09 23:26   ` Thomas Wolff
     [not found] <517210150.1192809.1641708654835.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2022-01-09  6:10 ` Tatsuro MATSUOKA
2022-01-09  8:51   ` Thomas Wolff
     [not found] <584156248.1199495.1641706088853.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2022-01-09  5:28 ` Tatsuro MATSUOKA
2022-01-09  5:38   ` Marco Atzeri

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=abb3ae3c-ba9a-d3bf-fc1e-83a8af5a706d@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=cygwin@cygwin.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).