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 8FDD53890438 |
Authentication-Results: | sourceware.org; |
dmarc=none (p=none dis=none) header.from=towo.net | |
Authentication-Results: | sourceware.org; spf=none smtp.mailfrom=towo.net |
Message-ID: | <5b64627d-bc3c-7339-e310-af6d568cb6c5@towo.net> |
Date: | Mon, 10 Jan 2022 00:26:32 +0100 |
MIME-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 |
Thunderbird/91.4.1 | |
Subject: | Re: permission 600 |
To: | cygwin AT cygwin DOT com |
References: | <13484389 DOT 1228247 DOT 1641769990069 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT co DOT jp> |
<13484389 DOT 1228247 DOT 1641769990069 DOT JavaMail DOT yahoo AT mail DOT yahoo DOT co DOT jp> | |
From: | Thomas Wolff <towo AT towo DOT net> |
In-Reply-To: | <13484389.1228247.1641769990069.JavaMail.yahoo@mail.yahoo.co.jp> |
X-Provags-ID: | V03:K1:DrdItz6+q0OSp6JdTkM3GeKLDLWZzD4PeWeI8QEY553VbOBw8CD |
SxBQ9erYyQVtGtVsMZuydI4jqjP8aUAKxUXS8y0LrJIn1A5Ed8gjFY/t/6juTqG/Ceml9Ku | |
RUVZ88VN5Dl/lcXdAALU98PryzJXewU4FX8ecpeLiOpKx5gHOZs+XW+nFuMV/Ddd86vZXNI | |
9tIvXT8kkPxWdrdYKOAKA== | |
X-UI-Out-Filterresults: | notjunk:1;V03:K0:8zgb43HqP5U=:buQScSusdMo2Ro5iOjztIu |
lh4Mda7mtxZKkEiX4r05sgzQcgVx0AIb6LEC/aIhLgeJBoNzkRIVPlvgLGaETsx7I/zJG47WU | |
n2sBLVy002K/R8YYm/0jHugwkJjVpXipFDa40xggEO0Vh8i7mo9wuTPEjUUaAurHDFDXhnluM | |
di+5yoynji0KIUZRXL3GfUJ4Iry3rpaAYee1mhW1tSwzabIcO27M0osa3aXKpqMwyToWA3P6D | |
4q4e05oLQaoaCVtkLcyRMtNQFYCfHKh3P9WjiaUpqrnm9tJUYTd1Mo/t7bloQSA8f90eisFv9 | |
6Mv/7HOACqbCHNXjpXuMb3PXClptWZShmjJyZVSEvObEyDZTQbonqScJVpusuHjwR7Jswu0PY | |
MmgvkrtW9xBmVip+2p+SMhSP01StCVftcbudw6mJ9yFQowEN+ImPrmNO5Cbwfgci4bQIlidHZ | |
l76+moA5ruqF8wCZgpEEdkkJDV8Kid1ui7qgcD0CqS8IaL2u8TJDWsavWGp77W2hdtOUm4ZS4 | |
ujqnuKgFpSDAsIye4Oc1ZxCqx4yf0L7vFXiDIxAmm3JzpvIHg7qM77oF5pRm31vD6LDtkZNI3 | |
vlqgmuYJvGD0xYhbcdmy/qJcuTOE6uUwC3JiYzTeFbhwxvKx/U6LFafM0l0o+RSu0oBUqdg7U | |
SQ3NWFQrC3RnmQq1QjBTAknpv+OuSu2sIDQwjfkRyPWNCv4dBlKoD6SWYgDS/XSaksNs= | |
X-Spam-Status: | No, score=-2.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, |
KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_MSPIKE_H2, | |
SPF_HELO_NONE, SPF_NONE, 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-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
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> | |
Errors-To: | cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 209NSD9x029019 |
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 -- 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 |