delorie.com/archives/browse.cgi | search |
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 0354B3896C04 |
Authentication-Results: | sourceware.org; |
dmarc=pass (p=none dis=none) header.from=yahoo.co.jp | |
Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=yahoo.co.jp |
X-YMail-OSG: | PG7HfJoVM1mhUC4YcQyh032QdgS0Ck3pPjBAbEHvD4oyqIkoV.pAFcb8NjpCe8j |
PV6R85LaqoNCET5QcyAdVt6EETmA6olzUDiCZPlnTAzInW1l36GfdLslHxI7YShjiYXiUzwxKq2b | |
QM4B89WSOGFaM0a3z5Cs79IHxfKVSY9CZzng00dPtjKX8yn8DsQzatJsRb9rTucvd2Gp_iunzgsI | |
FJVFGNR0ouuFpLw6N.odBRJnDmv2d4EPtkzl_P8B5WTWyTd2EdcxHVFfXPxcajoQ1HgAGWKYM5rx | |
OT57l9cMLd..WnGh_CYgE18VQqsvu.JWgI2RDrsrKj5ebpzlasE30EaDh7UqLlPsUCqa5wdA_DWF | |
kNSi0_D2HYkv66nTdtGaigtMOAz7GIBa2WI0yo3U_9t0_lWuCQe_a1Hlj1X7FFTgZ4JXEiqtivAP | |
.IB.qJyvlQGxBirv7lRL.6w0376a3TyNyFgq5QBUsJDJwsrj7LRXY58gIwvVZEY2GTfz2nIMWInR | |
1hS617JCklhThLoVBOpSR4BcRwxyQfjCWBthatzBJIgeQeAIKQ_5gvbH7xoDua5We.P0LeovejXe | |
yJx0S2gCZbX8FDXbbchvkS_ppbDmoovwqGqtQiS3KZnZQl9N0eSE9Hp7WRceDa39agDwVroe3Hc6 | |
y.3cJ5qCEnZ94hpC.MX8369iqynEnGLUjgv22Us4YzSihp33tGAKiN2ZTt3diPsiDFaq14yBpcKj | |
7tZcqqsgMhbpPA59t6WfE9yc6vIQiVtbIi6E4PlqSBqNP7S.fs0l1fhpqsDDYHfmZWKkxrQHizLM | |
0uvYaJvNGLtWYw5oMt6bjHtsoRt2IT4HlCJSH3s7USEiWl2uRTdmQ5AZhmyyNbCS. | |
DKIM-Signature: | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641813041; |
s=yj20110701; d=yahoo.co.jp; | |
h=Date:From:Reply-To:To:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:References; | |
bh=28X3QTzQJ0Vrf6orlmzy6kEE/gU4HrJClhqyr3Gaqe8=; | |
b=PLCjWV3CyYKD+Z4uEuoxvWYPAtZNYIQ35R8jwpvydm0pMtVxt2s5vKlMLwIEMnYi | |
lLxW91hLV0rbERvH+qGgani7LxtwONXrPGgEawQWtkfg+cOW52J+FZnuWRnQFbRfvs4 | |
KQQr7yAfmPmLSziC8iBPEuX3sEOgVsUJZOlXeqSc= | |
DomainKey-Signature: | a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; |
h=Date:From:Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References; | |
b=f833V1xSvKZOw4jwGBwr/y50oherGo00Lej+RhahecrQB3bDhAM2cgSd6KFxjiYk | |
8DDYs/qUDVd0cHKatufosLIx3NL0u8SZ1k8UfTL5I5p5a71QO0uNydXVBm5WszU3T+m | |
jlC6+TrBilj8UBjBZ4bvdM9B1SHoMbgS+3hQEaxE=; | |
Date: | Mon, 10 Jan 2022 20:10:36 +0900 (JST) |
From: | Tatsuro MATSUOKA <tmacchant2 AT yahoo DOT co DOT jp> |
To: | Thomas Wolff <towo AT towo DOT net>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Message-ID: | <996962702.1253083.1641813036736.JavaMail.yahoo@mail.yahoo.co.jp> |
Subject: | Re: permission 600 |
MIME-Version: | 1.0 |
References: | <996962702 DOT 1253083 DOT 1641813036736 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT co DOT jp> |
X-Spam-Status: | No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, |
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, | |
FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, | |
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 | |
X-Spam-Checker-Version: | SpamAssassin 3.4.4 (2020-01-24) 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-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: | Tatsuro MATSUOKA <matsuoka AT nuce DOT nagoya-u DOT ac DOT jp> |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 20ABBORB019048 |
> ----- Original Message ----- > From: "Thomas Wolff" > To: "cygwin@ > Date: 2022/01/10 月 08:28 > Subject: Re: permission 600 > > > > Am 10.01.2022 um 00:13 schrieb Tatsuro MATSUOKA: > >> ----- Original Message ----- > >> > >> From: "Eliot Moss" > >> To: "cygwin > >> Date: 2022/01/09 日 20:26 > >> Subject: Re: permission 600 > >> > >> > >> 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 > >> > > Because my C drive is not enough, I installed cygwin into USB drive and make home directory on it. > > chmod issue are story files on the usb drive. > > On files on C drive, chmod 600 works as expected. > > > > My workround for jupyter changed : > > export JUPYTER_ALLOW_INSECURE_WRITES=true > > => > > export JUPYTER_RUNTIME_DIR=/cygdrive/c/Users/user/AppData/Local/Temp > > (/cygdrive/c/Users/user/AppData/Local/Temp "tmp" environmental variable value in my current environment.) > > > > For another usb drive, chmod works as expected. > > chmod does not work => FAT32 > > chmod works => NTFS > I was about to ask... > > I back up all files to the external HDD and format FAT32 drive to NTFS drive and back them. > You can actually convert a USB drive to NTFS without copying files and > reformatting, > using $SYSTEMROOT/System32/convert > I will try after backup. Thanks! Tatsuro -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |