From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonicconh6003-vm2.mail.ssk.yahoo.co.jp (sonicconh6003-vm2.mail.ssk.yahoo.co.jp [182.22.37.43]) by sourceware.org (Postfix) with ESMTPS id 35D813894C0C for ; Tue, 11 Jan 2022 08:55:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 35D813894C0C 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: gk.gCjAVM1nPn3P3MsVg8PLNKG8oC5W.rq8fWqSsvY3gRY_RnKxYW_Pz7ZzVwRd _4W3j6n50rzN6LFfoR0ZEsdeiFlO_sHRhCz4dLlO.fjiTOLeyHfaDBFZ9qldD2YF8atsUF21V_8Z rnsQZpuWpgXxAECO_8sbLSCqHZalvRGwnPBOx00kbi31NX.w3iWyoBzg1EnyB3hjL6CPEu5kfxXM KO7l9yPgNsqUzDkvppg777l587S9HFN_f.vqp.tTI8GcY610NSbXVKK38r2wWwQtwl6FL5yNlMEG InF6sLEjRsUQ8PB3oX32z5foUUr8QvCe9OkZszQbKasJz9PepsjUxOkdMAO5yB7BodaMWWJ.vEuc OIMBh6A1gWMvVLCPB7cSVL6H7dgDSsrOOKejIOZBYhdQxzjzgsDeA7q772vrR2Oa5qH9vMI0yTMg lFALA6xXtAKYkEkDnrS367vWansqjd9vJqsjSwmLKem4MtllF8zJBzmDuyjHWWhUSeViUQ46Ij0U 94cGwLUToYv56vt7iwF14lZbYFvnnrRAGR5iBIchwB3vDGeVT9PBZhTePrqEU9ShmHqfCfyum6QN Odi6VvTzgPHLrfcPwQLfDVocTFL7d.IAoulyBJJg3dmeEBocU1_n.f6K_wNkWz9SN6lvdnrHdWNc _G8nYlWl.__RCErnYUytGG64Cj8ShpJZeLH5VHs07DN2E7dWSrf3DC0pFV5_sZxpeMkYvvZ8WRx0 9kfoSd3eR6hONHjYbpeBzL3H1fedbXQKJie.o9jMGI67g4b_oJBB5vIqa.HWhVwE5GptqqJdF4Nh xc0dXiEcOFlyFMoV5175DcGn.geBhJm9ju.vtgBjiHRYYgMzBJBsuu7w8LLn7M5.U Received: from sonicgw.mail.yahoo.co.jp by sonicconh6003.mail.ssk.yahoo.co.jp with HTTP; Tue, 11 Jan 2022 08:55:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641891340; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:References; bh=AHWRaXvSQyQPdvtPU+zmGygQeFAOAayturBPV8XStOg=; b=iJNZUlbDymleBOxNY8+QTaBz6d1FT1dgCpmOzyXmxp1Vo1Y5Ao2uQf2Bpn19sFSK OI9A7Ja6+mfs4DCqODHHxn9y5UcfT+5t+/EuOXhi/7JKvBvV1iVIX4qTkM5k4qY2/yb 5g/oy9h/WwurhqNTALJMlONWUIqnqg1QfeSaVbek= 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=lpeVx0fqtY+Z78ci8FEvAqcF3vDJlM4QZ2PzNxDvw2W6D06M+t1OCSsNszHsfVG9 Yq5qCu+3GWtlWDcDwlWanG6DCt8bUMpWj9UIeIqZIorLX08Muk3welX8bcqLVZ7l99g 9FMANgYYPcK45HUwq2OQY1hM9NJL6ycviEgMJE5w=; Date: Tue, 11 Jan 2022 17:55:39 +0900 (JST) From: Tatsuro MATSUOKA Reply-To: Tatsuro MATSUOKA To: Thomas Wolff , "cygwin@cygwin.com" Message-ID: <1678276178.1336676.1641891339407.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: <1678276178.1336676.1641891339407.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: Tue, 11 Jan 2022 08:55:47 -0000 > ----- Original Message -----=20 > From: "Tatsuro MATSUOKA"=20 > To: "Thomas Wolff" ; "cygwin > Date: 2022/01/10 =E6=9C=88 20:10 > Subject: Re: permission 600 >=20 >=20 > > ----- 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 = some > > >>>> weird consequence of Windows-specific stuff. Maybe a workaround co= uld be > > >>>> found for cygwin? > > >>> I made another windows account and sign in PC with different user n= ame. > > >>> 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 a= nd 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/Tem= p > > > (/cygdrive/c/Users/user/AppData/Local/Temp "tmp" environmental variab= le 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 NT= FS 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! >=20 > Tatsuro I would like to clean up USB drive so that I format the drive and come back= necesary file images were back. So I did not use convert. But thanks for your kindness. After formatting USB drive in NTFS format, chmod 600 works as expected. and=20 $ python3.8 -m jupyter lab now works without any patch work. Thanks! Tatsuro