From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonicconh6003-vm6.mail.ssk.yahoo.co.jp (sonicconh6003-vm6.mail.ssk.yahoo.co.jp [182.22.37.47]) by sourceware.org (Postfix) with ESMTPS id 0354B3896C04 for ; Mon, 10 Jan 2022 11:10:43 +0000 (GMT) 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. Received: from sonicgw.mail.yahoo.co.jp by sonicconh6003.mail.ssk.yahoo.co.jp with HTTP; Mon, 10 Jan 2022 11:10:41 +0000 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 Reply-To: Tatsuro MATSUOKA To: Thomas Wolff , "cygwin@cygwin.com" Message-ID: <996962702.1253083.1641813036736.JavaMail.yahoo@mail.yahoo.co.jp> Subject: Re: permission 600 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <996962702.1253083.1641813036736.JavaMail.yahoo.ref@mail.yahoo.co.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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2022 11:10:47 -0000 > ----- Original Message ----- > From: "Thomas Wolff"=20 > To: "cygwin@ > Date: 2022/01/10 =E6=9C=88 08:28 > Subject: Re: permission 600 >=20 >=20 >=20 > Am 10.01.2022 um 00:13 schrieb Tatsuro MATSUOKA: > >> ----- Original Message ----- > >> > >> From: "Eliot Moss" > >> To: "cygwin > >> Date: 2022/01/09 =E6=97=A5 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 =E6=97=A5 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 =E6=97=A5 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 so= me > >>>> weird consequence of Windows-specific stuff. Maybe a workaround coul= d be > >>>> found for cygwin? > >>> I made another windows account and sign in PC with different user nam= e. > >>> 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=3Dtrue > > =3D> > > export JUPYTER_RUNTIME_DIR=3D/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 =3D> FAT32 > > chmod works =3D> 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=20 > reformatting, > using $SYSTEMROOT/System32/convert >=20 I will try after backup.=20 Thanks! Tatsuro