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 66D3B383543D 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: VFA2c.wVM1kfQloynSyD0k74wEY8NbT6u.fn4yF.iYdCPlpzP9pbMfoe9snvHPf JEsEPHop9_BgC042ZcEj7oXHyktCg4Ee88_w0sIoyM1Q5M7fbwSaLOovqEgqvik7j_zUXLhD1wlB 7C6AHVe6.Vn0fwN4oWeMW9AVD3blsZEcznnylWzOho5mdd8CNKuBBVaN48b8XC0PTo9.4rIiJmvF IncAzKPW4_eMkIreKZXG5jbZFSIa2ZHIkOUYW_eE9Mk9ipEF1w8WcAj0eFOHepBwysb1pO_ZI2bl A1GIcAp8U.78ZkDTvFprsMNX89IeCjGbWyCw6oxlWR7O5oYpZYoR8nxfHtw2S3Rhxr0C6Rp6AT01 ZIGIwhK27uINIvueKfY2k5pjD7PJjRkQ32vCOqqZAoLPbQYgHWfZNy3Ze3jFJqXemMX8WpY3dZxu 1THZsESKKhYMa.3PXwdaZ6Eh2Wq5dFHZrtBXTHzpFTKwrVL1KId7Dkl8FfFIMkAITdvulHwN6BXD vio78vYFvQ81TE7vJHK3xHpYN6obsW5lYCUDr79Lt22FiWYsqIFiwcyaq9UYD4_NuPSPpN6PVWHa lRoaHVO..GiKXXgmejs02AH8TaWhjZIDycFrTbPjBpgIlgzOMaUNLzjK2xXtjvJxjlc3haOW0nHy FtU4pU6gNn59t0hvmt5UIAW9K8kvLWSphzXRX5d765XC.Er2o8A6RN9y.nqKs9Z8svt97pYbQgXp YL7YGW0QyuSs3f24YVRL2TRCq7z6Nbin9l5nzc.FhvQooPocNZebpYCYEUsF6INoI9HfB9GMxJRJ s5PETsyGAhMk_mTMd2NRVT15eLM.hirEs_K4bpZLVCAaAUXnpddp9pQBa9ckSYkHA DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641769992; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Cc:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:References; bh=/JHUn6bI73W4rRzB1j38jFl1TbnczTQ9Q3vN7QGxjXo=; b=KtwKsaVjKanfK5msZAGY0b+PN8s+fqtgyWMTc3Igb4l2kupHPAm1oMZNb3AVHqIy 5yF2XxRySWEJ4IJWxqEgFUH75tjcaUav+dVuZyIuIbrYHu5ZUxL9vGe5MIvYyJcGcW3 PG9Dpxf0Fb95cemaBILfwKJJ5mzl+NGdX8RMtcO4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Cc:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References; b=RKQuvWAowJkuXbogt+2h9rIpfg+TOEq2SqMo1LDlpxWEbE9E6CRHQLjRqKMyh+oL 0ohUAL3rUfwQv1EW/L1gomYEGzPVSkw0qQypCKoWaN7gl2dbMfK37H0VVwtgB4rf6ua 4HUidVNNYWiRGEb03ihBEBiU1QPf7sntQ96nEcL8=; Date: Mon, 10 Jan 2022 08:13:10 +0900 (JST) From: Tatsuro MATSUOKA To: moss AT cs DOT umass DOT edu, "cygwin AT cygwin DOT com" Message-ID: <13484389.1228247.1641769990069.JavaMail.yahoo@mail.yahoo.co.jp> Subject: Re: permission 600 MIME-Version: 1.0 References: <13484389 DOT 1228247 DOT 1641769990069 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, 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 List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Tatsuro MATSUOKA Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 209NDrPS026783 > ----- 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 back up all files to the external HDD and format FAT32 drive to NTFS drive and back them. 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